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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202509152248.NjJj2xwQ-lkp@intel.com>
Date: Mon, 15 Sep 2025 22:35:40 +0800
From: kernel test robot <lkp@...el.com>
To: Ryan.Wanner@...rochip.com, claudiu.beznea@...on.dev, sre@...nel.org,
	robh@...nel.org, krzk+dt@...nel.org, conor+dt@...nel.org,
	nicolas.ferre@...rochip.com, alexandre.belloni@...tlin.com,
	linux@...linux.org.uk
Cc: oe-kbuild-all@...ts.linux.dev, linux-pm@...r.kernel.org,
	devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/4] ARM: at91: PM: implement selection of LPM

Hi,

kernel test robot noticed the following build warnings:

[auto build test WARNING on soc/for-next]
[also build test WARNING on cbeznea/tests linus/master v6.17-rc6]
[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/Ryan-Wanner-microchip-com/dt-bindings-power-reset-atmel-sama5d2-shdwc-add-lpm-binding/20250911-002354
base:   https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git for-next
patch link:    https://lore.kernel.org/r/e72d9af1326cf44888059270263afde875ccc994.1757519351.git.Ryan.Wanner%40microchip.com
patch subject: [PATCH 2/4] ARM: at91: PM: implement selection of LPM
config: arm-randconfig-r131-20250915 (https://download.01.org/0day-ci/archive/20250915/202509152248.NjJj2xwQ-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 21857ae337e0892a5522b6e7337899caa61de2a6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250915/202509152248.NjJj2xwQ-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/202509152248.NjJj2xwQ-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> arch/arm/mach-at91/pm.c:283:75: sparse: sparse: Using plain integer as NULL pointer
   arch/arm/mach-at91/pm.c:1101:30: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void ( *static [assigned] [toplevel] at91_suspend_sram_fn )( ... ) @@     got void [noderef] __iomem * @@
   arch/arm/mach-at91/pm.c:1101:30: sparse:     expected void ( *static [assigned] [toplevel] at91_suspend_sram_fn )( ... )
   arch/arm/mach-at91/pm.c:1101:30: sparse:     got void [noderef] __iomem *

vim +283 arch/arm/mach-at91/pm.c

   271	
   272	static int at91_pm_prepare_lpm(unsigned int pm_mode)
   273	{
   274		struct platform_device *pdev;
   275		int ndevices, i, ret;
   276		struct of_phandle_args lpmspec;
   277	
   278		if ((pm_mode != AT91_PM_ULP0 && pm_mode != AT91_PM_ULP1) ||
   279		    !soc_pm.shdwc_np)
   280			return 0;
   281	
   282		ndevices = of_count_phandle_with_args(soc_pm.shdwc_np,
 > 283						      "microchip,lpm-connection", 0);
   284		if (ndevices < 0)
   285			return 0;
   286	
   287		soc_pm.data.lpm = 1;
   288		for (i = 0; i < ndevices; i++) {
   289			ret = of_parse_phandle_with_args(soc_pm.shdwc_np,
   290							 "microchip,lpm-connection",
   291							 NULL, i, &lpmspec);
   292			if (ret < 0) {
   293				if (ret == -ENOENT) {
   294					continue;
   295				} else {
   296					soc_pm.data.lpm = 0;
   297					return ret;
   298				}
   299			}
   300	
   301			pdev = of_find_device_by_node(lpmspec.np);
   302			if (!pdev)
   303				continue;
   304	
   305			if (device_may_wakeup(&pdev->dev)) {
   306				if (pm_mode == AT91_PM_ULP1) {
   307					/*
   308					 * ULP1 wake-up sources are limited. Ignore it if not
   309					 * in soc_pm.ws_ids.
   310					 */
   311					if (at91_pm_device_in_list(pdev, soc_pm.ws_ids))
   312						soc_pm.data.lpm = 0;
   313				} else {
   314					soc_pm.data.lpm = 0;
   315				}
   316			}
   317	
   318			put_device(&pdev->dev);
   319			if (!soc_pm.data.lpm)
   320				break;
   321		}
   322	
   323		return 0;
   324	}
   325	

-- 
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