linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Matthew Wilcox <mawilcox@microsoft.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: arch/mips/include/asm/vga.h:46:21: sparse: sparse: incorrect type in argument 2 (different base types)
Date: Fri, 3 Mar 2023 14:36:10 +0800	[thread overview]
Message-ID: <202303031413.o8quncp8-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   2eb29d59ddf02e39774abfb60b2030b0b7e27c1f
commit: ac036f9570a2d318b7d8dbbdbf0e269d7cc68cef vga: optimise console scrolling
date:   5 years ago
config: mips-randconfig-s033-20230302 (https://download.01.org/0day-ci/archive/20230303/202303031413.o8quncp8-lkp@intel.com/config)
compiler: mipsel-linux-gcc (GCC) 12.1.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.4-39-gce1a6720-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ac036f9570a2d318b7d8dbbdbf0e269d7cc68cef
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout ac036f9570a2d318b7d8dbbdbf0e269d7cc68cef
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips SHELL=/bin/bash drivers/tty/vt/ kernel/trace/ mm/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303031413.o8quncp8-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   drivers/tty/vt/vt.c: note: in included file (through include/linux/vt_buffer.h, include/linux/selection.h):
>> arch/mips/include/asm/vga.h:46:21: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected unsigned short [usertype] @@     got restricted __le16 [usertype] @@
   arch/mips/include/asm/vga.h:46:21: sparse:     expected unsigned short [usertype]
   arch/mips/include/asm/vga.h:46:21: sparse:     got restricted __le16 [usertype]
   arch/mips/include/asm/vga.h:41:16: sparse: sparse: cast to restricted __le16
   arch/mips/include/asm/vga.h:41:16: sparse: sparse: cast to restricted __le16
   arch/mips/include/asm/vga.h:41:16: sparse: sparse: cast to restricted __le16
   arch/mips/include/asm/vga.h:41:16: sparse: sparse: cast to restricted __le16
   arch/mips/include/asm/vga.h:36:15: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short volatile [usertype] @@     got restricted __le16 [usertype] @@
   arch/mips/include/asm/vga.h:36:15: sparse:     expected unsigned short volatile [usertype]
   arch/mips/include/asm/vga.h:36:15: sparse:     got restricted __le16 [usertype]
   arch/mips/include/asm/vga.h:41:16: sparse: sparse: cast to restricted __le16
   arch/mips/include/asm/vga.h:36:15: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short volatile [usertype] @@     got restricted __le16 [usertype] @@
   arch/mips/include/asm/vga.h:36:15: sparse:     expected unsigned short volatile [usertype]
   arch/mips/include/asm/vga.h:36:15: sparse:     got restricted __le16 [usertype]
   arch/mips/include/asm/vga.h:41:16: sparse: sparse: cast to restricted __le16
   arch/mips/include/asm/vga.h:36:15: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short volatile [usertype] @@     got restricted __le16 [usertype] @@
   arch/mips/include/asm/vga.h:36:15: sparse:     expected unsigned short volatile [usertype]
   arch/mips/include/asm/vga.h:36:15: sparse:     got restricted __le16 [usertype]
   arch/mips/include/asm/vga.h:36:15: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short volatile [usertype] @@     got restricted __le16 [usertype] @@
   arch/mips/include/asm/vga.h:36:15: sparse:     expected unsigned short volatile [usertype]
   arch/mips/include/asm/vga.h:36:15: sparse:     got restricted __le16 [usertype]
   arch/mips/include/asm/vga.h:41:16: sparse: sparse: cast to restricted __le16
   arch/mips/include/asm/vga.h:36:15: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short volatile [usertype] @@     got restricted __le16 [usertype] @@
   arch/mips/include/asm/vga.h:36:15: sparse:     expected unsigned short volatile [usertype]
   arch/mips/include/asm/vga.h:36:15: sparse:     got restricted __le16 [usertype]
>> arch/mips/include/asm/vga.h:46:21: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected unsigned short [usertype] @@     got restricted __le16 [usertype] @@
   arch/mips/include/asm/vga.h:46:21: sparse:     expected unsigned short [usertype]
   arch/mips/include/asm/vga.h:46:21: sparse:     got restricted __le16 [usertype]
>> arch/mips/include/asm/vga.h:46:21: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected unsigned short [usertype] @@     got restricted __le16 [usertype] @@
   arch/mips/include/asm/vga.h:46:21: sparse:     expected unsigned short [usertype]
   arch/mips/include/asm/vga.h:46:21: sparse:     got restricted __le16 [usertype]
   arch/mips/include/asm/vga.h:41:16: sparse: sparse: cast to restricted __le16
   arch/mips/include/asm/vga.h:36:15: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short volatile [usertype] @@     got restricted __le16 [usertype] @@
   arch/mips/include/asm/vga.h:36:15: sparse:     expected unsigned short volatile [usertype]
   arch/mips/include/asm/vga.h:36:15: sparse:     got restricted __le16 [usertype]
   arch/mips/include/asm/vga.h:36:15: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short volatile [usertype] @@     got restricted __le16 [usertype] @@
   arch/mips/include/asm/vga.h:36:15: sparse:     expected unsigned short volatile [usertype]
   arch/mips/include/asm/vga.h:36:15: sparse:     got restricted __le16 [usertype]
   arch/mips/include/asm/vga.h:41:16: sparse: sparse: cast to restricted __le16
   arch/mips/include/asm/vga.h:36:15: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short volatile [usertype] @@     got restricted __le16 [usertype] @@
   arch/mips/include/asm/vga.h:36:15: sparse:     expected unsigned short volatile [usertype]
   arch/mips/include/asm/vga.h:36:15: sparse:     got restricted __le16 [usertype]
>> arch/mips/include/asm/vga.h:46:21: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected unsigned short [usertype] @@     got restricted __le16 [usertype] @@
   arch/mips/include/asm/vga.h:46:21: sparse:     expected unsigned short [usertype]
   arch/mips/include/asm/vga.h:46:21: sparse:     got restricted __le16 [usertype]
>> arch/mips/include/asm/vga.h:46:21: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected unsigned short [usertype] @@     got restricted __le16 [usertype] @@
   arch/mips/include/asm/vga.h:46:21: sparse:     expected unsigned short [usertype]
   arch/mips/include/asm/vga.h:46:21: sparse:     got restricted __le16 [usertype]
>> arch/mips/include/asm/vga.h:46:21: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected unsigned short [usertype] @@     got restricted __le16 [usertype] @@
   arch/mips/include/asm/vga.h:46:21: sparse:     expected unsigned short [usertype]
   arch/mips/include/asm/vga.h:46:21: sparse:     got restricted __le16 [usertype]
>> arch/mips/include/asm/vga.h:46:21: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected unsigned short [usertype] @@     got restricted __le16 [usertype] @@
   arch/mips/include/asm/vga.h:46:21: sparse:     expected unsigned short [usertype]
   arch/mips/include/asm/vga.h:46:21: sparse:     got restricted __le16 [usertype]
>> arch/mips/include/asm/vga.h:46:21: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected unsigned short [usertype] @@     got restricted __le16 [usertype] @@
   arch/mips/include/asm/vga.h:46:21: sparse:     expected unsigned short [usertype]
   arch/mips/include/asm/vga.h:46:21: sparse:     got restricted __le16 [usertype]
>> arch/mips/include/asm/vga.h:46:21: sparse: sparse: incorrect type in argument 2 (different base types) @@     expected unsigned short [usertype] @@     got restricted __le16 [usertype] @@
   arch/mips/include/asm/vga.h:46:21: sparse:     expected unsigned short [usertype]
   arch/mips/include/asm/vga.h:46:21: sparse:     got restricted __le16 [usertype]
   arch/mips/include/asm/vga.h:36:15: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short volatile [usertype] @@     got restricted __le16 [usertype] @@
   arch/mips/include/asm/vga.h:36:15: sparse:     expected unsigned short volatile [usertype]
   arch/mips/include/asm/vga.h:36:15: sparse:     got restricted __le16 [usertype]
   arch/mips/include/asm/vga.h:41:16: sparse: sparse: cast to restricted __le16
   arch/mips/include/asm/vga.h:41:16: sparse: sparse: cast to restricted __le16
   arch/mips/include/asm/vga.h:36:15: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short volatile [usertype] @@     got restricted __le16 [usertype] @@
   arch/mips/include/asm/vga.h:36:15: sparse:     expected unsigned short volatile [usertype]
   arch/mips/include/asm/vga.h:36:15: sparse:     got restricted __le16 [usertype]
   drivers/tty/vt/vt.c: In function 'do_con_trol':
   drivers/tty/vt/vt.c:1780:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
    1780 |                 if (!is_kbd(vc, lnm))
         |                    ^
   drivers/tty/vt/vt.c:1782:9: note: here
    1782 |         case 13:
         |         ^~~~
   drivers/tty/vt/vt.c:1905:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
    1905 |                 if (vc->vc_ques)
         |                    ^
   drivers/tty/vt/vt.c:1907:9: note: here
    1907 |         case ESgetpars:
         |         ^~~~

vim +46 arch/mips/include/asm/vga.h

    43	
    44	static inline void scr_memsetw(u16 *s, u16 v, unsigned int count)
    45	{
  > 46		memset16(s, cpu_to_le16(v), count / 2);
    47	}
    48	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests


                 reply	other threads:[~2023-03-03  6:36 UTC|newest]

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

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=202303031413.o8quncp8-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mawilcox@microsoft.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox