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_PASS, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by gnuweeb.org (Postfix) with ESMTPS id 548807E328 for ; Thu, 14 Jul 2022 10:42:11 +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=a3c3/GWf; 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=1657795331; x=1689331331; h=date:from:to:cc:subject:message-id:mime-version; bh=S15uPCfKHrQBJOekEBViVVn3R90PlmMIiqZs8ojD/jY=; b=a3c3/GWf8Tu5jcW2FwykYxxpbsNgq0qFnZekAvoBVLQAXTbcKa2jKO82 OG6SkEXgfY8vW7KJGmqEai9g+TbJvgqOvAaZzpZj4vGRgM3OJ90DcZTpR LYi+x7xIk0d2x6v1QGFZOlDH3NSW5O3WWGyW6xvjMtUuc845noTAU1YEm vaehLX7JTSSkK+GSpRPGne1OOkWgGb3OdxH2t099yRPGw2CmFiOVHWUXu T1F+qMdmUoETnD715ONTbFbdSgkbGQNkL/GFaMU0vXdXPZUODGnXO/pBp B730amo64l/qTStep1oyHJEMM5bhCTQt6b1S8f3ClvWUc7gWaO+zenHdq A==; X-IronPort-AV: E=McAfee;i="6400,9594,10407"; a="265265918" X-IronPort-AV: E=Sophos;i="5.92,271,1650956400"; d="scan'208";a="265265918" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2022 03:42:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,271,1650956400"; d="scan'208";a="623367459" Received: from lkp-server01.sh.intel.com (HELO fd2c14d642b4) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 14 Jul 2022 03:42:09 -0700 Received: from kbuild by fd2c14d642b4 with local (Exim 4.95) (envelope-from ) id 1oBwIK-0000Sn-Pu; Thu, 14 Jul 2022 10:42:08 +0000 Date: Thu, 14 Jul 2022 18:41:57 +0800 From: kernel test robot To: Ammar Faizi , GNU/Weeb Mailing List Cc: kbuild-all@lists.01.org Subject: [ammarfaizi2-block:google/android/kernel/common/deprecated/android-4.4-p-release 7812/9922] fs/proc/uid.c:139:14: warning: comparison between signed and unsigned integer expressions Message-ID: <202207141835.Aa9sC9iO-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 google/android/kernel/common/deprecated/android-4.4-p-release head: c159ade87311501e4e4b40eb2f35aa5607732957 commit: 552095deb5650aa958cb29c6ae712728d38c4a5a [7812/9922] ANDROID: proc: Add /proc/uid directory config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20220714/202207141835.Aa9sC9iO-lkp@intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): # https://github.com/ammarfaizi2/linux-block/commit/552095deb5650aa958cb29c6ae712728d38c4a5a git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/deprecated/android-4.4-p-release git checkout 552095deb5650aa958cb29c6ae712728d38c4a5a # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bash fs/proc/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs] cc1: warning: arch/x86/include/generated: No such file or directory [-Wmissing-include-dirs] cc1: warning: arch/x86/include/generated/uapi: No such file or directory [-Wmissing-include-dirs] fs/proc/uid.c:90:15: warning: no previous declaration for 'proc_uid_make_inode' [-Wmissing-declarations] struct inode *proc_uid_make_inode(struct super_block *sb, kuid_t kuid) ^~~~~~~~~~~~~~~~~~~ fs/proc/uid.c: In function 'proc_uid_base_lookup': >> fs/proc/uid.c:139:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (u->len != dentry->d_name.len) ^~ fs/proc/uid.c: In function 'proc_uid_base_readdir': fs/proc/uid.c:162:35: warning: array subscript is below array bounds [-Warray-bounds] u <= uid_base_stuff + nents - 1; u++) { ~~~~~~~~~~~~~~~~~~~~~~~^~~ vim +139 fs/proc/uid.c 126 127 static struct dentry *proc_uid_base_lookup(struct inode *dir, 128 struct dentry *dentry, 129 unsigned int flags) 130 { 131 const struct uid_entry *u, *last; 132 unsigned int nents = ARRAY_SIZE(uid_base_stuff); 133 134 if (nents == 0) 135 return ERR_PTR(-ENOENT); 136 137 last = &uid_base_stuff[nents - 1]; 138 for (u = uid_base_stuff; u <= last; u++) { > 139 if (u->len != dentry->d_name.len) 140 continue; 141 if (!memcmp(dentry->d_name.name, u->name, u->len)) 142 break; 143 } 144 if (u > last) 145 return ERR_PTR(-ENOENT); 146 147 return ERR_PTR(proc_uident_instantiate(dir, dentry, NULL, u)); 148 } 149 -- 0-DAY CI Kernel Test Service https://01.org/lkp