Linux-Hwmon Archive on lore.kernel.org
 help / color / Atom feed
* [hwmon:watchdog-next 22/24] drivers/watchdog/imx7ulp_wdt.c:115:31: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2019-11-08 20:03 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-11-08 20:03 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: kbuild-all, linux-hwmon, Guenter Roeck

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git watchdog-next
head:   1fc86924bf1dd70aa4d6379e799f79d4723d1d0e
commit: bcf0eed581f50ad18f1dbcba8595f39c98fad306 [22/24] watchdog: imx7ulp: Fix reboot hang
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-21-gb31adac-dirty
        git checkout bcf0eed581f50ad18f1dbcba8595f39c98fad306
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)

>> drivers/watchdog/imx7ulp_wdt.c:115:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@    expected struct watchdog_device *wdog @@    got struct watchdog_device *wdog @@
>> drivers/watchdog/imx7ulp_wdt.c:115:31: sparse:    expected struct watchdog_device *wdog
>> drivers/watchdog/imx7ulp_wdt.c:115:31: sparse:    got void [noderef] <asn:2> *base

vim +115 drivers/watchdog/imx7ulp_wdt.c

   109	
   110	static int imx7ulp_wdt_restart(struct watchdog_device *wdog,
   111				       unsigned long action, void *data)
   112	{
   113		struct imx7ulp_wdt_device *wdt = watchdog_get_drvdata(wdog);
   114	
 > 115		imx7ulp_wdt_enable(wdt->base, true);
   116		imx7ulp_wdt_set_timeout(&wdt->wdd, 1);
   117	
   118		/* wait for wdog to fire */
   119		while (true)
   120			;
   121	
   122		return NOTIFY_DONE;
   123	}
   124	

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-08 20:03 [hwmon:watchdog-next 22/24] drivers/watchdog/imx7ulp_wdt.c:115:31: sparse: sparse: incorrect type in argument 1 (different address spaces) kbuild test robot

Linux-Hwmon Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-hwmon/0 linux-hwmon/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-hwmon linux-hwmon/ https://lore.kernel.org/linux-hwmon \
		linux-hwmon@vger.kernel.org
	public-inbox-index linux-hwmon

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-hwmon


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git