linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 4741/5109] arch/arm64/mm/mmap.c:54:1: error: unknown type name 'ifdef'
@ 2015-12-07 13:59 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2015-12-07 13:59 UTC (permalink / raw)
  To: Daniel Cashman; +Cc: kbuild-all, Andrew Morton, Linux Memory Management List

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   47ca23615a59f1879e6a2d2fe63d130abdb5c810
commit: 2e4614190421a297fe59619ab6c54e925ea9aed9 [4741/5109] arm64-mm-support-arch_mmap_rnd_bits-v4
config: arm64-alldefconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 2e4614190421a297fe59619ab6c54e925ea9aed9
        # save the attached .config to linux build tree
        make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

   arch/arm64/mm/mmap.c: In function 'arch_mmap_rnd':
>> arch/arm64/mm/mmap.c:54:1: error: unknown type name 'ifdef'
    ifdef CONFIG_COMPAT
    ^
>> arch/arm64/mm/mmap.c:55:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if'
     if (test_thread_flag(TIF_32BIT))
     ^
>> arch/arm64/mm/mmap.c:57:2: error: 'else' without a previous 'if'
     else
     ^
>> arch/arm64/mm/mmap.c:58:2: error: #endif without #if
    #endif
     ^

vim +/ifdef +54 arch/arm64/mm/mmap.c

    48	}
    49	
    50	unsigned long arch_mmap_rnd(void)
    51	{
    52		unsigned long rnd;
    53	
  > 54	ifdef CONFIG_COMPAT
  > 55		if (test_thread_flag(TIF_32BIT))
    56			rnd = (unsigned long)get_random_int() % (1 << mmap_rnd_compat_bits);
  > 57		else
  > 58	#endif
    59			rnd = (unsigned long)get_random_int() % (1 << mmap_rnd_bits);
    60		return rnd << PAGE_SHIFT;
    61	}

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 7829 bytes --]

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

only message in thread, other threads:[~2015-12-07 14:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-07 13:59 [linux-next:master 4741/5109] arch/arm64/mm/mmap.c:54:1: error: unknown type name 'ifdef' 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;
as well as URLs for NNTP newsgroup(s).