diff options
| author | Wei Yang <richard.weiyang@gmail.com> | 2024-04-02 13:27:01 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-05-17 11:56:07 +0200 |
| commit | d38ca15be1154c30a60f8ab7a83b7f0c6a4c1208 (patch) | |
| tree | acb638681cc5ab847c8874730ef7bca9a480b9cc /include/linux | |
| parent | 223550f0e91011cd18dfb0834b448a306b9b6e79 (diff) | |
| download | linux-d38ca15be1154c30a60f8ab7a83b7f0c6a4c1208.tar.gz linux-d38ca15be1154c30a60f8ab7a83b7f0c6a4c1208.tar.bz2 linux-d38ca15be1154c30a60f8ab7a83b7f0c6a4c1208.zip | |
memblock tests: fix undefined reference to `BIT'
[ Upstream commit 592447f6cb3c20d606d6c5d8e6af68e99707b786 ]
commit 772dd0342727 ("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 <richard.weiyang@gmail.com>
CC: Suren Baghdasaryan <surenb@google.com>
CC: Michal Hocko <mhocko@suse.com>
Link: https://lore.kernel.org/r/20240402132701.29744-4-richard.weiyang@gmail.com
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/gfp_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/gfp_types.h b/include/linux/gfp_types.h index d88c46ca82e1..6811ab702e8d 100644 --- a/include/linux/gfp_types.h +++ b/include/linux/gfp_types.h @@ -2,6 +2,8 @@ #ifndef __LINUX_GFP_TYPES_H #define __LINUX_GFP_TYPES_H +#include <linux/bits.h> + /* The typedef is in types.h but we want the documentation here */ #if 0 /** |
