Skip to content

Commit 592447f

Browse files
RichardWeiYangrppt
authored andcommitted
memblock tests: fix undefined reference to `BIT'
commit 772dd03 ("mm: enumerate all gfp flags") define gfp flags with the help of BIT, while gfp_types.h doesn't include header file for the definition. This through an error on building memblock tests. Let's include linux/bits.h to fix it. Signed-off-by: Wei Yang <[email protected]> CC: Suren Baghdasaryan <[email protected]> CC: Michal Hocko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mike Rapoport (IBM) <[email protected]>
1 parent e0f5a8e commit 592447f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/gfp_types.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#ifndef __LINUX_GFP_TYPES_H
33
#define __LINUX_GFP_TYPES_H
44

5+
#include <linux/bits.h>
6+
57
/* The typedef is in types.h but we want the documentation here */
68
#if 0
79
/**

0 commit comments

Comments
 (0)