Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0b06e50 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays"

parents 9db54d93 787b5320
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -22,9 +22,12 @@
 * Macro which verifies @ptr is a percpu pointer without evaluating
 * @ptr.  This is to be used in percpu accessors to verify that the
 * input parameter is a percpu pointer.
 *
 * + 0 is required in order to convert the pointer type from a
 * potential array type to a pointer to a single item of the array.
 */
#define __verify_pcpu_ptr(ptr)	do {					\
	const void __percpu *__vpp_verify = (typeof(ptr))NULL;		\
	const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL;	\
	(void)__vpp_verify;						\
} while (0)