[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202406272154.v694SvQb-lkp@intel.com>
Date: Thu, 27 Jun 2024 21:59:05 +0800
From: kernel test robot <lkp@...el.com>
To: Jean-Michel Hautbois <jeanmichel.hautbois@...eli.org>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
Stefan Agner <stefan@...er.ch>
Cc: oe-kbuild-all@...ts.linux.dev, linux-m68k@...ts.linux-m68k.org,
linux-kernel@...r.kernel.org, linux-mtd@...ts.infradead.org,
Jean-Michel Hautbois <jeanmichel.hautbois@...eli.org>
Subject: Re: [PATCH] mtd: nand: Add support for M5441x NFC
Hi Jean-Michel,
kernel test robot noticed the following build warnings:
[auto build test WARNING on e5b3efbe1ab1793bb49ae07d56d0973267e65112]
url: https://github.com/intel-lab-lkp/linux/commits/Jean-Michel-Hautbois/mtd-nand-Add-support-for-M5441x-NFC/20240625-144333
base: e5b3efbe1ab1793bb49ae07d56d0973267e65112
patch link: https://lore.kernel.org/r/20240620-upstream-nfc-mcf5441x-v1-1-69b64807d7a6%40yoseli.org
patch subject: [PATCH] mtd: nand: Add support for M5441x NFC
config: sh-randconfig-001-20240627 (https://download.01.org/0day-ci/archive/20240627/202406272154.v694SvQb-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240627/202406272154.v694SvQb-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406272154.v694SvQb-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/mtd/nand/raw/vf610_nfc.c: In function 'vf610_nfc_probe':
>> drivers/mtd/nand/raw/vf610_nfc.c:844:29: warning: unused variable 'child' [-Wunused-variable]
844 | struct device_node *child;
| ^~~~~
vim +/child +844 drivers/mtd/nand/raw/vf610_nfc.c
962c35ef1e6834 drivers/mtd/nand/raw/vf610_nfc.c Miquel Raynal 2018-07-20 837
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 838 static int vf610_nfc_probe(struct platform_device *pdev)
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 839 {
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 840 struct vf610_nfc *nfc;
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 841 struct mtd_info *mtd;
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 842 struct nand_chip *chip;
8e5473c07a181c drivers/mtd/nand/raw/vf610_nfc.c Jean-Michel Hautbois 2024-06-20 843 struct nand_chip *pdata;
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 @844 struct device_node *child;
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 845 int err;
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 846 int irq;
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 847
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 848 nfc = devm_kzalloc(&pdev->dev, sizeof(*nfc), GFP_KERNEL);
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 849 if (!nfc)
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 850 return -ENOMEM;
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 851
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 852 nfc->dev = &pdev->dev;
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 853 chip = &nfc->chip;
8e5473c07a181c drivers/mtd/nand/raw/vf610_nfc.c Jean-Michel Hautbois 2024-06-20 854 pdata = dev_get_platdata(&pdev->dev);
8e5473c07a181c drivers/mtd/nand/raw/vf610_nfc.c Jean-Michel Hautbois 2024-06-20 855 if (pdata)
8e5473c07a181c drivers/mtd/nand/raw/vf610_nfc.c Jean-Michel Hautbois 2024-06-20 856 *chip = *pdata;
8e5473c07a181c drivers/mtd/nand/raw/vf610_nfc.c Jean-Michel Hautbois 2024-06-20 857
960823a226b37e drivers/mtd/nand/vf610_nfc.c Boris Brezillon 2015-12-10 858 mtd = nand_to_mtd(chip);
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 859
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 860 mtd->owner = THIS_MODULE;
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 861 mtd->dev.parent = nfc->dev;
8e5473c07a181c drivers/mtd/nand/raw/vf610_nfc.c Jean-Michel Hautbois 2024-06-20 862
8e5473c07a181c drivers/mtd/nand/raw/vf610_nfc.c Jean-Michel Hautbois 2024-06-20 863 /*
8e5473c07a181c drivers/mtd/nand/raw/vf610_nfc.c Jean-Michel Hautbois 2024-06-20 864 * We keep the MTD name unchanged to avoid breaking platforms
8e5473c07a181c drivers/mtd/nand/raw/vf610_nfc.c Jean-Michel Hautbois 2024-06-20 865 * where the MTD cmdline parser is used and the bootloader
8e5473c07a181c drivers/mtd/nand/raw/vf610_nfc.c Jean-Michel Hautbois 2024-06-20 866 * has not been updated to use the new naming scheme.
8e5473c07a181c drivers/mtd/nand/raw/vf610_nfc.c Jean-Michel Hautbois 2024-06-20 867 */
8e5473c07a181c drivers/mtd/nand/raw/vf610_nfc.c Jean-Michel Hautbois 2024-06-20 868 if (!nfc->dev->of_node)
8e5473c07a181c drivers/mtd/nand/raw/vf610_nfc.c Jean-Michel Hautbois 2024-06-20 869 mtd->name = "NAND";
8e5473c07a181c drivers/mtd/nand/raw/vf610_nfc.c Jean-Michel Hautbois 2024-06-20 870 else
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 871 mtd->name = DRV_NAME;
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 872
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 873 irq = platform_get_irq(pdev, 0);
3549fecd10d24b drivers/mtd/nand/raw/vf610_nfc.c Zhu Wang 2023-08-03 874 if (irq < 0)
3549fecd10d24b drivers/mtd/nand/raw/vf610_nfc.c Zhu Wang 2023-08-03 875 return irq;
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 876
2d77b08eaf0b2f drivers/mtd/nand/raw/vf610_nfc.c Cai Huoqing 2021-09-01 877 nfc->regs = devm_platform_ioremap_resource(pdev, 0);
8e5473c07a181c drivers/mtd/nand/raw/vf610_nfc.c Jean-Michel Hautbois 2024-06-20 878 if (IS_ERR(nfc->regs)) {
8e5473c07a181c drivers/mtd/nand/raw/vf610_nfc.c Jean-Michel Hautbois 2024-06-20 879 dev_err(nfc->dev, "Unable to map registers!\n");
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 880 return PTR_ERR(nfc->regs);
8e5473c07a181c drivers/mtd/nand/raw/vf610_nfc.c Jean-Michel Hautbois 2024-06-20 881 }
456930d80a2da1 drivers/mtd/nand/vf610_nfc.c Stefan Agner 2015-09-02 882
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists