mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kconfig: fix missing symbol error
@ 2015-11-05 12:46 yalin wang
  2015-11-05 14:16 ` kbuild test robot
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: yalin wang @ 2015-11-05 12:46 UTC (permalink / raw)
  To: ralf, chenhc, yalin.wang2010, linux-kernel

Add GOLDFISH OLPC config symbols, which is missing.

Signed-off-by: yalin wang <yalin.wang2010@gmail.com>
---
 drivers/platform/Kconfig | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/platform/Kconfig b/drivers/platform/Kconfig
index 0adccbf..81f4fb3 100644
--- a/drivers/platform/Kconfig
+++ b/drivers/platform/Kconfig
@@ -1,3 +1,11 @@
+config GOLDFISH
+	bool "goldfish generic driver"
+	default n
+
+config OLPC
+	bool "OLPC driver"
+	default n
+
 if X86
 source "drivers/platform/x86/Kconfig"
 endif
-- 
1.9.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] kconfig: fix missing symbol error
  2015-11-05 12:46 [PATCH] kconfig: fix missing symbol error yalin wang
@ 2015-11-05 14:16 ` kbuild test robot
  2015-11-05 15:14 ` kbuild test robot
  2015-11-05 15:17 ` kbuild test robot
  2 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2015-11-05 14:16 UTC (permalink / raw)
  To: yalin wang; +Cc: kbuild-all, ralf, chenhc, yalin.wang2010, linux-kernel

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

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@queued.net>
:::::: CC: H. Peter Anvin <hpa@linux.intel.com>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] kconfig: fix missing symbol error
  2015-11-05 12:46 [PATCH] kconfig: fix missing symbol error yalin wang
  2015-11-05 14:16 ` kbuild test robot
@ 2015-11-05 15:14 ` kbuild test robot
  2015-11-05 15:17 ` kbuild test robot
  2 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2015-11-05 15:14 UTC (permalink / raw)
  To: yalin wang; +Cc: kbuild-all, ralf, chenhc, yalin.wang2010, linux-kernel

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

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: mips-allmodconfig (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
        # save the attached .config to linux build tree
        make.cross ARCH=mips 

All warnings (new ones prefixed by >>):

   In file included from arch/mips/include/asm/div64.h:12:0,
                    from include/linux/kernel.h:136,
                    from include/asm-generic/bug.h:13,
                    from arch/mips/include/asm/bug.h:41,
                    from include/linux/bug.h:4,
                    from include/linux/io.h:23,
                    from drivers/staging/goldfish/goldfish_nand.c:19:
   drivers/staging/goldfish/goldfish_nand.c: In function 'goldfish_nand_erase':
   include/asm-generic/div64.h:43:28: warning: comparison of distinct pointer types lacks a cast
     (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
                               ^
>> drivers/staging/goldfish/goldfish_nand.c:106:8: note: in expansion of macro 'do_div'
     rem = do_div(ofs, mtd->writesize);
           ^
   drivers/staging/goldfish/goldfish_nand.c: In function 'goldfish_nand_read_oob':
   include/asm-generic/div64.h:43:28: warning: comparison of distinct pointer types lacks a cast
     (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
                               ^
   drivers/staging/goldfish/goldfish_nand.c:144:8: note: in expansion of macro 'do_div'
     rem = do_div(ofs, mtd->writesize);
           ^
   drivers/staging/goldfish/goldfish_nand.c: In function 'goldfish_nand_write_oob':
   include/asm-generic/div64.h:43:28: warning: comparison of distinct pointer types lacks a cast
     (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
                               ^
   drivers/staging/goldfish/goldfish_nand.c:176:8: note: in expansion of macro 'do_div'
     rem = do_div(ofs, mtd->writesize);
           ^
   drivers/staging/goldfish/goldfish_nand.c: In function 'goldfish_nand_read':
   include/asm-generic/div64.h:43:28: warning: comparison of distinct pointer types lacks a cast
     (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
                               ^
   drivers/staging/goldfish/goldfish_nand.c:204:8: note: in expansion of macro 'do_div'
     rem = do_div(from, mtd->writesize);
           ^
   drivers/staging/goldfish/goldfish_nand.c: In function 'goldfish_nand_write':
   include/asm-generic/div64.h:43:28: warning: comparison of distinct pointer types lacks a cast
     (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
                               ^
   drivers/staging/goldfish/goldfish_nand.c:226:8: note: in expansion of macro 'do_div'
     rem = do_div(to, mtd->writesize);
           ^
   drivers/staging/goldfish/goldfish_nand.c: In function 'goldfish_nand_block_isbad':
   include/asm-generic/div64.h:43:28: warning: comparison of distinct pointer types lacks a cast
     (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
                               ^
   drivers/staging/goldfish/goldfish_nand.c:247:8: note: in expansion of macro 'do_div'
     rem = do_div(ofs, mtd->erasesize);
           ^
   drivers/staging/goldfish/goldfish_nand.c: In function 'goldfish_nand_block_markbad':
   include/asm-generic/div64.h:43:28: warning: comparison of distinct pointer types lacks a cast
     (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
                               ^
   drivers/staging/goldfish/goldfish_nand.c:268:8: note: in expansion of macro 'do_div'
     rem = do_div(ofs, mtd->erasesize);
           ^

vim +/do_div +106 drivers/staging/goldfish/goldfish_nand.c

8e404fff Arve Hjønnevåg       2013-01-24   13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
8e404fff Arve Hjønnevåg       2013-01-24   14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8e404fff Arve Hjønnevåg       2013-01-24   15   * GNU General Public License for more details.
8e404fff Arve Hjønnevåg       2013-01-24   16   *
8e404fff Arve Hjønnevåg       2013-01-24   17   */
8e404fff Arve Hjønnevåg       2013-01-24   18  
8e404fff Arve Hjønnevåg       2013-01-24  @19  #include <linux/io.h>
8e404fff Arve Hjønnevåg       2013-01-24   20  #include <linux/device.h>
8e404fff Arve Hjønnevåg       2013-01-24   21  #include <linux/module.h>
8e404fff Arve Hjønnevåg       2013-01-24   22  #include <linux/slab.h>
8e404fff Arve Hjønnevåg       2013-01-24   23  #include <linux/ioport.h>
8e404fff Arve Hjønnevåg       2013-01-24   24  #include <linux/vmalloc.h>
8e404fff Arve Hjønnevåg       2013-01-24   25  #include <linux/mtd/mtd.h>
8e404fff Arve Hjønnevåg       2013-01-24   26  #include <linux/platform_device.h>
67c20cfb Kristina Martšenko   2014-03-25   27  #include <linux/mutex.h>
f6279717 Alan                 2014-05-12   28  #include <linux/goldfish.h>
8e404fff Arve Hjønnevåg       2013-01-24   29  #include <asm/div64.h>
8e404fff Arve Hjønnevåg       2013-01-24   30  
8e404fff Arve Hjønnevåg       2013-01-24   31  #include "goldfish_nand_reg.h"
8e404fff Arve Hjønnevåg       2013-01-24   32  
8e404fff Arve Hjønnevåg       2013-01-24   33  struct goldfish_nand {
2c507415 Loic Pefferkorn      2014-09-03   34  	/* lock protects access to the device registers */
67c20cfb Kristina Martšenko   2014-03-25   35  	struct mutex            lock;
8e404fff Arve Hjønnevåg       2013-01-24   36  	unsigned char __iomem  *base;
8e404fff Arve Hjønnevåg       2013-01-24   37  	struct cmd_params       *cmd_params;
8e404fff Arve Hjønnevåg       2013-01-24   38  	size_t                  mtd_count;
8e404fff Arve Hjønnevåg       2013-01-24   39  	struct mtd_info         mtd[0];
8e404fff Arve Hjønnevåg       2013-01-24   40  };
8e404fff Arve Hjønnevåg       2013-01-24   41  
8e404fff Arve Hjønnevåg       2013-01-24   42  static u32 goldfish_nand_cmd_with_params(struct mtd_info *mtd,
8e404fff Arve Hjønnevåg       2013-01-24   43  					 enum nand_cmd cmd, u64 addr, u32 len,
8e404fff Arve Hjønnevåg       2013-01-24   44  					 void *ptr, u32 *rv)
8e404fff Arve Hjønnevåg       2013-01-24   45  {
8e404fff Arve Hjønnevåg       2013-01-24   46  	u32 cmdp;
8e404fff Arve Hjønnevåg       2013-01-24   47  	struct goldfish_nand *nand = mtd->priv;
8e404fff Arve Hjønnevåg       2013-01-24   48  	struct cmd_params *cps = nand->cmd_params;
8e404fff Arve Hjønnevåg       2013-01-24   49  	unsigned char __iomem  *base = nand->base;
8e404fff Arve Hjønnevåg       2013-01-24   50  
8e404fff Arve Hjønnevåg       2013-01-24   51  	if (cps == NULL)
8e404fff Arve Hjønnevåg       2013-01-24   52  		return -1;
8e404fff Arve Hjønnevåg       2013-01-24   53  
8e404fff Arve Hjønnevåg       2013-01-24   54  	switch (cmd) {
8e404fff Arve Hjønnevåg       2013-01-24   55  	case NAND_CMD_ERASE:
8e404fff Arve Hjønnevåg       2013-01-24   56  		cmdp = NAND_CMD_ERASE_WITH_PARAMS;
8e404fff Arve Hjønnevåg       2013-01-24   57  		break;
8e404fff Arve Hjønnevåg       2013-01-24   58  	case NAND_CMD_READ:
8e404fff Arve Hjønnevåg       2013-01-24   59  		cmdp = NAND_CMD_READ_WITH_PARAMS;
8e404fff Arve Hjønnevåg       2013-01-24   60  		break;
8e404fff Arve Hjønnevåg       2013-01-24   61  	case NAND_CMD_WRITE:
8e404fff Arve Hjønnevåg       2013-01-24   62  		cmdp = NAND_CMD_WRITE_WITH_PARAMS;
8e404fff Arve Hjønnevåg       2013-01-24   63  		break;
8e404fff Arve Hjønnevåg       2013-01-24   64  	default:
8e404fff Arve Hjønnevåg       2013-01-24   65  		return -1;
8e404fff Arve Hjønnevåg       2013-01-24   66  	}
8e404fff Arve Hjønnevåg       2013-01-24   67  	cps->dev = mtd - nand->mtd;
8e404fff Arve Hjønnevåg       2013-01-24   68  	cps->addr_high = (u32)(addr >> 32);
8e404fff Arve Hjønnevåg       2013-01-24   69  	cps->addr_low = (u32)addr;
8e404fff Arve Hjønnevåg       2013-01-24   70  	cps->transfer_size = len;
7f09d4a0 Jun Tian             2014-04-28   71  	cps->data = (unsigned long)ptr;
8e404fff Arve Hjønnevåg       2013-01-24   72  	writel(cmdp, base + NAND_COMMAND);
8e404fff Arve Hjønnevåg       2013-01-24   73  	*rv = cps->result;
8e404fff Arve Hjønnevåg       2013-01-24   74  	return 0;
8e404fff Arve Hjønnevåg       2013-01-24   75  }
8e404fff Arve Hjønnevåg       2013-01-24   76  
8e404fff Arve Hjønnevåg       2013-01-24   77  static u32 goldfish_nand_cmd(struct mtd_info *mtd, enum nand_cmd cmd,
8e404fff Arve Hjønnevåg       2013-01-24   78  			     u64 addr, u32 len, void *ptr)
8e404fff Arve Hjønnevåg       2013-01-24   79  {
8e404fff Arve Hjønnevåg       2013-01-24   80  	struct goldfish_nand *nand = mtd->priv;
8e404fff Arve Hjønnevåg       2013-01-24   81  	u32 rv;
8e404fff Arve Hjønnevåg       2013-01-24   82  	unsigned char __iomem  *base = nand->base;
8e404fff Arve Hjønnevåg       2013-01-24   83  
67c20cfb Kristina Martšenko   2014-03-25   84  	mutex_lock(&nand->lock);
8e404fff Arve Hjønnevåg       2013-01-24   85  	if (goldfish_nand_cmd_with_params(mtd, cmd, addr, len, ptr, &rv)) {
8e404fff Arve Hjønnevåg       2013-01-24   86  		writel(mtd - nand->mtd, base + NAND_DEV);
8e404fff Arve Hjønnevåg       2013-01-24   87  		writel((u32)(addr >> 32), base + NAND_ADDR_HIGH);
8e404fff Arve Hjønnevåg       2013-01-24   88  		writel((u32)addr, base + NAND_ADDR_LOW);
8e404fff Arve Hjønnevåg       2013-01-24   89  		writel(len, base + NAND_TRANSFER_SIZE);
07d783fd Peter Senna Tschudin 2015-05-19   90  		gf_write_ptr(ptr, base + NAND_DATA, base + NAND_DATA_HIGH);
8e404fff Arve Hjønnevåg       2013-01-24   91  		writel(cmd, base + NAND_COMMAND);
8e404fff Arve Hjønnevåg       2013-01-24   92  		rv = readl(base + NAND_RESULT);
8e404fff Arve Hjønnevåg       2013-01-24   93  	}
67c20cfb Kristina Martšenko   2014-03-25   94  	mutex_unlock(&nand->lock);
8e404fff Arve Hjønnevåg       2013-01-24   95  	return rv;
8e404fff Arve Hjønnevåg       2013-01-24   96  }
8e404fff Arve Hjønnevåg       2013-01-24   97  
8e404fff Arve Hjønnevåg       2013-01-24   98  static int goldfish_nand_erase(struct mtd_info *mtd, struct erase_info *instr)
8e404fff Arve Hjønnevåg       2013-01-24   99  {
8e404fff Arve Hjønnevåg       2013-01-24  100  	loff_t ofs = instr->addr;
8e404fff Arve Hjønnevåg       2013-01-24  101  	u32 len = instr->len;
8e404fff Arve Hjønnevåg       2013-01-24  102  	u32 rem;
8e404fff Arve Hjønnevåg       2013-01-24  103  
8e404fff Arve Hjønnevåg       2013-01-24  104  	if (ofs + len > mtd->size)
8e404fff Arve Hjønnevåg       2013-01-24  105  		goto invalid_arg;
8e404fff Arve Hjønnevåg       2013-01-24 @106  	rem = do_div(ofs, mtd->writesize);
8e404fff Arve Hjønnevåg       2013-01-24  107  	if (rem)
8e404fff Arve Hjønnevåg       2013-01-24  108  		goto invalid_arg;
8e404fff Arve Hjønnevåg       2013-01-24  109  	ofs *= (mtd->writesize + mtd->oobsize);

:::::: The code at line 106 was first introduced by commit
:::::: 8e404fffeac7d3985b193edbf860d9d73dec5b6a goldfish: NAND flash driver

:::::: TO: Arve Hjønnevåg <arve@google.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] kconfig: fix missing symbol error
  2015-11-05 12:46 [PATCH] kconfig: fix missing symbol error yalin wang
  2015-11-05 14:16 ` kbuild test robot
  2015-11-05 15:14 ` kbuild test robot
@ 2015-11-05 15:17 ` kbuild test robot
  2 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2015-11-05 15:17 UTC (permalink / raw)
  To: yalin wang; +Cc: kbuild-all, ralf, chenhc, yalin.wang2010, linux-kernel

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

Hi yalin,

[auto build test ERROR on: v4.3-rc7]
[also build test ERROR on: next-20151105]

url:    https://github.com/0day-ci/linux/commits/yalin-wang/kconfig-fix-missing-symbol-error/20151105-204811
config: blackfin-allmodconfig (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
        # save the attached .config to linux build tree
        make.cross ARCH=blackfin 

All error/warnings (new ones prefixed by >>):

>> drivers/staging/olpc_dcon/olpc_dcon.c:30:21: fatal error: asm/tsc.h: No such file or directory
   compilation terminated.
--
>> drivers/input/mouse/hgpk.c:39:22: fatal error: asm/olpc.h: No such file or directory
   compilation terminated.
--
   drivers/staging/goldfish/goldfish_nand.c: In function 'goldfish_nand_erase':
>> drivers/staging/goldfish/goldfish_nand.c:106:8: warning: comparison of distinct pointer types lacks a cast [enabled by default]
   drivers/staging/goldfish/goldfish_nand.c: In function 'goldfish_nand_read_oob':
   drivers/staging/goldfish/goldfish_nand.c:144:8: warning: comparison of distinct pointer types lacks a cast [enabled by default]
   drivers/staging/goldfish/goldfish_nand.c: In function 'goldfish_nand_write_oob':
   drivers/staging/goldfish/goldfish_nand.c:176:8: warning: comparison of distinct pointer types lacks a cast [enabled by default]
   drivers/staging/goldfish/goldfish_nand.c: In function 'goldfish_nand_read':
   drivers/staging/goldfish/goldfish_nand.c:204:8: warning: comparison of distinct pointer types lacks a cast [enabled by default]
   drivers/staging/goldfish/goldfish_nand.c: In function 'goldfish_nand_write':
   drivers/staging/goldfish/goldfish_nand.c:226:8: warning: comparison of distinct pointer types lacks a cast [enabled by default]
   drivers/staging/goldfish/goldfish_nand.c: In function 'goldfish_nand_block_isbad':
   drivers/staging/goldfish/goldfish_nand.c:247:8: warning: comparison of distinct pointer types lacks a cast [enabled by default]
   drivers/staging/goldfish/goldfish_nand.c: In function 'goldfish_nand_block_markbad':
   drivers/staging/goldfish/goldfish_nand.c:268:8: warning: comparison of distinct pointer types lacks a cast [enabled by default]
--
>> drivers/net/wireless/libertas/if_usb.c:16:22: fatal error: asm/olpc.h: No such file or directory
   compilation terminated.
--
>> drivers/platform/olpc/olpc-ec.c:18:22: fatal error: asm/olpc.h: No such file or directory
   compilation terminated.

vim +30 drivers/staging/olpc_dcon/olpc_dcon.c

ac9bbd08 Toshiaki Yamane   2012-08-17  14  #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
eecb3e4e Andres Salomon    2010-09-24  15  
eecb3e4e Andres Salomon    2010-09-24  16  #include <linux/kernel.h>
eecb3e4e Andres Salomon    2010-09-24  17  #include <linux/fb.h>
eecb3e4e Andres Salomon    2010-09-24  18  #include <linux/console.h>
eecb3e4e Andres Salomon    2010-09-24  19  #include <linux/i2c.h>
eecb3e4e Andres Salomon    2010-09-24  20  #include <linux/platform_device.h>
eecb3e4e Andres Salomon    2010-09-24  21  #include <linux/interrupt.h>
eecb3e4e Andres Salomon    2010-09-24  22  #include <linux/delay.h>
99c97852 Paul Gortmaker    2011-07-03  23  #include <linux/module.h>
eecb3e4e Andres Salomon    2010-09-24  24  #include <linux/backlight.h>
eecb3e4e Andres Salomon    2010-09-24  25  #include <linux/device.h>
e107e6eb Marek Belisko     2011-02-03  26  #include <linux/uaccess.h>
eecb3e4e Andres Salomon    2010-09-24  27  #include <linux/ctype.h>
eecb3e4e Andres Salomon    2010-09-24  28  #include <linux/reboot.h>
3bf9428f Andres Salomon    2012-07-11  29  #include <linux/olpc-ec.h>
eecb3e4e Andres Salomon    2010-09-24 @30  #include <asm/tsc.h>
eecb3e4e Andres Salomon    2010-09-24  31  #include <asm/olpc.h>
eecb3e4e Andres Salomon    2010-09-24  32  
eecb3e4e Andres Salomon    2010-09-24  33  #include "olpc_dcon.h"
eecb3e4e Andres Salomon    2010-09-24  34  
eecb3e4e Andres Salomon    2010-09-24  35  /* Module definitions */
eecb3e4e Andres Salomon    2010-09-24  36  
c542341d Valentin Rothberg 2011-12-05  37  static ushort resumeline = 898;
c542341d Valentin Rothberg 2011-12-05  38  module_param(resumeline, ushort, 0444);

:::::: The code at line 30 was first introduced by commit
:::::: eecb3e4e5d9d83ebe1bef222a707eb7618498b67 staging: olpc_dcon: add OLPC display controller (DCON) support

:::::: TO: Andres Salomon <dilinger@queued.net>
:::::: CC: Greg Kroah-Hartman <gregkh@suse.de>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-11-05 15:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-05 12:46 [PATCH] kconfig: fix missing symbol error yalin wang
2015-11-05 14:16 ` kbuild test robot
2015-11-05 15:14 ` kbuild test robot
2015-11-05 15:17 ` kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®