Files
kernel_xiaomi_sm8250/include/vdso/bits.h
Michael Bestas 838312a5a2 ANDROID: fix BIT() redefinition
Commit fea30ad1bd ("ANDROID: preserve CRC for some DRM functions")
caused the BIT() macro to be redefined because vdso/bits.h is included
through vdso/datapage.h in some other files.

Move the __GENKSYMS__ BIT() check to vdso/bits.h in order to fix this.

Fixes: fea30ad1bd ("ANDROID: preserve CRC for some DRM functions")
Change-Id: I767d75e7e40b5acfa9b66754c7b2b74879a28de5
Signed-off-by: Michael Bestas <mkbestas@lineageos.org>
2022-12-17 00:25:35 +02:00

18 lines
345 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __VDSO_BITS_H
#define __VDSO_BITS_H
#ifdef __GENKSYMS__
/*
* Old version of this macro to preserve the CRC signatures of some drm symbols.
* Crazy but true...
*/
#define BIT(nr) (1UL << (nr))
#else
#include <vdso/const.h>
#define BIT(nr) (UL(1) << (nr))
#endif
#endif /* __VDSO_BITS_H */