False positive. Should be fixed in the latest... regards, dan carpenter
On Fri, Jul 31, 2015 at 03:51:05PM +0800, kbuild test robot wrote: > TO: Andy Shevchenko <andriy.shevche...@linux.intel.com> > CC: kbuild-...@01.org > > tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > master > head: 37bd1ea52d362219b1882814cb75bb365736890f > commit: f2ce8a9e48385f444389e75cfe293637c3eb5410 [4077/5676] net/macb: > improve big endian CPU support > :::::: branch date: 2 hours ago > :::::: commit date: 4 days ago > > New smatch warnings: > drivers/net/ethernet/cadence/macb.c:2876 macb_probe() warn: variable > dereferenced before check 'native_io' (see line 2860) > > Old smatch warnings: > drivers/net/ethernet/cadence/macb.c:2890 macb_probe() error: we previously > assumed 'macb_config' could be null (see line 2885) > > git remote add linux-next > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > git remote update linux-next > git checkout f2ce8a9e48385f444389e75cfe293637c3eb5410 > vim +/native_io +2876 drivers/net/ethernet/cadence/macb.c > > c69618b3 Nicolas Ferre 2015-03-31 2854 err = clk_init(pdev, &pclk, > &hclk, &tx_clk); > c69618b3 Nicolas Ferre 2015-03-31 2855 if (err) > c69618b3 Nicolas Ferre 2015-03-31 2856 return err; > c69618b3 Nicolas Ferre 2015-03-31 2857 > f2ce8a9e Andy Shevchenko 2015-07-24 2858 native_io = > hw_is_native_io(mem); > 421d9df0 Cyrille Pitchen 2015-03-07 2859 > f2ce8a9e Andy Shevchenko 2015-07-24 @2860 macb_probe_queues(mem, > native_io, &queue_mask, &num_queues); > 421d9df0 Cyrille Pitchen 2015-03-07 2861 dev = > alloc_etherdev_mq(sizeof(*bp), num_queues); > c69618b3 Nicolas Ferre 2015-03-31 2862 if (!dev) { > c69618b3 Nicolas Ferre 2015-03-31 2863 err = -ENOMEM; > c69618b3 Nicolas Ferre 2015-03-31 2864 goto err_disable_clocks; > c69618b3 Nicolas Ferre 2015-03-31 2865 } > 421d9df0 Cyrille Pitchen 2015-03-07 2866 > 421d9df0 Cyrille Pitchen 2015-03-07 2867 dev->base_addr = regs->start; > 421d9df0 Cyrille Pitchen 2015-03-07 2868 > 421d9df0 Cyrille Pitchen 2015-03-07 2869 SET_NETDEV_DEV(dev, &pdev->dev); > 421d9df0 Cyrille Pitchen 2015-03-07 2870 > 421d9df0 Cyrille Pitchen 2015-03-07 2871 bp = netdev_priv(dev); > 421d9df0 Cyrille Pitchen 2015-03-07 2872 bp->pdev = pdev; > 421d9df0 Cyrille Pitchen 2015-03-07 2873 bp->dev = dev; > 421d9df0 Cyrille Pitchen 2015-03-07 2874 bp->regs = mem; > f2ce8a9e Andy Shevchenko 2015-07-24 2875 bp->native_io = native_io; > f2ce8a9e Andy Shevchenko 2015-07-24 @2876 if (native_io) { > f2ce8a9e Andy Shevchenko 2015-07-24 2877 bp->readl = > hw_readl_native; > f2ce8a9e Andy Shevchenko 2015-07-24 2878 bp->writel = > hw_writel_native; > f2ce8a9e Andy Shevchenko 2015-07-24 2879 } else { > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation _______________________________________________ kbuild mailing list kbuild@lists.01.org https://lists.01.org/mailman/listinfo/kbuild