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=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HEXHASH_WORD,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gnuweeb.org (Postfix) with ESMTPS id E2AE080866 for ; Sat, 13 Aug 2022 20:48:32 +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=bRD/WKN5; 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=1660423712; x=1691959712; h=date:from:to:cc:subject:message-id:mime-version; bh=zHhjQm8hCHiS1/nHRmXFWDeb7WC+qRzlgArhH9Tvcdg=; b=bRD/WKN5sSL+aAw2Zoo5juldpGL/X6meQsq7blMaJslkPo8SqTUaoC+i 122Ft4bzxogu9bLWxE4PbDTFt0hK4ny9aAaWgvbg4hYJzxc75rAwHZRWv 2ZsxqTHAvwRmlgrCneJwDKfCcdVlgRwnCiski1QEvTxQQusni2f9WGXx/ Cf6Ipj/DNxZvlNsBTGKsxGwsoZ6ccQM5bQHAeJBr6I/16rk3SmiU4XRpN zhv8JiHFuhNQlQxG44t+F7oQKRRIYmZbUooJjoMrXEZGwdSX1T605fyWP ImBoJ912Cwh7KitqLufViLpgyWyF0ETc6W+3HqX0vf7M90CZyAh4IIJda w==; X-IronPort-AV: E=McAfee;i="6400,9594,10437"; a="317753959" X-IronPort-AV: E=Sophos;i="5.93,236,1654585200"; d="scan'208";a="317753959" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Aug 2022 13:48:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,236,1654585200"; d="scan'208";a="582451111" Received: from lkp-server02.sh.intel.com (HELO 8745164cafc7) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 13 Aug 2022 13:48:30 -0700 Received: from kbuild by 8745164cafc7 with local (Exim 4.96) (envelope-from ) id 1oMy3Z-00025U-2C; Sat, 13 Aug 2022 20:48:29 +0000 Date: Sun, 14 Aug 2022 04:47:32 +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/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 Message-ID: <202208140439.pzxz3yGV-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/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/202208140439.pzxz3yGV-lkp@intel.com/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 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 :::::: CC: Alessio Balsini -- 0-DAY CI Kernel Test Service https://01.org/lkp