linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Cc: kbuild-all@01.org, Johannes Weiner <hannes@cmpxchg.org>,
	Mimi Zohar <zohar@linux.vnet.ibm.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [mmotm:master 136/157] arch/powerpc/kernel/machine_kexec_64.c:774:8: error: implicit declaration of function 'setup_ima_buffer'
Date: Wed, 12 Oct 2016 11:32:26 +0800	[thread overview]
Message-ID: <201610121122.rjoHnwu3%fengguang.wu@intel.com> (raw)

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

tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   fe4cd888f71ef173e0e5a0f9dccc42904c0107f3
commit: 0229ac7ff1a49acb599a124e2c6a87ad4836a53d [136/157] powerpc: ima: send the kexec buffer to the next kernel
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
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 0229ac7ff1a49acb599a124e2c6a87ad4836a53d
        # save the attached .config to linux build tree
        make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   In file included from include/linux/list.h:8:0,
                    from include/linux/kobject.h:20,
                    from include/linux/device.h:17,
                    from arch/powerpc/include/asm/io.h:27,
                    from include/linux/kexec.h:17,
                    from arch/powerpc/kernel/machine_kexec_64.c:13:
   arch/powerpc/kernel/machine_kexec_64.c: In function 'arch_kexec_kernel_image_probe':
   arch/powerpc/kernel/machine_kexec_64.c:420:29: error: 'kexec_file_loaders' undeclared (first use in this function)
     for (i = 0; i < ARRAY_SIZE(kexec_file_loaders); i++) {
                                ^
   include/linux/kernel.h:53:33: note: in definition of macro 'ARRAY_SIZE'
    #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                    ^~~
   arch/powerpc/kernel/machine_kexec_64.c:420:29: note: each undeclared identifier is reported only once for each function it appears in
     for (i = 0; i < ARRAY_SIZE(kexec_file_loaders); i++) {
                                ^
   include/linux/kernel.h:53:33: note: in definition of macro 'ARRAY_SIZE'
    #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                    ^~~
   In file included from arch/powerpc/include/asm/mmu.h:115:0,
                    from arch/powerpc/include/asm/lppaca.h:36,
                    from arch/powerpc/include/asm/paca.h:21,
                    from arch/powerpc/include/asm/current.h:16,
                    from include/linux/mutex.h:13,
                    from include/linux/kernfs.h:13,
                    from include/linux/sysfs.h:15,
                    from include/linux/kobject.h:21,
                    from include/linux/device.h:17,
                    from arch/powerpc/include/asm/io.h:27,
                    from include/linux/kexec.h:17,
                    from arch/powerpc/kernel/machine_kexec_64.c:13:
   include/linux/bug.h:37:45: error: bit-field '<anonymous>' width not an integer constant
    #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
                                                ^
   include/linux/compiler-gcc.h:64:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
    #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
                               ^~~~~~~~~~~~~~~~~
   include/linux/kernel.h:53:59: note: in expansion of macro '__must_be_array'
    #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                                              ^~~~~~~~~~~~~~~
   arch/powerpc/kernel/machine_kexec_64.c:420:18: note: in expansion of macro 'ARRAY_SIZE'
     for (i = 0; i < ARRAY_SIZE(kexec_file_loaders); i++) {
                     ^~~~~~~~~~
   arch/powerpc/kernel/machine_kexec_64.c: In function 'setup_purgatory':
   arch/powerpc/kernel/machine_kexec_64.c:568:27: error: 'SLAVE_CODE_SIZE' undeclared (first use in this function)
     slave_code_buf = kmalloc(SLAVE_CODE_SIZE, GFP_KERNEL);
                              ^~~~~~~~~~~~~~~
   arch/powerpc/kernel/machine_kexec_64.c: In function 'setup_new_fdt':
>> arch/powerpc/kernel/machine_kexec_64.c:774:8: error: implicit declaration of function 'setup_ima_buffer' [-Werror=implicit-function-declaration]
     ret = setup_ima_buffer(image, fdt, chosen_node);
           ^~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/setup_ima_buffer +774 arch/powerpc/kernel/machine_kexec_64.c

   768			if (ret && ret != -FDT_ERR_NOTFOUND) {
   769				pr_err("Error deleting bootargs.\n");
   770				return -EINVAL;
   771			}
   772		}
   773	
 > 774		ret = setup_ima_buffer(image, fdt, chosen_node);
   775		if (ret) {
   776			pr_err("Error setting up the new device tree.\n");
   777			return ret;

---
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: 50748 bytes --]

                 reply	other threads:[~2016-10-12  3:33 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=201610121122.rjoHnwu3%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=bauerman@linux.vnet.ibm.com \
    --cc=hannes@cmpxchg.org \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.org \
    --cc=zohar@linux.vnet.ibm.com \
    /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