lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 30 Nov 2023 11:54:50 +0800
From:   kernel test robot <lkp@...el.com>
To:     Haoran Liu <liuhaoran14@....com>, geert+renesas@...der.be
Cc:     llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
        magnus.damm@...il.com, linux-renesas-soc@...r.kernel.org,
        linux-kernel@...r.kernel.org, Haoran Liu <liuhaoran14@....com>
Subject: Re: [PATCH] [soc/renesas] renesas-soc: Add error handling in
 renesas_soc_init

Hi Haoran,

kernel test robot noticed the following build errors:

[auto build test ERROR on geert-renesas-devel/next]
[also build test ERROR on linus/master v6.7-rc3 next-20231129]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Haoran-Liu/renesas-soc-Add-error-handling-in-renesas_soc_init/20231129-225113
base:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel.git next
patch link:    https://lore.kernel.org/r/20231129143431.34459-1-liuhaoran14%40163.com
patch subject: [PATCH] [soc/renesas] renesas-soc: Add error handling in renesas_soc_init
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20231130/202311300814.9jXQLQEU-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231130/202311300814.9jXQLQEU-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/202311300814.9jXQLQEU-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/soc/renesas/renesas-soc.c:492:11: error: use of undeclared identifier 'dev'
     492 |                 dev_err(dev, "Failed to read model property: %d\n", ret);
         |                         ^
   1 error generated.


vim +/dev +492 drivers/soc/renesas/renesas-soc.c

   447	
   448	static int __init renesas_soc_init(void)
   449	{
   450		struct soc_device_attribute *soc_dev_attr;
   451		unsigned int product, eshi = 0, eslo;
   452		const struct renesas_family *family;
   453		const struct of_device_id *match;
   454		const struct renesas_soc *soc;
   455		const struct renesas_id *id;
   456		void __iomem *chipid = NULL;
   457		const char *rev_prefix = "";
   458		struct soc_device *soc_dev;
   459		struct device_node *np;
   460		const char *soc_id;
   461		int ret;
   462	
   463		match = of_match_node(renesas_socs, of_root);
   464		if (!match)
   465			return -ENODEV;
   466	
   467		soc_id = strchr(match->compatible, ',') + 1;
   468		soc = match->data;
   469		family = soc->family;
   470	
   471		np = of_find_matching_node_and_match(NULL, renesas_ids, &match);
   472		if (np) {
   473			id = match->data;
   474			chipid = of_iomap(np, 0);
   475			of_node_put(np);
   476		} else if (soc->id && family->reg) {
   477			/* Try hardcoded CCCR/PRR fallback */
   478			id = &id_prr;
   479			chipid = ioremap(family->reg, 4);
   480		}
   481	
   482		soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
   483		if (!soc_dev_attr) {
   484			if (chipid)
   485				iounmap(chipid);
   486			return -ENOMEM;
   487		}
   488	
   489		np = of_find_node_by_path("/");
   490		ret = of_property_read_string(np, "model", &soc_dev_attr->machine);
   491		if (ret) {
 > 492			dev_err(dev, "Failed to read model property: %d\n", ret);

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ