linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Daniel Cashman <dcashman@android.com>
Cc: kbuild-all@01.org, Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 4741/5109] arch/arm64/mm/mmap.c:54:1: error: unknown type name 'ifdef'
Date: Mon, 7 Dec 2015 21:59:38 +0800	[thread overview]
Message-ID: <201512072134.tMnusXQj%fengguang.wu@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2015-12-07 14:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201512072134.tMnusXQj%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=dcashman@android.com \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox