From: kbuild test robot <lkp@intel.com>
To: Brendan Higgins <brendanhiggins@google.com>
Cc: kbuild-all@01.org, robh+dt@kernel.org, mark.rutland@arm.com,
linux@armlinux.org.uk, avifishman70@gmail.com,
tmaimon77@gmail.com, raltherr@google.com, f.fainelli@gmail.com,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org,
Brendan Higgins <brendanhiggins@google.com>
Subject: Re: [PATCH v3 1/3] arm: npcm: add basic support for Nuvoton BMCs
Date: Fri, 8 Sep 2017 02:01:08 +0800 [thread overview]
Message-ID: <201709080102.sovqCRiS%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170906003016.2159-2-brendanhiggins@google.com>
[-- Attachment #1: Type: text/plain, Size: 4291 bytes --]
Hi Brendan,
[auto build test WARNING on linus/master]
[also build test WARNING on v4.13 next-20170907]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Brendan-Higgins/arm-npcm-add-basic-support-for-Nuvoton-BMCs/20170907-214055
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm
All warnings (new ones prefixed by >>):
In file included from include/linux/printk.h:6:0,
from include/linux/kernel.h:13,
from include/linux/delay.h:21,
from arch/arm/mach-npcm/platsmp.c:11:
arch/arm/mach-npcm/platsmp.c: In function 'npcm7xx_smp_boot_secondary':
>> include/linux/kern_levels.h:4:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'void *' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH'
#define KERN_ERR KERN_SOH "3" /* error conditions */
^~~~~~~~
include/linux/printk.h:301:9: note: in expansion of macro 'KERN_ERR'
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~
>> arch/arm/mach-npcm/platsmp.c:43:3: note: in expansion of macro 'pr_err'
pr_err("could not iomap gcr at: 0x%llx\n", gcr_base);
^~~~~~
arch/arm/mach-npcm/platsmp.c: In function 'npcm7xx_smp_prepare_cpus':
>> include/linux/kern_levels.h:4:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'void *' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH'
#define KERN_ERR KERN_SOH "3" /* error conditions */
^~~~~~~~
include/linux/printk.h:301:9: note: in expansion of macro 'KERN_ERR'
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~
arch/arm/mach-npcm/platsmp.c:74:3: note: in expansion of macro 'pr_err'
pr_err("could not iomap scu at: 0x%llx\n", scu_base);
^~~~~~
arch/arm/mach-npcm/platsmp.c:80:1: warning: label 'out' defined but not used [-Wunused-label]
out:
^~~
In file included from include/linux/io.h:25:0,
from arch/arm/mach-npcm/platsmp.c:14:
arch/arm/mach-npcm/platsmp.c: In function 'npcm7xx_smp_boot_secondary':
>> arch/arm/include/asm/io.h:421:17: warning: 'gcr_base' may be used uninitialized in this function [-Wmaybe-uninitialized]
#define iounmap iounmap
^~~~~~~
arch/arm/mach-npcm/platsmp.c:32:16: note: 'gcr_base' was declared here
void __iomem *gcr_base;
^~~~~~~~
vim +/pr_err +43 arch/arm/mach-npcm/platsmp.c
27
28 static int npcm7xx_smp_boot_secondary(unsigned int cpu,
29 struct task_struct *idle)
30 {
31 struct device_node *gcr_np;
32 void __iomem *gcr_base;
33 int ret = 0;
34
35 gcr_np = of_find_compatible_node(NULL, NULL, "nuvoton,npcm750-gcr");
36 if (!gcr_np) {
37 pr_err("no gcr device node\n");
38 ret = -EFAULT;
39 goto out;
40 }
41 gcr_base = of_iomap(gcr_np, 0);
42 if (!gcr_base) {
> 43 pr_err("could not iomap gcr at: 0x%llx\n", gcr_base);
44 ret = -EFAULT;
45 goto out;
46 }
47
48 /* give boot ROM kernel start address. */
49 iowrite32(__pa_symbol(npcm7xx_secondary_startup), gcr_base +
50 NPCM7XX_SCRPAD_REG);
51 /* make sure npcm7xx_secondary_startup is seen by all observers. */
52 smp_wmb();
53 dsb_sev();
54 /* make sure write buffer is drained */
55 mb();
56
57 out:
58 iounmap(gcr_base);
59 return ret;
60 }
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/gzip, Size: 63097 bytes --]
next prev parent reply other threads:[~2017-09-07 18:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-06 0:30 [PATCH v3 0/3] arm: npcm: add basic support for Nuvoton BMCs Brendan Higgins
2017-09-06 0:30 ` [PATCH v3 1/3] " Brendan Higgins
2017-09-07 15:24 ` kbuild test robot
2017-09-07 18:01 ` kbuild test robot [this message]
2017-09-06 0:30 ` [PATCH v3 2/3] arm: dts: add Nuvoton NPCM750 device tree Brendan Higgins
2017-09-06 5:23 ` Joel Stanley
2017-09-06 8:19 ` Brendan Higgins
2017-09-06 0:30 ` [PATCH v3 3/3] MAINTAINERS: Add entry for the Nuvoton NPCM architecture Brendan Higgins
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=201709080102.sovqCRiS%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=avifishman70@gmail.com \
--cc=brendanhiggins@google.com \
--cc=devicetree@vger.kernel.org \
--cc=f.fainelli@gmail.com \
--cc=kbuild-all@01.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mark.rutland@arm.com \
--cc=openbmc@lists.ozlabs.org \
--cc=raltherr@google.com \
--cc=robh+dt@kernel.org \
--cc=tmaimon77@gmail.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;
as well as URLs for NNTP newsgroup(s).