From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gnuweeb.org (Postfix) with ESMTPS id DA305830BF for ; Tue, 14 Feb 2023 13:30:14 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=HCjtmXh3; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676381414; x=1707917414; h=date:from:to:cc:subject:message-id:mime-version; bh=KiY8ACAIUMz6YB9Pycr31MXRldnNgckI7Vc05G9agmM=; b=HCjtmXh3+PDQ+Xyny3yxAdGoAZfw/LZ2fegHB9LR85aTU1WdfkvqBdWM 16IB2aC3ghvmncuuiszG+E+pfY1dyhnBOqjqY0hxj/m+mOG8n5ANVkINj XjYtIqeGbAuXEotov8PmYU4fQDwNlB/k6eZ1btMuH+/UewEuIncEoNtS/ TzGOZmaZeLB90ml0zXLmtF7TAsDKiAb6Yt27z3APioA4GZWPcBsnfO513 47NWKAFvej0kX3KGs6F2vKBeSGNQzNFix9NRYgUykvA5FXW3Xq0e6ogu1 4LfNcibPgC7a31a/86Ufc8k00BeQVi4kJvsRd4XZWTalEaJsvEhQoGxtG A==; X-IronPort-AV: E=McAfee;i="6500,9779,10620"; a="333294320" X-IronPort-AV: E=Sophos;i="5.97,296,1669104000"; d="scan'208";a="333294320" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2023 05:30:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10620"; a="757995661" X-IronPort-AV: E=Sophos;i="5.97,296,1669104000"; d="scan'208";a="757995661" Received: from lkp-server01.sh.intel.com (HELO 4455601a8d94) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 14 Feb 2023 05:30:11 -0800 Received: from kbuild by 4455601a8d94 with local (Exim 4.96) (envelope-from ) id 1pRvNq-0008Xd-2M; Tue, 14 Feb 2023 13:30:10 +0000 Date: Tue, 14 Feb 2023 21:29:20 +0800 From: kernel test robot To: David Howells Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Ammar Faizi , GNU/Weeb Mailing List Subject: [ammarfaizi2-block:dhowells/linux-fs/iov-extract-3 17/17] mm/shmem.c:2731:9: warning: comparison of distinct pointer types ('typeof (size) *' (aka 'unsigned int *') and 'typeof (((1UL) << (12)) - offset) *' (aka 'unsigned long *')) Message-ID: <202302142135.btT3KXbD-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: tree: https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/iov-extract-3 head: 17cd42e56c9be2df7fc5ec06c2315cab669a43b0 commit: 17cd42e56c9be2df7fc5ec06c2315cab669a43b0 [17/17] shmem, overlayfs, coda, tty, proc, kernfs, random: Fix splice-read config: riscv-randconfig-r042-20230214 (https://download.01.org/0day-ci/archive/20230214/202302142135.btT3KXbD-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project db89896bbbd2251fff457699635acbbedeead27f) 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 riscv cross compiling tool for clang build # apt-get install binutils-riscv-linux-gnu # https://github.com/ammarfaizi2/linux-block/commit/17cd42e56c9be2df7fc5ec06c2315cab669a43b0 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/iov-extract-3 git checkout 17cd42e56c9be2df7fc5ec06c2315cab669a43b0 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202302142135.btT3KXbD-lkp@intel.com/ All warnings (new ones prefixed by >>): >> mm/shmem.c:2731:9: warning: comparison of distinct pointer types ('typeof (size) *' (aka 'unsigned int *') and 'typeof (((1UL) << (12)) - offset) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] size = min(size, PAGE_SIZE - offset); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:67:19: note: expanded from macro 'min' #define min(x, y) __careful_cmp(x, y, <) ^~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ 1 warning generated. vim +2731 mm/shmem.c 2725 2726 static size_t splice_zeropage_into_pipe(struct pipe_inode_info *pipe, 2727 loff_t fpos, size_t size) 2728 { 2729 size_t offset = fpos & ~PAGE_MASK; 2730 > 2731 size = min(size, PAGE_SIZE - offset); 2732 2733 if (!pipe_full(pipe->head, pipe->tail, pipe->max_usage)) { 2734 struct pipe_buffer *buf = pipe_head_buf(pipe); 2735 2736 *buf = (struct pipe_buffer) { 2737 .ops = &zero_pipe_buf_ops, 2738 .page = ZERO_PAGE(0), 2739 .offset = offset, 2740 .len = size, 2741 }; 2742 get_page(buf->page); 2743 pipe->head++; 2744 } 2745 2746 return size; 2747 } 2748 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests