[linux-next:master 4741/5109] arch/arm64/mm/mmap.c:54:1: error: unknown type name 'ifdef'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: .config.gz
Description: Binary data


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]