Re: [PATCH 05/10] percpu: change reserved_size to end page aligned

From: kbuild test robot
Date: Sun Jul 16 2017 - 00:02:23 EST


Hi Dennis,

[auto build test ERROR on percpu/for-next]
[also build test ERROR on v4.13-rc1 next-20170714]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Dennis-Zhou/percpu-replace-percpu-area-map-allocator-with-bitmap-allocator/20170716-103337
base: https://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu.git for-next
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=xtensa

All error/warnings (new ones prefixed by >>):

In file included from include/linux/percpu.h:9:0,
from include/linux/percpu-rwsem.h:6,
from include/linux/fs.h:30,
from fs/affs/affs.h:8,
from fs/affs/namei.c:11:
include/linux/percpu.h: In function 'pcpu_align_reserved_region':
>> include/linux/pfn.h:17:46: error: 'PAGE_SIZE' undeclared (first use in this function)
#define PFN_ALIGN(x) (((unsigned long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK)
^
>> include/linux/percpu.h:159:9: note: in expansion of macro 'PFN_ALIGN'
return PFN_ALIGN(static_size + reserved_size) - static_size;
^
include/linux/pfn.h:17:46: note: each undeclared identifier is reported only once for each function it appears in
#define PFN_ALIGN(x) (((unsigned long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK)
^
>> include/linux/percpu.h:159:9: note: in expansion of macro 'PFN_ALIGN'
return PFN_ALIGN(static_size + reserved_size) - static_size;
^
>> include/linux/pfn.h:17:64: error: 'PAGE_MASK' undeclared (first use in this function)
#define PFN_ALIGN(x) (((unsigned long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK)
^
>> include/linux/percpu.h:159:9: note: in expansion of macro 'PFN_ALIGN'
return PFN_ALIGN(static_size + reserved_size) - static_size;
^
--
In file included from include/linux/percpu.h:9:0,
from include/linux/percpu-rwsem.h:6,
from include/linux/fs.h:30,
from fs/ocfs2/file.c:27:
include/linux/percpu.h: In function 'pcpu_align_reserved_region':
>> include/linux/pfn.h:17:46: error: 'PAGE_SIZE' undeclared (first use in this function)
#define PFN_ALIGN(x) (((unsigned long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK)
^
>> include/linux/percpu.h:159:9: note: in expansion of macro 'PFN_ALIGN'
return PFN_ALIGN(static_size + reserved_size) - static_size;
^
include/linux/pfn.h:17:46: note: each undeclared identifier is reported only once for each function it appears in
#define PFN_ALIGN(x) (((unsigned long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK)
^
>> include/linux/percpu.h:159:9: note: in expansion of macro 'PFN_ALIGN'
return PFN_ALIGN(static_size + reserved_size) - static_size;
^
>> include/linux/pfn.h:17:64: error: 'PAGE_MASK' undeclared (first use in this function)
#define PFN_ALIGN(x) (((unsigned long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK)
^
>> include/linux/percpu.h:159:9: note: in expansion of macro 'PFN_ALIGN'
return PFN_ALIGN(static_size + reserved_size) - static_size;
^
In file included from arch/xtensa/include/asm/atomic.h:21:0,
from include/linux/atomic.h:4,
from include/linux/debug_locks.h:5,
from include/linux/lockdep.h:25,
from include/linux/spinlock_types.h:18,
from include/linux/spinlock.h:81,
from include/linux/wait.h:8,
from include/linux/fs.h:5,
from fs/ocfs2/file.c:27:
fs/ocfs2/file.c: In function 'ocfs2_file_write_iter':
arch/xtensa/include/asm/cmpxchg.h:139:3: warning: value computed is not used [-Wunused-value]
((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
^
fs/ocfs2/file.c:2341:3: note: in expansion of macro 'xchg'
xchg(&iocb->ki_complete, saved_ki_complete);
^
--
In file included from include/linux/percpu.h:9:0,
from include/linux/context_tracking_state.h:4,
from include/linux/vtime.h:4,
from include/linux/hardirq.h:7,
from include/linux/interrupt.h:12,
from drivers/scsi/sym53c8xx_2/sym_glue.h:45,
from drivers/scsi/sym53c8xx_2/sym_fw.c:40:
include/linux/percpu.h: In function 'pcpu_align_reserved_region':
>> include/linux/pfn.h:17:46: error: 'PAGE_SIZE' undeclared (first use in this function)
#define PFN_ALIGN(x) (((unsigned long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK)
^
>> include/linux/percpu.h:159:9: note: in expansion of macro 'PFN_ALIGN'
return PFN_ALIGN(static_size + reserved_size) - static_size;
^
include/linux/pfn.h:17:46: note: each undeclared identifier is reported only once for each function it appears in
#define PFN_ALIGN(x) (((unsigned long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK)
^
>> include/linux/percpu.h:159:9: note: in expansion of macro 'PFN_ALIGN'
return PFN_ALIGN(static_size + reserved_size) - static_size;
^
>> include/linux/pfn.h:17:64: error: 'PAGE_MASK' undeclared (first use in this function)
#define PFN_ALIGN(x) (((unsigned long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK)
^
>> include/linux/percpu.h:159:9: note: in expansion of macro 'PFN_ALIGN'
return PFN_ALIGN(static_size + reserved_size) - static_size;
^
In file included from drivers/scsi/sym53c8xx_2/sym_glue.h:64:0,
from drivers/scsi/sym53c8xx_2/sym_fw.c:40:
drivers/scsi/sym53c8xx_2/sym_defs.h: At top level:
drivers/scsi/sym53c8xx_2/sym_defs.h:109:0: warning: "WSR" redefined
#define WSR 0x01 /* sta: wide scsi received [W]*/
^
In file included from arch/xtensa/include/asm/bitops.h:22:0,
from include/linux/bitops.h:36,
from include/linux/kernel.h:10,
from include/linux/list.h:8,
from include/linux/wait.h:6,
from include/linux/completion.h:11,
from drivers/scsi/sym53c8xx_2/sym_glue.h:43,
from drivers/scsi/sym53c8xx_2/sym_fw.c:40:
arch/xtensa/include/asm/processor.h:227:0: note: this is the location of the previous definition
#define WSR(v,sr) __asm__ __volatile__ ("wsr %0,"__stringify(sr) :: "a"(v));
^

vim +/PAGE_SIZE +17 include/linux/pfn.h

947d0496 Jeremy Fitzhardinge 2008-09-11 16
22a9835c Dave Hansen 2006-03-27 @17 #define PFN_ALIGN(x) (((unsigned long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK)
22a9835c Dave Hansen 2006-03-27 18 #define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT)
22a9835c Dave Hansen 2006-03-27 19 #define PFN_DOWN(x) ((x) >> PAGE_SHIFT)
947d0496 Jeremy Fitzhardinge 2008-09-11 20 #define PFN_PHYS(x) ((phys_addr_t)(x) << PAGE_SHIFT)
8f235d1a Chen Gang 2016-01-14 21 #define PHYS_PFN(x) ((unsigned long)((x) >> PAGE_SHIFT))
22a9835c Dave Hansen 2006-03-27 22

:::::: The code at line 17 was first introduced by commit
:::::: 22a9835c350782a5c3257343713932af3ac92ee0 [PATCH] unify PFN_* macros

:::::: TO: Dave Hansen <haveblue@xxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip