Linux-Hwmon Archive on lore.kernel.org
 help / color / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Fabio Estevam <festevam@gmail.com>
Cc: kbuild-all@lists.01.org, linux-hwmon@vger.kernel.org,
	Guenter Roeck <linux@roeck-us.net>
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: <201911090453.Hn6woLpS%lkp@intel.com> (raw)

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

                 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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=201911090453.Hn6woLpS%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=festevam@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux@roeck-us.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

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

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