All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: drivers/watchdog/at91rm9200_wdt.c:219:27: sparse: sparse: incorrect type in initializer (incompatible argument 2 (different address spaces))
Date: Wed, 21 Apr 2021 06:12:00 +0800	[thread overview]
Message-ID: <202104210646.EcC5m4Y0-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3338 bytes --]

Hi Masahiro,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7af08140979a6e7e12b78c93b8625c8d25b084e2
commit: ea29b20a828511de3348334e529a3d046a180416 init/Kconfig: make COMPILE_TEST depend on HAS_IOMEM
date:   5 weeks ago
config: s390-randconfig-s032-20210420 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-330-g09ec74f6-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ea29b20a828511de3348334e529a3d046a180416
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout ea29b20a828511de3348334e529a3d046a180416
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=s390 

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


sparse warnings: (new ones prefixed by >>)
>> drivers/watchdog/at91rm9200_wdt.c:219:27: sparse: sparse: incorrect type in initializer (incompatible argument 2 (different address spaces)) @@     expected long ( *write )( ... ) @@     got long ( * )( ... ) @@
   drivers/watchdog/at91rm9200_wdt.c:219:27: sparse:     expected long ( *write )( ... )
   drivers/watchdog/at91rm9200_wdt.c:219:27: sparse:     got long ( * )( ... )

vim +219 drivers/watchdog/at91rm9200_wdt.c

853807fb500a94 drivers/char/watchdog/at91_wdt.c  Andrew Victor    2006-03-14  211  
62322d2554d2f9 drivers/char/watchdog/at91_wdt.c  Arjan van de Ven 2006-07-03  212  static const struct file_operations at91wdt_fops = {
853807fb500a94 drivers/char/watchdog/at91_wdt.c  Andrew Victor    2006-03-14  213  	.owner		= THIS_MODULE,
853807fb500a94 drivers/char/watchdog/at91_wdt.c  Andrew Victor    2006-03-14  214  	.llseek		= no_llseek,
2760600da2a13d drivers/watchdog/at91rm9200_wdt.c Alan Cox         2008-05-19  215  	.unlocked_ioctl	= at91_wdt_ioctl,
b6dfb2477fb0bf drivers/watchdog/at91rm9200_wdt.c Arnd Bergmann    2019-06-03  216  	.compat_ioctl	= compat_ptr_ioctl,
853807fb500a94 drivers/char/watchdog/at91_wdt.c  Andrew Victor    2006-03-14  217  	.open		= at91_wdt_open,
853807fb500a94 drivers/char/watchdog/at91_wdt.c  Andrew Victor    2006-03-14  218  	.release	= at91_wdt_close,
853807fb500a94 drivers/char/watchdog/at91_wdt.c  Andrew Victor    2006-03-14 @219  	.write		= at91_wdt_write,
853807fb500a94 drivers/char/watchdog/at91_wdt.c  Andrew Victor    2006-03-14  220  };
853807fb500a94 drivers/char/watchdog/at91_wdt.c  Andrew Victor    2006-03-14  221  

:::::: The code at line 219 was first introduced by commit
:::::: 853807fb500a9442d88646b7be92bfa51334f8e8 [WATCHDOG] at91_wdt.c - Atmel AT91RM9200 watchdog driver

:::::: TO: Andrew Victor <andrew@sanpeople.com>
:::::: CC: Wim Van Sebroeck <wim@iguana.be>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 28023 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Masahiro Yamada <masahiroy@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: drivers/watchdog/at91rm9200_wdt.c:219:27: sparse: sparse: incorrect type in initializer (incompatible argument 2 (different address spaces))
Date: Wed, 21 Apr 2021 06:12:00 +0800	[thread overview]
Message-ID: <202104210646.EcC5m4Y0-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3282 bytes --]

Hi Masahiro,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7af08140979a6e7e12b78c93b8625c8d25b084e2
commit: ea29b20a828511de3348334e529a3d046a180416 init/Kconfig: make COMPILE_TEST depend on HAS_IOMEM
date:   5 weeks ago
config: s390-randconfig-s032-20210420 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-330-g09ec74f6-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ea29b20a828511de3348334e529a3d046a180416
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout ea29b20a828511de3348334e529a3d046a180416
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=s390 

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


sparse warnings: (new ones prefixed by >>)
>> drivers/watchdog/at91rm9200_wdt.c:219:27: sparse: sparse: incorrect type in initializer (incompatible argument 2 (different address spaces)) @@     expected long ( *write )( ... ) @@     got long ( * )( ... ) @@
   drivers/watchdog/at91rm9200_wdt.c:219:27: sparse:     expected long ( *write )( ... )
   drivers/watchdog/at91rm9200_wdt.c:219:27: sparse:     got long ( * )( ... )

vim +219 drivers/watchdog/at91rm9200_wdt.c

853807fb500a94 drivers/char/watchdog/at91_wdt.c  Andrew Victor    2006-03-14  211  
62322d2554d2f9 drivers/char/watchdog/at91_wdt.c  Arjan van de Ven 2006-07-03  212  static const struct file_operations at91wdt_fops = {
853807fb500a94 drivers/char/watchdog/at91_wdt.c  Andrew Victor    2006-03-14  213  	.owner		= THIS_MODULE,
853807fb500a94 drivers/char/watchdog/at91_wdt.c  Andrew Victor    2006-03-14  214  	.llseek		= no_llseek,
2760600da2a13d drivers/watchdog/at91rm9200_wdt.c Alan Cox         2008-05-19  215  	.unlocked_ioctl	= at91_wdt_ioctl,
b6dfb2477fb0bf drivers/watchdog/at91rm9200_wdt.c Arnd Bergmann    2019-06-03  216  	.compat_ioctl	= compat_ptr_ioctl,
853807fb500a94 drivers/char/watchdog/at91_wdt.c  Andrew Victor    2006-03-14  217  	.open		= at91_wdt_open,
853807fb500a94 drivers/char/watchdog/at91_wdt.c  Andrew Victor    2006-03-14  218  	.release	= at91_wdt_close,
853807fb500a94 drivers/char/watchdog/at91_wdt.c  Andrew Victor    2006-03-14 @219  	.write		= at91_wdt_write,
853807fb500a94 drivers/char/watchdog/at91_wdt.c  Andrew Victor    2006-03-14  220  };
853807fb500a94 drivers/char/watchdog/at91_wdt.c  Andrew Victor    2006-03-14  221  

:::::: The code at line 219 was first introduced by commit
:::::: 853807fb500a9442d88646b7be92bfa51334f8e8 [WATCHDOG] at91_wdt.c - Atmel AT91RM9200 watchdog driver

:::::: TO: Andrew Victor <andrew@sanpeople.com>
:::::: CC: Wim Van Sebroeck <wim@iguana.be>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28023 bytes --]

             reply	other threads:[~2021-04-20 22:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-20 22:12 kernel test robot [this message]
2021-04-20 22:12 ` drivers/watchdog/at91rm9200_wdt.c:219:27: sparse: sparse: incorrect type in initializer (incompatible argument 2 (different address spaces)) kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-04-20 23:41 kernel test robot
2021-04-20 23:41 ` kernel test robot
2021-04-20 22:04 kernel test robot
2021-04-20 22:04 ` kernel test robot
2021-04-20 21:53 kernel test robot
2021-04-20 21:53 ` kernel test robot

Reply instructions:

You may reply publicly 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=202104210646.EcC5m4Y0-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.