mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [tip:WIP.x86/pti 1/1] arch/x86/mm/cpu_entry_area.c:153:33: error: 'CPU_ENTRY_AREA_END' undeclared; did you mean 'CPU_ENTRY_AREA_BASE'?
@ 2017-12-23 19:04 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-12-23 19:04 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: kbuild-all, linux-kernel, tipbuild

[-- Attachment #1: Type: text/plain, Size: 1869 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/pti
head:   1c4c1c2fa0c5c121210d47bc74ee85c5032b3ea9
commit: 1c4c1c2fa0c5c121210d47bc74ee85c5032b3ea9 [1/1] x86/pti: Prevent wraparound in setup_cpu_entry_area_ptes() on 32bit
config: i386-randconfig-x007-201752 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
        git checkout 1c4c1c2fa0c5c121210d47bc74ee85c5032b3ea9
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   arch/x86/mm/cpu_entry_area.c: In function 'setup_cpu_entry_area_ptes':
>> arch/x86/mm/cpu_entry_area.c:153:33: error: 'CPU_ENTRY_AREA_END' undeclared (first use in this function); did you mean 'CPU_ENTRY_AREA_BASE'?
     for (; start < end && start >= CPU_ENTRY_AREA_END; start += PMD_SIZE)
                                    ^~~~~~~~~~~~~~~~~~
                                    CPU_ENTRY_AREA_BASE
   arch/x86/mm/cpu_entry_area.c:153:33: note: each undeclared identifier is reported only once for each function it appears in

vim +153 arch/x86/mm/cpu_entry_area.c

   140	
   141	static __init void setup_cpu_entry_area_ptes(void)
   142	{
   143	#ifdef CONFIG_X86_32
   144		unsigned long start, end;
   145	
   146		BUILD_BUG_ON(CPU_ENTRY_AREA_PAGES * PAGE_SIZE < CPU_ENTRY_AREA_MAP_SIZE);
   147		BUG_ON(CPU_ENTRY_AREA_BASE & ~PMD_MASK);
   148	
   149		start = CPU_ENTRY_AREA_BASE;
   150		end = start + CPU_ENTRY_AREA_MAP_SIZE;
   151	
   152		/* Careful here: start + PMD_SIZE might wrap around */
 > 153		for (; start < end && start >= CPU_ENTRY_AREA_END; start += PMD_SIZE)
   154			populate_extra_pte(start);
   155	#endif
   156	}
   157	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 26305 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-23 19:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-23 19:04 [tip:WIP.x86/pti 1/1] arch/x86/mm/cpu_entry_area.c:153:33: error: 'CPU_ENTRY_AREA_END' undeclared; did you mean 'CPU_ENTRY_AREA_BASE'? kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®