From: kernel test robot <lkp@intel.com>
To: Al Viro <viro@zeniv.linux.org.uk>
Cc: oe-kbuild-all@lists.linux.dev, linux-fsdevel@vger.kernel.org
Subject: [viro-vfs:work.alpha 5/8] arch/alpha/kernel/io.c:655:1: error: redefinition of 'scr_memcpyw'
Date: Sun, 28 Jan 2024 06:59:08 +0800 [thread overview]
Message-ID: <202401280650.Us2Lrkgl-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.alpha
head: 267674e3b4fd1ff6cedf9b22cd304daa75297966
commit: 1fb71c4d2bcacd6510fbe411016475ccc15b1a03 [5/8] alpha: missing includes
config: alpha-allnoconfig (https://download.01.org/0day-ci/archive/20240128/202401280650.Us2Lrkgl-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240128/202401280650.Us2Lrkgl-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401280650.Us2Lrkgl-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/alpha/kernel/io.c:655:1: error: redefinition of 'scr_memcpyw'
655 | scr_memcpyw(u16 *d, const u16 *s, unsigned int count)
| ^~~~~~~~~~~
In file included from arch/alpha/kernel/io.c:10:
include/linux/vt_buffer.h:42:20: note: previous definition of 'scr_memcpyw' with type 'void(u16 *, const u16 *, unsigned int)' {aka 'void(short unsigned int *, const short unsigned int *, unsigned int)'}
42 | static inline void scr_memcpyw(u16 *d, const u16 *s, unsigned int count)
| ^~~~~~~~~~~
vim +/scr_memcpyw +655 arch/alpha/kernel/io.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 650
^1da177e4c3f41 Linus Torvalds 2005-04-16 651 /* A version of memcpy used by the vga console routines to move data around
^1da177e4c3f41 Linus Torvalds 2005-04-16 652 arbitrarily between screen and main memory. */
^1da177e4c3f41 Linus Torvalds 2005-04-16 653
^1da177e4c3f41 Linus Torvalds 2005-04-16 654 void
^1da177e4c3f41 Linus Torvalds 2005-04-16 @655 scr_memcpyw(u16 *d, const u16 *s, unsigned int count)
^1da177e4c3f41 Linus Torvalds 2005-04-16 656 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 657 const u16 __iomem *ios = (const u16 __iomem *) s;
^1da177e4c3f41 Linus Torvalds 2005-04-16 658 u16 __iomem *iod = (u16 __iomem *) d;
^1da177e4c3f41 Linus Torvalds 2005-04-16 659 int s_isio = __is_ioaddr(s);
^1da177e4c3f41 Linus Torvalds 2005-04-16 660 int d_isio = __is_ioaddr(d);
^1da177e4c3f41 Linus Torvalds 2005-04-16 661
^1da177e4c3f41 Linus Torvalds 2005-04-16 662 if (s_isio) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 663 if (d_isio) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 664 /* FIXME: Should handle unaligned ops and
^1da177e4c3f41 Linus Torvalds 2005-04-16 665 operation widening. */
^1da177e4c3f41 Linus Torvalds 2005-04-16 666
^1da177e4c3f41 Linus Torvalds 2005-04-16 667 count /= 2;
^1da177e4c3f41 Linus Torvalds 2005-04-16 668 while (count--) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 669 u16 tmp = __raw_readw(ios++);
^1da177e4c3f41 Linus Torvalds 2005-04-16 670 __raw_writew(tmp, iod++);
^1da177e4c3f41 Linus Torvalds 2005-04-16 671 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 672 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 673 else
^1da177e4c3f41 Linus Torvalds 2005-04-16 674 memcpy_fromio(d, ios, count);
^1da177e4c3f41 Linus Torvalds 2005-04-16 675 } else {
^1da177e4c3f41 Linus Torvalds 2005-04-16 676 if (d_isio)
^1da177e4c3f41 Linus Torvalds 2005-04-16 677 memcpy_toio(iod, s, count);
^1da177e4c3f41 Linus Torvalds 2005-04-16 678 else
^1da177e4c3f41 Linus Torvalds 2005-04-16 679 memcpy(d, s, count);
^1da177e4c3f41 Linus Torvalds 2005-04-16 680 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 681 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 682
:::::: The code at line 655 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2024-01-27 23:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-27 22:59 kernel test robot [this message]
2024-01-28 21:15 ` [viro-vfs:work.alpha 5/8] arch/alpha/kernel/io.c:655:1: error: redefinition of 'scr_memcpyw' Al Viro
2024-01-28 21:55 ` Linus Torvalds
2024-01-28 22:09 ` Al Viro
2024-01-28 22:39 ` Linus Torvalds
2024-01-29 2:13 ` Al Viro
2024-01-29 5:03 ` Al Viro
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=202401280650.Us2Lrkgl-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=viro@zeniv.linux.org.uk \
/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.