From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9FECAC433EF for ; Tue, 1 Feb 2022 13:57:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238961AbiBAN5r (ORCPT ); Tue, 1 Feb 2022 08:57:47 -0500 Received: from mga01.intel.com ([192.55.52.88]:14055 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236698AbiBAN5r (ORCPT ); Tue, 1 Feb 2022 08:57:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643723867; x=1675259867; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=n8dNU9QfT47Coo1TOptcAxGo85aNJPIU7JDjqYAHwn0=; b=PViXA0NsbAS0VmYWUaMQcIsIGULkbYv9QC6eyz3WTmh9A8YV3T1NdMAm YjihuC+FF+3GXu9rqjpYvDjQJbxAky1Qs3Lkbez9xcrw65UNpYLVLSXLo 9J9N0NKUwqFoEG5kUdn6ekG02OeJNLA5k0tS7p4shnsQKUFIXBfD3ChkM U71r4mF+xjjtD5kTYclex3pl/RWhjBAV5bhGyEbgvceIyZhaPGgaH2wbS gYVEL87kaMjWWp9T23yp+yNVUjaAfUCulVhnKBHSBnpHeDzUxAht4yw8J 8cFNqDfHsAgN5AJTnj07c9IdFryiQV/hFKjvLhrbKIeRvEv57794jT4o+ w==; X-IronPort-AV: E=McAfee;i="6200,9189,10244"; a="272170833" X-IronPort-AV: E=Sophos;i="5.88,334,1635231600"; d="scan'208";a="272170833" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2022 05:57:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,334,1635231600"; d="scan'208";a="523056602" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 01 Feb 2022 05:57:44 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nEtfE-000TLE-3X; Tue, 01 Feb 2022 13:57:44 +0000 Date: Tue, 1 Feb 2022 21:56:53 +0800 From: kernel test robot To: Sidong Yang , linux-btrfs@vger.kernel.org, quwenruo.btrfs@gmx.com Cc: kbuild-all@lists.01.org, Sidong Yang Subject: Re: [PATCH] btrfs: qgroup: replace modifing qgroup_flags to bitops Message-ID: <202202012137.VlmV1OLt-lkp@intel.com> References: <20220201125331.260482-1-realwakka@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220201125331.260482-1-realwakka@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Hi Sidong, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on v5.17-rc2] [cannot apply to kdave/for-next next-20220131] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Sidong-Yang/btrfs-qgroup-replace-modifing-qgroup_flags-to-bitops/20220201-205452 base: 26291c54e111ff6ba87a164d85d4a4e134b7315c config: nds32-allyesconfig (https://download.01.org/0day-ci/archive/20220201/202202012137.VlmV1OLt-lkp@intel.com/config) compiler: nds32le-linux-gcc (GCC) 11.2.0 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 # https://github.com/0day-ci/linux/commit/ba6f4f3d431a14034f4e4da2b8f342fe17ec78bf git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Sidong-Yang/btrfs-qgroup-replace-modifing-qgroup_flags-to-bitops/20220201-205452 git checkout ba6f4f3d431a14034f4e4da2b8f342fe17ec78bf # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nds32 SHELL=/bin/bash fs/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): from ./arch/nds32/include/generated/asm/div64.h:1, from include/linux/math.h:5, from include/linux/math64.h:6, from include/linux/time64.h:5, from include/linux/restart_block.h:10, from include/linux/thread_info.h:14, from include/asm-generic/preempt.h:5, from ./arch/nds32/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from include/linux/rcupdate.h:27, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from fs/btrfs/qgroup.c:6: include/asm-generic/bitops/instrumented-atomic.h:26:61: note: expected 'volatile long unsigned int *' but argument is of type 'u64 *' {aka 'long long unsigned int *'} 26 | static inline void set_bit(long nr, volatile unsigned long *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ fs/btrfs/qgroup.c:3318:60: error: passing argument 2 of 'clear_bit' from incompatible pointer type [-Werror=incompatible-pointer-types] 3318 | clear_bit(BTRFS_QGROUP_STATUS_FLAG_RESCAN, &fs_info->qgroup_flags); | ^~~~~~~~~~~~~~~~~~~~~~ | | | u64 * {aka long long unsigned int *} In file included from include/asm-generic/bitops/atomic.h:74, from include/asm-generic/bitops.h:33, from ./arch/nds32/include/generated/asm/bitops.h:1, from include/linux/bitops.h:33, from include/linux/log2.h:12, from include/asm-generic/div64.h:55, from ./arch/nds32/include/generated/asm/div64.h:1, from include/linux/math.h:5, from include/linux/math64.h:6, from include/linux/time64.h:5, from include/linux/restart_block.h:10, from include/linux/thread_info.h:14, from include/asm-generic/preempt.h:5, from ./arch/nds32/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from include/linux/rcupdate.h:27, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from fs/btrfs/qgroup.c:6: include/asm-generic/bitops/instrumented-atomic.h:39:63: note: expected 'volatile long unsigned int *' but argument is of type 'u64 *' {aka 'long long unsigned int *'} 39 | static inline void clear_bit(long nr, volatile unsigned long *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ fs/btrfs/qgroup.c: In function 'qgroup_rescan_init': fs/btrfs/qgroup.c:3358:64: error: passing argument 2 of 'arch_test_bit' from incompatible pointer type [-Werror=incompatible-pointer-types] 3358 | if (!test_bit(BTRFS_QGROUP_STATUS_FLAG_RESCAN, &fs_info->qgroup_flags)) { | ^~~~~~~~~~~~~~~~~~~~~~ | | | u64 * {aka long long unsigned int *} In file included from include/asm-generic/bitops.h:34, from ./arch/nds32/include/generated/asm/bitops.h:1, from include/linux/bitops.h:33, from include/linux/log2.h:12, from include/asm-generic/div64.h:55, from ./arch/nds32/include/generated/asm/div64.h:1, from include/linux/math.h:5, from include/linux/math64.h:6, from include/linux/time64.h:5, from include/linux/restart_block.h:10, from include/linux/thread_info.h:14, from include/asm-generic/preempt.h:5, from ./arch/nds32/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from include/linux/rcupdate.h:27, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from fs/btrfs/qgroup.c:6: include/asm-generic/bitops/non-atomic.h:116:62: note: expected 'const volatile long unsigned int *' but argument is of type 'u64 *' {aka 'long long unsigned int *'} 116 | arch_test_bit(unsigned int nr, const volatile unsigned long *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ fs/btrfs/qgroup.c:3362:67: error: passing argument 2 of 'arch_test_bit' from incompatible pointer type [-Werror=incompatible-pointer-types] 3362 | } else if (!test_bit(BTRFS_QGROUP_STATUS_FLAG_ON, &fs_info->qgroup_flags)) { | ^~~~~~~~~~~~~~~~~~~~~~ | | | u64 * {aka long long unsigned int *} In file included from include/asm-generic/bitops.h:34, from ./arch/nds32/include/generated/asm/bitops.h:1, from include/linux/bitops.h:33, from include/linux/log2.h:12, from include/asm-generic/div64.h:55, from ./arch/nds32/include/generated/asm/div64.h:1, from include/linux/math.h:5, from include/linux/math64.h:6, from include/linux/time64.h:5, from include/linux/restart_block.h:10, from include/linux/thread_info.h:14, from include/asm-generic/preempt.h:5, from ./arch/nds32/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from include/linux/rcupdate.h:27, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from fs/btrfs/qgroup.c:6: include/asm-generic/bitops/non-atomic.h:116:62: note: expected 'const volatile long unsigned int *' but argument is of type 'u64 *' {aka 'long long unsigned int *'} 116 | arch_test_bit(unsigned int nr, const volatile unsigned long *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ >> fs/btrfs/qgroup.c:3375:70: warning: passing argument 2 of 'arch_test_bit' makes pointer from integer without a cast [-Wint-conversion] 3375 | if (test_bit(BTRFS_QGROUP_STATUS_FLAG_RESCAN, fs_info->qgroup_flags)) { | ~~~~~~~^~~~~~~~~~~~~~ | | | u64 {aka long long unsigned int} In file included from include/asm-generic/bitops.h:34, from ./arch/nds32/include/generated/asm/bitops.h:1, from include/linux/bitops.h:33, from include/linux/log2.h:12, from include/asm-generic/div64.h:55, from ./arch/nds32/include/generated/asm/div64.h:1, from include/linux/math.h:5, from include/linux/math64.h:6, from include/linux/time64.h:5, from include/linux/restart_block.h:10, from include/linux/thread_info.h:14, from include/asm-generic/preempt.h:5, from ./arch/nds32/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from include/linux/rcupdate.h:27, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from fs/btrfs/qgroup.c:6: include/asm-generic/bitops/non-atomic.h:116:62: note: expected 'const volatile long unsigned int *' but argument is of type 'u64' {aka 'long long unsigned int'} 116 | arch_test_bit(unsigned int nr, const volatile unsigned long *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ fs/btrfs/qgroup.c:3379:67: error: passing argument 2 of 'arch_test_bit' from incompatible pointer type [-Werror=incompatible-pointer-types] 3379 | } else if (!test_bit(BTRFS_QGROUP_STATUS_FLAG_ON, &fs_info->qgroup_flags)) { | ^~~~~~~~~~~~~~~~~~~~~~ | | | u64 * {aka long long unsigned int *} In file included from include/asm-generic/bitops.h:34, from ./arch/nds32/include/generated/asm/bitops.h:1, from include/linux/bitops.h:33, from include/linux/log2.h:12, from include/asm-generic/div64.h:55, from ./arch/nds32/include/generated/asm/div64.h:1, from include/linux/math.h:5, from include/linux/math64.h:6, from include/linux/time64.h:5, from include/linux/restart_block.h:10, from include/linux/thread_info.h:14, from include/asm-generic/preempt.h:5, from ./arch/nds32/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from include/linux/rcupdate.h:27, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from fs/btrfs/qgroup.c:6: include/asm-generic/bitops/non-atomic.h:116:62: note: expected 'const volatile long unsigned int *' but argument is of type 'u64 *' {aka 'long long unsigned int *'} 116 | arch_test_bit(unsigned int nr, const volatile unsigned long *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ fs/btrfs/qgroup.c:3389:58: error: passing argument 2 of 'set_bit' from incompatible pointer type [-Werror=incompatible-pointer-types] 3389 | set_bit(BTRFS_QGROUP_STATUS_FLAG_RESCAN, &fs_info->qgroup_flags); | ^~~~~~~~~~~~~~~~~~~~~~ | | | u64 * {aka long long unsigned int *} In file included from include/asm-generic/bitops/atomic.h:74, from include/asm-generic/bitops.h:33, from ./arch/nds32/include/generated/asm/bitops.h:1, from include/linux/bitops.h:33, from include/linux/log2.h:12, from include/asm-generic/div64.h:55, from ./arch/nds32/include/generated/asm/div64.h:1, from include/linux/math.h:5, from include/linux/math64.h:6, from include/linux/time64.h:5, from include/linux/restart_block.h:10, from include/linux/thread_info.h:14, from include/asm-generic/preempt.h:5, from ./arch/nds32/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from include/linux/rcupdate.h:27, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from fs/btrfs/qgroup.c:6: include/asm-generic/bitops/instrumented-atomic.h:26:61: note: expected 'volatile long unsigned int *' but argument is of type 'u64 *' {aka 'long long unsigned int *'} 26 | static inline void set_bit(long nr, volatile unsigned long *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ fs/btrfs/qgroup.c: In function 'btrfs_qgroup_rescan': fs/btrfs/qgroup.c:3445:60: error: passing argument 2 of 'clear_bit' from incompatible pointer type [-Werror=incompatible-pointer-types] 3445 | clear_bit(BTRFS_QGROUP_STATUS_FLAG_RESCAN, &fs_info->qgroup_flags); | ^~~~~~~~~~~~~~~~~~~~~~ | | | u64 * {aka long long unsigned int *} In file included from include/asm-generic/bitops/atomic.h:74, from include/asm-generic/bitops.h:33, from ./arch/nds32/include/generated/asm/bitops.h:1, from include/linux/bitops.h:33, from include/linux/log2.h:12, from include/asm-generic/div64.h:55, from ./arch/nds32/include/generated/asm/div64.h:1, from include/linux/math.h:5, from include/linux/math64.h:6, from include/linux/time64.h:5, from include/linux/restart_block.h:10, from include/linux/thread_info.h:14, from include/asm-generic/preempt.h:5, vim +/arch_test_bit +3375 fs/btrfs/qgroup.c 3345 3346 /* 3347 * Checks that (a) no rescan is running and (b) quota is enabled. Allocates all 3348 * memory required for the rescan context. 3349 */ 3350 static int 3351 qgroup_rescan_init(struct btrfs_fs_info *fs_info, u64 progress_objectid, 3352 int init_flags) 3353 { 3354 int ret = 0; 3355 3356 if (!init_flags) { 3357 /* we're resuming qgroup rescan at mount time */ 3358 if (!test_bit(BTRFS_QGROUP_STATUS_FLAG_RESCAN, &fs_info->qgroup_flags)) { 3359 btrfs_warn(fs_info, 3360 "qgroup rescan init failed, qgroup rescan is not queued"); 3361 ret = -EINVAL; 3362 } else if (!test_bit(BTRFS_QGROUP_STATUS_FLAG_ON, &fs_info->qgroup_flags)) { 3363 btrfs_warn(fs_info, 3364 "qgroup rescan init failed, qgroup is not enabled"); 3365 ret = -EINVAL; 3366 } 3367 3368 if (ret) 3369 return ret; 3370 } 3371 3372 mutex_lock(&fs_info->qgroup_rescan_lock); 3373 3374 if (init_flags) { > 3375 if (test_bit(BTRFS_QGROUP_STATUS_FLAG_RESCAN, fs_info->qgroup_flags)) { 3376 btrfs_warn(fs_info, 3377 "qgroup rescan is already in progress"); 3378 ret = -EINPROGRESS; 3379 } else if (!test_bit(BTRFS_QGROUP_STATUS_FLAG_ON, &fs_info->qgroup_flags)) { 3380 btrfs_warn(fs_info, 3381 "qgroup rescan init failed, qgroup is not enabled"); 3382 ret = -EINVAL; 3383 } 3384 3385 if (ret) { 3386 mutex_unlock(&fs_info->qgroup_rescan_lock); 3387 return ret; 3388 } 3389 set_bit(BTRFS_QGROUP_STATUS_FLAG_RESCAN, &fs_info->qgroup_flags); 3390 } 3391 3392 memset(&fs_info->qgroup_rescan_progress, 0, 3393 sizeof(fs_info->qgroup_rescan_progress)); 3394 fs_info->qgroup_rescan_progress.objectid = progress_objectid; 3395 init_completion(&fs_info->qgroup_rescan_completion); 3396 mutex_unlock(&fs_info->qgroup_rescan_lock); 3397 3398 btrfs_init_work(&fs_info->qgroup_rescan_work, 3399 btrfs_qgroup_rescan_worker, NULL, NULL); 3400 return 0; 3401 } 3402 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4572939768032125191==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH] btrfs: qgroup: replace modifing qgroup_flags to bitops Date: Tue, 01 Feb 2022 21:56:53 +0800 Message-ID: <202202012137.VlmV1OLt-lkp@intel.com> In-Reply-To: <20220201125331.260482-1-realwakka@gmail.com> List-Id: --===============4572939768032125191== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Sidong, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on v5.17-rc2] [cannot apply to kdave/for-next next-20220131] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Sidong-Yang/btrfs-qgroup-r= eplace-modifing-qgroup_flags-to-bitops/20220201-205452 base: 26291c54e111ff6ba87a164d85d4a4e134b7315c config: nds32-allyesconfig (https://download.01.org/0day-ci/archive/2022020= 1/202202012137.VlmV1OLt-lkp(a)intel.com/config) compiler: nds32le-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/ba6f4f3d431a14034f4e4da2b= 8f342fe17ec78bf git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Sidong-Yang/btrfs-qgroup-replace-m= odifing-qgroup_flags-to-bitops/20220201-205452 git checkout ba6f4f3d431a14034f4e4da2b8f342fe17ec78bf # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dnds32 SHELL=3D/bin/bash fs/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): from ./arch/nds32/include/generated/asm/div64.h:1, from include/linux/math.h:5, from include/linux/math64.h:6, from include/linux/time64.h:5, from include/linux/restart_block.h:10, from include/linux/thread_info.h:14, from include/asm-generic/preempt.h:5, from ./arch/nds32/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from include/linux/rcupdate.h:27, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from fs/btrfs/qgroup.c:6: include/asm-generic/bitops/instrumented-atomic.h:26:61: note: expected '= volatile long unsigned int *' but argument is of type 'u64 *' {aka 'long lo= ng unsigned int *'} 26 | static inline void set_bit(long nr, volatile unsigned long *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ fs/btrfs/qgroup.c:3318:60: error: passing argument 2 of 'clear_bit' from= incompatible pointer type [-Werror=3Dincompatible-pointer-types] 3318 | clear_bit(BTRFS_QGROUP_STATUS_FLAG_RESCAN, &fs_i= nfo->qgroup_flags); | ^~~~~= ~~~~~~~~~~~~~~~~~ | | | u64 *= {aka long long unsigned int *} In file included from include/asm-generic/bitops/atomic.h:74, from include/asm-generic/bitops.h:33, from ./arch/nds32/include/generated/asm/bitops.h:1, from include/linux/bitops.h:33, from include/linux/log2.h:12, from include/asm-generic/div64.h:55, from ./arch/nds32/include/generated/asm/div64.h:1, from include/linux/math.h:5, from include/linux/math64.h:6, from include/linux/time64.h:5, from include/linux/restart_block.h:10, from include/linux/thread_info.h:14, from include/asm-generic/preempt.h:5, from ./arch/nds32/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from include/linux/rcupdate.h:27, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from fs/btrfs/qgroup.c:6: include/asm-generic/bitops/instrumented-atomic.h:39:63: note: expected '= volatile long unsigned int *' but argument is of type 'u64 *' {aka 'long lo= ng unsigned int *'} 39 | static inline void clear_bit(long nr, volatile unsigned long *ad= dr) | ~~~~~~~~~~~~~~~~~~~~~~~~^~= ~~ fs/btrfs/qgroup.c: In function 'qgroup_rescan_init': fs/btrfs/qgroup.c:3358:64: error: passing argument 2 of 'arch_test_bit' = from incompatible pointer type [-Werror=3Dincompatible-pointer-types] 3358 | if (!test_bit(BTRFS_QGROUP_STATUS_FLAG_RESCAN, &= fs_info->qgroup_flags)) { | ^= ~~~~~~~~~~~~~~~~~~~~~ | | | u= 64 * {aka long long unsigned int *} In file included from include/asm-generic/bitops.h:34, from ./arch/nds32/include/generated/asm/bitops.h:1, from include/linux/bitops.h:33, from include/linux/log2.h:12, from include/asm-generic/div64.h:55, from ./arch/nds32/include/generated/asm/div64.h:1, from include/linux/math.h:5, from include/linux/math64.h:6, from include/linux/time64.h:5, from include/linux/restart_block.h:10, from include/linux/thread_info.h:14, from include/asm-generic/preempt.h:5, from ./arch/nds32/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from include/linux/rcupdate.h:27, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from fs/btrfs/qgroup.c:6: include/asm-generic/bitops/non-atomic.h:116:62: note: expected 'const vo= latile long unsigned int *' but argument is of type 'u64 *' {aka 'long long= unsigned int *'} 116 | arch_test_bit(unsigned int nr, const volatile unsigned long *add= r) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ fs/btrfs/qgroup.c:3362:67: error: passing argument 2 of 'arch_test_bit' = from incompatible pointer type [-Werror=3Dincompatible-pointer-types] 3362 | } else if (!test_bit(BTRFS_QGROUP_STATUS_FLAG_ON= , &fs_info->qgroup_flags)) { | = ^~~~~~~~~~~~~~~~~~~~~~ | = | | = u64 * {aka long long unsigned int *} In file included from include/asm-generic/bitops.h:34, from ./arch/nds32/include/generated/asm/bitops.h:1, from include/linux/bitops.h:33, from include/linux/log2.h:12, from include/asm-generic/div64.h:55, from ./arch/nds32/include/generated/asm/div64.h:1, from include/linux/math.h:5, from include/linux/math64.h:6, from include/linux/time64.h:5, from include/linux/restart_block.h:10, from include/linux/thread_info.h:14, from include/asm-generic/preempt.h:5, from ./arch/nds32/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from include/linux/rcupdate.h:27, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from fs/btrfs/qgroup.c:6: include/asm-generic/bitops/non-atomic.h:116:62: note: expected 'const vo= latile long unsigned int *' but argument is of type 'u64 *' {aka 'long long= unsigned int *'} 116 | arch_test_bit(unsigned int nr, const volatile unsigned long *add= r) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ >> fs/btrfs/qgroup.c:3375:70: warning: passing argument 2 of 'arch_test_bit= ' makes pointer from integer without a cast [-Wint-conversion] 3375 | if (test_bit(BTRFS_QGROUP_STATUS_FLAG_RESCAN, fs= _info->qgroup_flags)) { | ~~= ~~~~~^~~~~~~~~~~~~~ | = | | = u64 {aka long long unsigned int} In file included from include/asm-generic/bitops.h:34, from ./arch/nds32/include/generated/asm/bitops.h:1, from include/linux/bitops.h:33, from include/linux/log2.h:12, from include/asm-generic/div64.h:55, from ./arch/nds32/include/generated/asm/div64.h:1, from include/linux/math.h:5, from include/linux/math64.h:6, from include/linux/time64.h:5, from include/linux/restart_block.h:10, from include/linux/thread_info.h:14, from include/asm-generic/preempt.h:5, from ./arch/nds32/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from include/linux/rcupdate.h:27, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from fs/btrfs/qgroup.c:6: include/asm-generic/bitops/non-atomic.h:116:62: note: expected 'const vo= latile long unsigned int *' but argument is of type 'u64' {aka 'long long u= nsigned int'} 116 | arch_test_bit(unsigned int nr, const volatile unsigned long *add= r) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ fs/btrfs/qgroup.c:3379:67: error: passing argument 2 of 'arch_test_bit' = from incompatible pointer type [-Werror=3Dincompatible-pointer-types] 3379 | } else if (!test_bit(BTRFS_QGROUP_STATUS_FLAG_ON= , &fs_info->qgroup_flags)) { | = ^~~~~~~~~~~~~~~~~~~~~~ | = | | = u64 * {aka long long unsigned int *} In file included from include/asm-generic/bitops.h:34, from ./arch/nds32/include/generated/asm/bitops.h:1, from include/linux/bitops.h:33, from include/linux/log2.h:12, from include/asm-generic/div64.h:55, from ./arch/nds32/include/generated/asm/div64.h:1, from include/linux/math.h:5, from include/linux/math64.h:6, from include/linux/time64.h:5, from include/linux/restart_block.h:10, from include/linux/thread_info.h:14, from include/asm-generic/preempt.h:5, from ./arch/nds32/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from include/linux/rcupdate.h:27, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from fs/btrfs/qgroup.c:6: include/asm-generic/bitops/non-atomic.h:116:62: note: expected 'const vo= latile long unsigned int *' but argument is of type 'u64 *' {aka 'long long= unsigned int *'} 116 | arch_test_bit(unsigned int nr, const volatile unsigned long *add= r) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ fs/btrfs/qgroup.c:3389:58: error: passing argument 2 of 'set_bit' from i= ncompatible pointer type [-Werror=3Dincompatible-pointer-types] 3389 | set_bit(BTRFS_QGROUP_STATUS_FLAG_RESCAN, &fs_inf= o->qgroup_flags); | ^~~~~~~= ~~~~~~~~~~~~~~~ | | | u64 * {= aka long long unsigned int *} In file included from include/asm-generic/bitops/atomic.h:74, from include/asm-generic/bitops.h:33, from ./arch/nds32/include/generated/asm/bitops.h:1, from include/linux/bitops.h:33, from include/linux/log2.h:12, from include/asm-generic/div64.h:55, from ./arch/nds32/include/generated/asm/div64.h:1, from include/linux/math.h:5, from include/linux/math64.h:6, from include/linux/time64.h:5, from include/linux/restart_block.h:10, from include/linux/thread_info.h:14, from include/asm-generic/preempt.h:5, from ./arch/nds32/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from include/linux/rcupdate.h:27, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from fs/btrfs/qgroup.c:6: include/asm-generic/bitops/instrumented-atomic.h:26:61: note: expected '= volatile long unsigned int *' but argument is of type 'u64 *' {aka 'long lo= ng unsigned int *'} 26 | static inline void set_bit(long nr, volatile unsigned long *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ fs/btrfs/qgroup.c: In function 'btrfs_qgroup_rescan': fs/btrfs/qgroup.c:3445:60: error: passing argument 2 of 'clear_bit' from= incompatible pointer type [-Werror=3Dincompatible-pointer-types] 3445 | clear_bit(BTRFS_QGROUP_STATUS_FLAG_RESCAN, &fs_i= nfo->qgroup_flags); | ^~~~~= ~~~~~~~~~~~~~~~~~ | | | u64 *= {aka long long unsigned int *} In file included from include/asm-generic/bitops/atomic.h:74, from include/asm-generic/bitops.h:33, from ./arch/nds32/include/generated/asm/bitops.h:1, from include/linux/bitops.h:33, from include/linux/log2.h:12, from include/asm-generic/div64.h:55, from ./arch/nds32/include/generated/asm/div64.h:1, from include/linux/math.h:5, from include/linux/math64.h:6, from include/linux/time64.h:5, from include/linux/restart_block.h:10, from include/linux/thread_info.h:14, from include/asm-generic/preempt.h:5, vim +/arch_test_bit +3375 fs/btrfs/qgroup.c 3345 = 3346 /* 3347 * Checks that (a) no rescan is running and (b) quota is enabled. Al= locates all 3348 * memory required for the rescan context. 3349 */ 3350 static int 3351 qgroup_rescan_init(struct btrfs_fs_info *fs_info, u64 progress_objec= tid, 3352 int init_flags) 3353 { 3354 int ret =3D 0; 3355 = 3356 if (!init_flags) { 3357 /* we're resuming qgroup rescan at mount time */ 3358 if (!test_bit(BTRFS_QGROUP_STATUS_FLAG_RESCAN, &fs_info->qgroup_fl= ags)) { 3359 btrfs_warn(fs_info, 3360 "qgroup rescan init failed, qgroup rescan is not queued"); 3361 ret =3D -EINVAL; 3362 } else if (!test_bit(BTRFS_QGROUP_STATUS_FLAG_ON, &fs_info->qgroup= _flags)) { 3363 btrfs_warn(fs_info, 3364 "qgroup rescan init failed, qgroup is not enabled"); 3365 ret =3D -EINVAL; 3366 } 3367 = 3368 if (ret) 3369 return ret; 3370 } 3371 = 3372 mutex_lock(&fs_info->qgroup_rescan_lock); 3373 = 3374 if (init_flags) { > 3375 if (test_bit(BTRFS_QGROUP_STATUS_FLAG_RESCAN, fs_info->qgroup_flag= s)) { 3376 btrfs_warn(fs_info, 3377 "qgroup rescan is already in progress"); 3378 ret =3D -EINPROGRESS; 3379 } else if (!test_bit(BTRFS_QGROUP_STATUS_FLAG_ON, &fs_info->qgroup= _flags)) { 3380 btrfs_warn(fs_info, 3381 "qgroup rescan init failed, qgroup is not enabled"); 3382 ret =3D -EINVAL; 3383 } 3384 = 3385 if (ret) { 3386 mutex_unlock(&fs_info->qgroup_rescan_lock); 3387 return ret; 3388 } 3389 set_bit(BTRFS_QGROUP_STATUS_FLAG_RESCAN, &fs_info->qgroup_flags); 3390 } 3391 = 3392 memset(&fs_info->qgroup_rescan_progress, 0, 3393 sizeof(fs_info->qgroup_rescan_progress)); 3394 fs_info->qgroup_rescan_progress.objectid =3D progress_objectid; 3395 init_completion(&fs_info->qgroup_rescan_completion); 3396 mutex_unlock(&fs_info->qgroup_rescan_lock); 3397 = 3398 btrfs_init_work(&fs_info->qgroup_rescan_work, 3399 btrfs_qgroup_rescan_worker, NULL, NULL); 3400 return 0; 3401 } 3402 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============4572939768032125191==--