* [vfs:untested.iov_iter-2 2/30] lib/iov_iter.c:925:5: warning: comparison of distinct pointer types ('typeof (bytes) (aka 'unsigned int and 'typeof (((1UL) << 14) - offset) (aka 'unsigned long
@ 2021-05-03 18:31 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-03 18:31 UTC (permalink / raw)
To: Al Viro; +Cc: kbuild-all, clang-built-linux, linux-fsdevel
[-- Attachment #1: Type: text/plain, Size: 3954 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git untested.iov_iter-2
head: 5fe048dcff7837bcf95ef3c4f73fb230153a388b
commit: d2e019de6652bdd76006fab8b125f543c431e724 [2/30] teach copy_page_to_iter() to handle compound pages
config: mips-randconfig-r006-20210503 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8f5a2a5836cc8e4c1def2bdeb022e7b496623439)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git/commit/?id=d2e019de6652bdd76006fab8b125f543c431e724
git remote add vfs https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git
git fetch --no-tags vfs untested.iov_iter-2
git checkout d2e019de6652bdd76006fab8b125f543c431e724
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> lib/iov_iter.c:925:5: warning: comparison of distinct pointer types ('typeof (bytes) (aka 'unsigned int and 'typeof (((1UL) << 14) - offset) (aka 'unsigned long
min(bytes, PAGE_SIZE - offset), i);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:51:19: note: expanded from macro 'min'
#define min(x, y) __careful_cmp(x, y, <)
^~~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:42:24: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), ^~~~~~~~~~~~~~~~
include/linux/minmax.h:32:4: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^~~~~~~~~~~~~~~~~
include/linux/minmax.h:18:28: note: expanded from macro '__typecheck'
== (typeof(y)
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
fatal error: error in backend: Nested variants found in inline asm string: ' .set push
.set mips64r2
.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/atomic.h", .line = 153, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
1: ll $0, $1 # atomic_add
addu $0, $2
sc $0, $1
beqz $0, 1b
.set pop
'
clang-13: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 13.0.0 (git://gitmirror/llvm_project 8f5a2a5836cc8e4c1def2bdeb022e7b496623439)
Target: mipsel-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/cross/clang-8f5a2a5836/bin
clang-13: note: diagnostic msg:
Makefile arch block certs crypto drivers fs include init ipc kernel lib mm scripts security sound source usr virt
vim +925 lib/iov_iter.c
914
915 size_t copy_page_to_iter(struct page *page, size_t offset, size_t bytes,
916 struct iov_iter *i)
917 {
918 size_t res = 0;
919 if (unlikely(!page_copy_sane(page, offset, bytes)))
920 return 0;
921 page += offset / PAGE_SIZE; // first subpage
922 offset %= PAGE_SIZE;
923 while (1) {
924 size_t n = __copy_page_to_iter(page, offset,
> 925 min(bytes, PAGE_SIZE - offset), i);
926 res += n;
927 bytes -= n;
928 if (!bytes || !n)
929 break;
930 offset += n;
931 if (offset == PAGE_SIZE) {
932 page++;
933 offset = 0;
934 }
935 }
936 return res;
937 }
938 EXPORT_SYMBOL(copy_page_to_iter);
939
---
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: 20437 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-03 18:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-03 18:31 [vfs:untested.iov_iter-2 2/30] lib/iov_iter.c:925:5: warning: comparison of distinct pointer types ('typeof (bytes) (aka 'unsigned int and 'typeof (((1UL) << 14) - offset) (aka 'unsigned long kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).