GNU/Weeb Mailing List <[email protected]>
 help / color / mirror / Atom feed
* [ammarfaizi2-block:google/android/kernel/common/android13-5.10 7542/9999] fs/fuse/dir.c:392:18: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1
@ 2022-08-13 20:47 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-08-13 20:47 UTC (permalink / raw)
  To: Ammar Faizi, GNU/Weeb Mailing List; +Cc: kbuild-all

tree:   https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android13-5.10
head:   aadf7ad9db2f7d93ecfb34d0e4f328519460c94e
commit: 88b7179fcdb59ade839972bb6042e2b986e7cd57 [7542/9999] ANDROID: fuse: Move functions in preparation for fuse-bpf
config: arm-s3c2410_defconfig (https://download.01.org/0day-ci/archive/20220814/[email protected]/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 3329cec2f79185bafd678f310fafadba2a8c76d2)
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 arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://github.com/ammarfaizi2/linux-block/commit/88b7179fcdb59ade839972bb6042e2b986e7cd57
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android13-5.10
        git checkout 88b7179fcdb59ade839972bb6042e2b986e7cd57
        # 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=arm SHELL=/bin/bash fs/fuse/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>

All warnings (new ones prefixed by >>):

>> fs/fuse/dev.c:1708:17: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           args->in_pages = true;
                          ^ ~~~~
   1 warning generated.
--
>> fs/fuse/dir.c:392:18: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           args.out_argvar = 1;
                           ^ ~
   fs/fuse/dir.c:1352:20: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           ap.args.out_pages = true;
                             ^ ~~~~
   fs/fuse/dir.c:1353:21: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           ap.args.out_argvar = true;
                              ^ ~~~~
   fs/fuse/dir.c:1354:23: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           ap.args.page_zeroing = true;
                                ^ ~~~~
   4 warnings generated.
--
>> fs/fuse/file.c:293:17: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           ra->args.force = true;
                          ^ ~~~~
   fs/fuse/file.c:294:19: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           ra->args.nocreds = true;
                            ^ ~~~~
   fs/fuse/file.c:501:13: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           args.force = true;
                      ^ ~~~~
   fs/fuse/file.c:604:19: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           args->out_argvar = true;
                            ^ ~~~~
   fs/fuse/file.c:827:27: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
                   .ap.args.page_zeroing = true,
                                           ^~~~
   fs/fuse/file.c:828:24: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
                   .ap.args.out_pages = true,
                                        ^~~~
   fs/fuse/file.c:931:21: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           ap->args.out_pages = true;
                              ^ ~~~~
   fs/fuse/file.c:932:24: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           ap->args.page_zeroing = true;
                                 ^ ~~~~
   fs/fuse/file.c:933:24: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           ap->args.page_replace = true;
                                 ^ ~~~~
   fs/fuse/file.c:1151:20: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           ap->args.in_pages = true;
                             ^ ~~~~
   fs/fuse/file.c:1424:21: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
                   ap->args.in_pages = true;
                                     ^ ~~~~
   fs/fuse/file.c:1426:22: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
                   ap->args.out_pages = true;
                                      ^ ~~~~
   fs/fuse/file.c:1673:14: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           args->force = true;
                       ^ ~~~~
   fs/fuse/file.c:1674:16: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           args->nocreds = true;
                         ^ ~~~~
   fs/fuse/file.c:1917:20: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           ap->args.in_pages = true;
                             ^ ~~~~
   fs/fuse/file.c:2168:21: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
                   ap->args.in_pages = true;
                                     ^ ~~~~
   fs/fuse/file.c:2900:20: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
                   ap.args.in_pages = true;
                                    ^ ~~~~
   fs/fuse/file.c:2915:20: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           ap.args.out_pages = true;
                             ^ ~~~~
   fs/fuse/file.c:2916:21: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           ap.args.out_argvar = true;
                              ^ ~~~~
   19 warnings generated.
--
>> fs/fuse/inode.c:467:14: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
                   args.force = true;
                              ^ ~~~~
   fs/fuse/inode.c:468:16: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
                   args.nocreds = true;
                                ^ ~~~~
   fs/fuse/inode.c:1147:22: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           ia->args.out_argvar = true;
                               ^ ~~~~
   fs/fuse/inode.c:1150:17: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           ia->args.force = true;
                          ^ ~~~~
   fs/fuse/inode.c:1151:19: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           ia->args.nocreds = true;
                            ^ ~~~~
   5 warnings generated.
--
>> fs/fuse/xattr.c:73:19: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
                   args.out_argvar = true;
                                   ^ ~~~~
   fs/fuse/xattr.c:135:19: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
                   args.out_argvar = true;
                                   ^ ~~~~
   2 warnings generated.
--
>> fs/fuse/readdir.c:269:13: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           args.force = true;
                      ^ ~~~~
   fs/fuse/readdir.c:270:15: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           args.noreply = true;
                        ^ ~~~~
   fs/fuse/readdir.c:338:21: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Wbitfield-constant-conversion]
           ap->args.out_pages = true;
                              ^ ~~~~
   3 warnings generated.


vim +/int +392 fs/fuse/dir.c

bf109c64040f5b Max Reitz        2020-04-21  364  
aca265111afaf8 Daniel Rosenberg 2016-04-22  365  /*
aca265111afaf8 Daniel Rosenberg 2016-04-22  366   * Get the canonical path. Since we must translate to a path, this must be done
aca265111afaf8 Daniel Rosenberg 2016-04-22  367   * in the context of the userspace daemon, however, the userspace daemon cannot
aca265111afaf8 Daniel Rosenberg 2016-04-22  368   * look up paths on its own. Instead, we handle the lookup as a special case
aca265111afaf8 Daniel Rosenberg 2016-04-22  369   * inside of the write request.
aca265111afaf8 Daniel Rosenberg 2016-04-22  370   */
aca265111afaf8 Daniel Rosenberg 2016-04-22  371  static void fuse_dentry_canonical_path(const struct path *path,
aca265111afaf8 Daniel Rosenberg 2016-04-22  372  				       struct path *canonical_path)
aca265111afaf8 Daniel Rosenberg 2016-04-22  373  {
aca265111afaf8 Daniel Rosenberg 2016-04-22  374  	struct inode *inode = d_inode(path->dentry);
aca265111afaf8 Daniel Rosenberg 2016-04-22  375  	//struct fuse_conn *fc = get_fuse_conn(inode);
aca265111afaf8 Daniel Rosenberg 2016-04-22  376  	struct fuse_mount *fm = get_fuse_mount_super(path->mnt->mnt_sb);
aca265111afaf8 Daniel Rosenberg 2016-04-22  377  	FUSE_ARGS(args);
aca265111afaf8 Daniel Rosenberg 2016-04-22  378  	char *path_name;
aca265111afaf8 Daniel Rosenberg 2016-04-22  379  	int err;
aca265111afaf8 Daniel Rosenberg 2016-04-22  380  
dea48f8c40900e Biao Li          2021-08-04  381  	path_name = (char *)get_zeroed_page(GFP_KERNEL);
aca265111afaf8 Daniel Rosenberg 2016-04-22  382  	if (!path_name)
aca265111afaf8 Daniel Rosenberg 2016-04-22  383  		goto default_path;
aca265111afaf8 Daniel Rosenberg 2016-04-22  384  
aca265111afaf8 Daniel Rosenberg 2016-04-22  385  	args.opcode = FUSE_CANONICAL_PATH;
aca265111afaf8 Daniel Rosenberg 2016-04-22  386  	args.nodeid = get_node_id(inode);
aca265111afaf8 Daniel Rosenberg 2016-04-22  387  	args.in_numargs = 0;
aca265111afaf8 Daniel Rosenberg 2016-04-22  388  	args.out_numargs = 1;
aca265111afaf8 Daniel Rosenberg 2016-04-22  389  	args.out_args[0].size = PATH_MAX;
aca265111afaf8 Daniel Rosenberg 2016-04-22  390  	args.out_args[0].value = path_name;
aca265111afaf8 Daniel Rosenberg 2016-04-22  391  	args.canonical_path = canonical_path;
aca265111afaf8 Daniel Rosenberg 2016-04-22 @392  	args.out_argvar = 1;
aca265111afaf8 Daniel Rosenberg 2016-04-22  393  
aca265111afaf8 Daniel Rosenberg 2016-04-22  394  	err = fuse_simple_request(fm, &args);
aca265111afaf8 Daniel Rosenberg 2016-04-22  395  	free_page((unsigned long)path_name);
aca265111afaf8 Daniel Rosenberg 2016-04-22  396  	if (err > 0)
aca265111afaf8 Daniel Rosenberg 2016-04-22  397  		return;
aca265111afaf8 Daniel Rosenberg 2016-04-22  398  default_path:
aca265111afaf8 Daniel Rosenberg 2016-04-22  399  	canonical_path->dentry = path->dentry;
aca265111afaf8 Daniel Rosenberg 2016-04-22  400  	canonical_path->mnt = path->mnt;
aca265111afaf8 Daniel Rosenberg 2016-04-22  401  	path_get(canonical_path);
aca265111afaf8 Daniel Rosenberg 2016-04-22  402  }
aca265111afaf8 Daniel Rosenberg 2016-04-22  403  

:::::: The code at line 392 was first introduced by commit
:::::: aca265111afaf8a664d0c53f086258613a5d3808 ANDROID: fuse: Add support for d_canonical_path

:::::: TO: Daniel Rosenberg <[email protected]>
:::::: CC: Alessio Balsini <[email protected]>

-- 
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-08-13 20:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-13 20:47 [ammarfaizi2-block:google/android/kernel/common/android13-5.10 7542/9999] fs/fuse/dir.c:392:18: warning: implicit truncation from 'int' to bit-field changes value from 1 to -1 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