From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: arch/sh/kernel/cpu/sh3/serial-sh7720.c:16:32: sparse: sparse: incorrect type in argument 1 (different base types)
Date: Sat, 15 May 2021 07:56:30 +0800 [thread overview]
Message-ID: <202105150720.QWHbNPwi-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3834 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 25a1298726e97b9d25379986f5d54d9e62ad6e93
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date: 9 months ago
config: sh-randconfig-s032-20210515 (attached as .config)
compiler: sh4-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-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e5fc436f06eef54ef512ea55a9db8eb9f2e76959
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e5fc436f06eef54ef512ea55a9db8eb9f2e76959
# 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=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
iwyu warnings: (new ones prefixed by >>)
vim +16 arch/sh/kernel/cpu/sh3/serial-sh7720.c
61a6976bf19a6cf Paul Mundt 2011-06-14 7
61a6976bf19a6cf Paul Mundt 2011-06-14 8 static void sh7720_sci_init_pins(struct uart_port *port, unsigned int cflag)
61a6976bf19a6cf Paul Mundt 2011-06-14 9 {
61a6976bf19a6cf Paul Mundt 2011-06-14 10 unsigned short data;
61a6976bf19a6cf Paul Mundt 2011-06-14 11
61a6976bf19a6cf Paul Mundt 2011-06-14 12 if (cflag & CRTSCTS) {
61a6976bf19a6cf Paul Mundt 2011-06-14 13 /* enable RTS/CTS */
61a6976bf19a6cf Paul Mundt 2011-06-14 14 if (port->mapbase == 0xa4430000) { /* SCIF0 */
61a6976bf19a6cf Paul Mundt 2011-06-14 15 /* Clear PTCR bit 9-2; enable all scif pins but sck */
61a6976bf19a6cf Paul Mundt 2011-06-14 @16 data = __raw_readw(PORT_PTCR);
61a6976bf19a6cf Paul Mundt 2011-06-14 17 __raw_writew((data & 0xfc03), PORT_PTCR);
61a6976bf19a6cf Paul Mundt 2011-06-14 18 } else if (port->mapbase == 0xa4438000) { /* SCIF1 */
61a6976bf19a6cf Paul Mundt 2011-06-14 19 /* Clear PVCR bit 9-2 */
61a6976bf19a6cf Paul Mundt 2011-06-14 20 data = __raw_readw(PORT_PVCR);
61a6976bf19a6cf Paul Mundt 2011-06-14 21 __raw_writew((data & 0xfc03), PORT_PVCR);
61a6976bf19a6cf Paul Mundt 2011-06-14 22 }
61a6976bf19a6cf Paul Mundt 2011-06-14 23 } else {
61a6976bf19a6cf Paul Mundt 2011-06-14 24 if (port->mapbase == 0xa4430000) { /* SCIF0 */
61a6976bf19a6cf Paul Mundt 2011-06-14 25 /* Clear PTCR bit 5-2; enable only tx and rx */
61a6976bf19a6cf Paul Mundt 2011-06-14 26 data = __raw_readw(PORT_PTCR);
61a6976bf19a6cf Paul Mundt 2011-06-14 27 __raw_writew((data & 0xffc3), PORT_PTCR);
61a6976bf19a6cf Paul Mundt 2011-06-14 28 } else if (port->mapbase == 0xa4438000) { /* SCIF1 */
61a6976bf19a6cf Paul Mundt 2011-06-14 29 /* Clear PVCR bit 5-2 */
61a6976bf19a6cf Paul Mundt 2011-06-14 30 data = __raw_readw(PORT_PVCR);
61a6976bf19a6cf Paul Mundt 2011-06-14 31 __raw_writew((data & 0xffc3), PORT_PVCR);
61a6976bf19a6cf Paul Mundt 2011-06-14 32 }
61a6976bf19a6cf Paul Mundt 2011-06-14 33 }
61a6976bf19a6cf Paul Mundt 2011-06-14 34 }
61a6976bf19a6cf Paul Mundt 2011-06-14 35
:::::: The code at line 16 was first introduced by commit
:::::: 61a6976bf19a6cf5dfcf37c3536665b316f22d49 serial: sh-sci: Abstract register maps.
:::::: TO: Paul Mundt <lethal@linux-sh.org>
:::::: CC: Paul Mundt <lethal@linux-sh.org>
---
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: 18134 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Subject: arch/sh/kernel/cpu/sh3/serial-sh7720.c:16:32: sparse: sparse: incorrect type in argument 1 (different base types)
Date: Sat, 15 May 2021 07:56:30 +0800 [thread overview]
Message-ID: <202105150720.QWHbNPwi-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3766 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 25a1298726e97b9d25379986f5d54d9e62ad6e93
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date: 9 months ago
config: sh-randconfig-s032-20210515 (attached as .config)
compiler: sh4-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-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e5fc436f06eef54ef512ea55a9db8eb9f2e76959
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e5fc436f06eef54ef512ea55a9db8eb9f2e76959
# 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=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
iwyu warnings: (new ones prefixed by >>)
vim +16 arch/sh/kernel/cpu/sh3/serial-sh7720.c
61a6976bf19a6cf Paul Mundt 2011-06-14 7
61a6976bf19a6cf Paul Mundt 2011-06-14 8 static void sh7720_sci_init_pins(struct uart_port *port, unsigned int cflag)
61a6976bf19a6cf Paul Mundt 2011-06-14 9 {
61a6976bf19a6cf Paul Mundt 2011-06-14 10 unsigned short data;
61a6976bf19a6cf Paul Mundt 2011-06-14 11
61a6976bf19a6cf Paul Mundt 2011-06-14 12 if (cflag & CRTSCTS) {
61a6976bf19a6cf Paul Mundt 2011-06-14 13 /* enable RTS/CTS */
61a6976bf19a6cf Paul Mundt 2011-06-14 14 if (port->mapbase == 0xa4430000) { /* SCIF0 */
61a6976bf19a6cf Paul Mundt 2011-06-14 15 /* Clear PTCR bit 9-2; enable all scif pins but sck */
61a6976bf19a6cf Paul Mundt 2011-06-14 @16 data = __raw_readw(PORT_PTCR);
61a6976bf19a6cf Paul Mundt 2011-06-14 17 __raw_writew((data & 0xfc03), PORT_PTCR);
61a6976bf19a6cf Paul Mundt 2011-06-14 18 } else if (port->mapbase == 0xa4438000) { /* SCIF1 */
61a6976bf19a6cf Paul Mundt 2011-06-14 19 /* Clear PVCR bit 9-2 */
61a6976bf19a6cf Paul Mundt 2011-06-14 20 data = __raw_readw(PORT_PVCR);
61a6976bf19a6cf Paul Mundt 2011-06-14 21 __raw_writew((data & 0xfc03), PORT_PVCR);
61a6976bf19a6cf Paul Mundt 2011-06-14 22 }
61a6976bf19a6cf Paul Mundt 2011-06-14 23 } else {
61a6976bf19a6cf Paul Mundt 2011-06-14 24 if (port->mapbase == 0xa4430000) { /* SCIF0 */
61a6976bf19a6cf Paul Mundt 2011-06-14 25 /* Clear PTCR bit 5-2; enable only tx and rx */
61a6976bf19a6cf Paul Mundt 2011-06-14 26 data = __raw_readw(PORT_PTCR);
61a6976bf19a6cf Paul Mundt 2011-06-14 27 __raw_writew((data & 0xffc3), PORT_PTCR);
61a6976bf19a6cf Paul Mundt 2011-06-14 28 } else if (port->mapbase == 0xa4438000) { /* SCIF1 */
61a6976bf19a6cf Paul Mundt 2011-06-14 29 /* Clear PVCR bit 5-2 */
61a6976bf19a6cf Paul Mundt 2011-06-14 30 data = __raw_readw(PORT_PVCR);
61a6976bf19a6cf Paul Mundt 2011-06-14 31 __raw_writew((data & 0xffc3), PORT_PVCR);
61a6976bf19a6cf Paul Mundt 2011-06-14 32 }
61a6976bf19a6cf Paul Mundt 2011-06-14 33 }
61a6976bf19a6cf Paul Mundt 2011-06-14 34 }
61a6976bf19a6cf Paul Mundt 2011-06-14 35
:::::: The code at line 16 was first introduced by commit
:::::: 61a6976bf19a6cf5dfcf37c3536665b316f22d49 serial: sh-sci: Abstract register maps.
:::::: TO: Paul Mundt <lethal@linux-sh.org>
:::::: CC: Paul Mundt <lethal@linux-sh.org>
---
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: 18134 bytes --]
next reply other threads:[~2021-05-14 23:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-14 23:56 kernel test robot [this message]
2021-05-14 23:56 ` arch/sh/kernel/cpu/sh3/serial-sh7720.c:16:32: sparse: sparse: incorrect type in argument 1 (different base types) kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2021-08-03 9:17 kernel test robot
2021-08-03 9:17 ` kernel test robot
2021-07-14 6:54 kernel test robot
2021-07-14 6:54 ` kernel test robot
2020-11-24 16:55 kernel test robot
2020-11-24 16:55 ` 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=202105150720.QWHbNPwi-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.