[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201511052251.q7ekpv9k%fengguang.wu@intel.com>
Date: Thu, 5 Nov 2015 22:16:17 +0800
From: kbuild test robot <lkp@...el.com>
To: yalin wang <yalin.wang2010@...il.com>
Cc: kbuild-all@...org, ralf@...ux-mips.org, chenhc@...ote.com,
yalin.wang2010@...il.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] kconfig: fix missing symbol error
Hi yalin,
[auto build test WARNING on: v4.3-rc7]
[also build test WARNING on: next-20151105]
url: https://github.com/0day-ci/linux/commits/yalin-wang/kconfig-fix-missing-symbol-error/20151105-204811
config: x86_64-allmodconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
arch/x86/platform/olpc/olpc_ofw.c: In function '__olpc_ofw':
>> arch/x86/platform/olpc/olpc_ofw.c:55:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
ofw_args[0] = (int)name;
^
arch/x86/platform/olpc/olpc_ofw.c:61:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
*p = (int)args[i];
^
arch/x86/platform/olpc/olpc_ofw.c: In function 'olpc_ofw_detect':
>> arch/x86/platform/olpc/olpc_ofw.c:98:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
olpc_ofw_cif = (int (*)(int *))hdr->cif_handler;
^
--
arch/x86/platform/olpc/olpc_dt.c: In function 'olpc_dt_getsibling':
>> arch/x86/platform/olpc/olpc_dt.c:29:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
const void *args[] = { (void *)node };
^
arch/x86/platform/olpc/olpc_dt.c: In function 'olpc_dt_getchild':
arch/x86/platform/olpc/olpc_dt.c:43:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
const void *args[] = { (void *)node };
^
arch/x86/platform/olpc/olpc_dt.c: In function 'olpc_dt_getproplen':
arch/x86/platform/olpc/olpc_dt.c:59:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
const void *args[] = { (void *)node, prop };
^
arch/x86/platform/olpc/olpc_dt.c: In function 'olpc_dt_getproperty':
arch/x86/platform/olpc/olpc_dt.c:83:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
const void *args[] = { (void *)node, prop, buf, (void *)plen };
^
arch/x86/platform/olpc/olpc_dt.c:83:51: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
const void *args[] = { (void *)node, prop, buf, (void *)plen };
^
arch/x86/platform/olpc/olpc_dt.c: In function 'olpc_dt_nextprop':
arch/x86/platform/olpc/olpc_dt.c:97:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
const void *args[] = { (void *)node, prev, buf };
^
arch/x86/platform/olpc/olpc_dt.c: In function 'olpc_dt_pkg2path':
arch/x86/platform/olpc/olpc_dt.c:115:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
const void *args[] = { (void *)node, buf, (void *)buflen };
^
arch/x86/platform/olpc/olpc_dt.c:115:44: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
const void *args[] = { (void *)node, buf, (void *)buflen };
^
vim +55 arch/x86/platform/olpc/olpc_ofw.c
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 49
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 50 BUG_ON(nr_args + nr_res > MAXARGS);
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 51
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 52 if (!olpc_ofw_cif)
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 53 return -EIO;
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 54
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 @55 ofw_args[0] = (int)name;
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 56 ofw_args[1] = nr_args;
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 57 ofw_args[2] = nr_res;
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 58
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 59 p = &ofw_args[3];
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 60 for (i = 0; i < nr_args; i++, p++)
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 61 *p = (int)args[i];
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 62
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 63 /* call into ofw */
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 64 spin_lock_irqsave(&ofw_lock, flags);
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 65 ret = olpc_ofw_cif(ofw_args);
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 66 spin_unlock_irqrestore(&ofw_lock, flags);
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 67
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 68 if (!ret) {
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 69 for (i = 0; i < nr_res; i++, p++)
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 70 *((int *)res[i]) = *p;
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 71 }
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 72
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 73 return ret;
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 74 }
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 75 EXPORT_SYMBOL_GPL(__olpc_ofw);
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 76
3e3c48601 arch/x86/kernel/olpc_ofw.c Daniel Drake 2010-09-23 77 bool olpc_ofw_present(void)
3e3c48601 arch/x86/kernel/olpc_ofw.c Daniel Drake 2010-09-23 78 {
3e3c48601 arch/x86/kernel/olpc_ofw.c Daniel Drake 2010-09-23 79 return olpc_ofw_cif != NULL;
3e3c48601 arch/x86/kernel/olpc_ofw.c Daniel Drake 2010-09-23 80 }
3e3c48601 arch/x86/kernel/olpc_ofw.c Daniel Drake 2010-09-23 81 EXPORT_SYMBOL_GPL(olpc_ofw_present);
3e3c48601 arch/x86/kernel/olpc_ofw.c Daniel Drake 2010-09-23 82
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 83 /* OFW cif _should_ be above this address */
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 84 #define OFW_MIN 0xff000000
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 85
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 86 /* OFW starts on a 1MB boundary */
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 87 #define OFW_BOUND (1<<20)
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 88
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 89 void __init olpc_ofw_detect(void)
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 90 {
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 91 struct olpc_ofw_header *hdr = &boot_params.olpc_ofw_header;
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 92 unsigned long start;
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 93
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 94 /* ensure OFW booted us by checking for "OFW " string */
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 95 if (hdr->ofw_magic != OLPC_OFW_SIG)
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 96 return;
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 97
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 @98 olpc_ofw_cif = (int (*)(int *))hdr->cif_handler;
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 99
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 100 if ((unsigned long)olpc_ofw_cif < OFW_MIN) {
fd699c765 arch/x86/kernel/olpc_ofw.c Andres Salomon 2010-06-18 101 printk(KERN_ERR "OFW detected, but cif has invalid address 0x%lx - disabling.\n",
:::::: The code at line 55 was first introduced by commit
:::::: fd699c76552bbfa66631f019be415a87dbb08237 x86, olpc: Add support for calling into OpenFirmware
:::::: TO: Andres Salomon <dilinger@...ued.net>
:::::: CC: H. Peter Anvin <hpa@...ux.intel.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/octet-stream" (50061 bytes)
Powered by blists - more mailing lists