[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201510100149.FPVBX63z%fengguang.wu@intel.com>
Date: Sat, 10 Oct 2015 01:39:13 +0800
From: kbuild test robot <lkp@...el.com>
To: Gerlando Falauto <gerlando.falauto@...mile.com>
Cc: kbuild-all@...org, netdev@...r.kernel.org, timur@...i.org,
linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
ogabbay@...aoptical.com, bigeasy@...utronix.de,
Gerlando Falauto <gerlando.falauto@...mile.com>,
Timur Tabi <timur@...escale.com>,
"David S. Miller" <davem@...emloft.net>,
Andy Fleming <afleming@...escale.com>,
Kumar Gala <galak@...nel.crashing.org>
Subject: Re: [PATCH 1/2] net/fsl_pq_mdio: check TBI address for consistency
with mapped range
Hi Gerlando,
[auto build test WARNING on net/master -- if it's inappropriate base, please ignore]
config: powerpc-tqm8541_defconfig (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=powerpc
All warnings (new ones prefixed by >>):
drivers/net/ethernet/freescale/fsl_pq_mdio.c: In function 'fsl_pq_mdio_probe':
>> drivers/net/ethernet/freescale/fsl_pq_mdio.c:454:14: warning: comparison of distinct pointer types lacks a cast
if (tbipa > priv->map + resource_size(&res))
^
vim +454 drivers/net/ethernet/freescale/fsl_pq_mdio.c
438 if (!prop) {
439 dev_err(&pdev->dev,
440 "missing 'reg' property in node %s\n",
441 tbi->full_name);
442 err = -EBUSY;
443 goto error;
444 }
445
446 tbipa = data->get_tbipa(priv->map);
447
448 /*
449 * Add consistency check to make sure TBI is contained
450 * within the mapped range (not because we would get a
451 * segfault, rather to catch bugs in computing TBI
452 * address). Print error message but continue anyway.
453 */
> 454 if (tbipa > priv->map + resource_size(&res))
455 dev_err(&pdev->dev, "invalid register map (should be at least 0x%04x to contain TBI address)\n",
456 ((void *)tbipa - priv->map) + 4);
457
458 iowrite32be(be32_to_cpup(prop), tbipa);
459 }
460 }
461
462 if (data->ucc_configure)
---
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" (13495 bytes)
Powered by blists - more mailing lists