Commitfea30ad1bd("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>
18 lines
345 B
C
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 */
|