public inbox for [email protected]
 help / color / mirror / Atom feed
* [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
@ 2022-07-14 10:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-14 10:41 UTC (permalink / raw)
  To: Ammar Faizi, GNU/Weeb Mailing List; +Cc: kbuild-all

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/[email protected]/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 <[email protected]>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-14 10:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-14 10:41 [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 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