[-mmots 2016-04-25] hugetlb: error: âcpu_has_pseâ undeclared

From: Sergey Senozhatsky
Date: Tue Apr 26 2016 - 09:17:03 EST


Hello,

v4.6-rc5-mmots-2016-04-25-17-33


In file included from include/linux/hugetlb.h:418:0,
from fs/hugetlbfs/inode.c:28:
fs/hugetlbfs/inode.c: In function âinit_hugetlbfs_fsâ:
./arch/x86/include/asm/hugetlb.h:7:31: error: âcpu_has_pseâ undeclared (first use in this function)
#define hugepages_supported() cpu_has_pse
^
fs/hugetlbfs/inode.c:1325:7: note: in expansion of macro âhugepages_supportedâ
if (!hugepages_supported()) {
^~~~~~~~~~~~~~~~~~~
./arch/x86/include/asm/hugetlb.h:7:31: note: each undeclared identifier is reported only once for each function it appears in
#define hugepages_supported() cpu_has_pse
^
fs/hugetlbfs/inode.c:1325:7: note: in expansion of macro âhugepages_supportedâ
if (!hugepages_supported()) {
^~~~~~~~~~~~~~~~~~~
scripts/Makefile.build:289: recipe for target 'fs/hugetlbfs/inode.o' failed
make[2]: *** [fs/hugetlbfs/inode.o] Error 1
scripts/Makefile.build:440: recipe for target 'fs/hugetlbfs' failed
make[1]: *** [fs/hugetlbfs] Error 2
make[1]: *** Waiting for unfinished jobs....



git grep cpu_has_pse
arch/x86/include/asm/hugetlb.h:#define hugepages_supported() cpu_has_pse


-ss