Linux-Hwmon Archive on
 help / color / Atom feed
From: kbuild test robot <>
To: Fabio Estevam <>
	Guenter Roeck <>
Subject: [hwmon:watchdog-next 22/24] drivers/watchdog/imx7ulp_wdt.c:115:31: sparse: sparse: incorrect type in argument 1 (different address spaces)
Date: Sat, 9 Nov 2019 04:03:54 +0800
Message-ID: <> (raw)

tree: watchdog-next
head:   1fc86924bf1dd70aa4d6379e799f79d4723d1d0e
commit: bcf0eed581f50ad18f1dbcba8595f39c98fad306 [22/24] watchdog: imx7ulp: Fix reboot hang
        # 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 <>

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

   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);
 > 115		imx7ulp_wdt_enable(wdt->base, true);
   116		imx7ulp_wdt_set_timeout(&wdt->wdd, 1);
   118		/* wait for wdog to fire */
   119		while (true)
   120			;
   122		return NOTIFY_DONE;
   123	}

0-DAY kernel test infrastructure                 Open Source Technology Center Intel Corporation

                 reply index

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-Hwmon Archive on

Archives are clonable:
	git clone --mirror 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/ \
	public-inbox-index linux-hwmon

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone