From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D7D56AA6 for ; Thu, 16 Jun 2022 22:58:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655420308; x=1686956308; h=date:from:to:cc:subject:message-id:mime-version; bh=BWxsxWawtf6Hs4uicUqdzcEgaSLbxNpf6q1slaH91EY=; b=R85Z5SfbRKetOBrsPAptpDq6NtgzSkUXL8aQ703hDSFMybF6pgBvLvX6 Gk7pMyiLSF++mJAkWNini/C52rgAxhSfN05CoQ9QxUze7ijI5E4106KQy fwBiFqisH/NETq6vDC5amB6bRNhU/HqlxpgRcVkQEFTd3g/J+8FDtDMj1 a/AT4v20R/tw6QcP4K/B9gzAb+CRU8fOzG4xHvsRTKd7Ky6QLtr42X3LO vc5CLAvTWXcAGl9McIo1zyLK1coYltOSqg4JH4b7VSfC09s3mVB4labwa lRGkpSoRYUu13T1ULTXMr7bprBd20nce93ziYkFfFIYwT4d2AEZliJQT8 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10380"; a="341025754" X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="341025754" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2022 15:58:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="763034903" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 16 Jun 2022 15:58:18 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1o1yRN-000Oqn-O4; Thu, 16 Jun 2022 22:58:17 +0000 Date: Fri, 17 Jun 2022 06:57:52 +0800 From: kernel test robot To: James Morse Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [morse:mpam/snapshot/v5.18 66/146] include/linux/resctrl.h:286:20: warning: shift count >= width of type Message-ID: <202206170631.gKMr1Rch-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/snapshot/v5.18 head: bac90d25cbdee0fc233b9b1c47d5b6f44101a384 commit: 2881ac404cd937d1529d641acc4055fb14822de0 [66/146] fs/resctrl: Export the closid/rmid to user-space config: hexagon-randconfig-r041-20220616 (https://download.01.org/0day-ci/archive/20220617/202206170631.gKMr1Rch-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project f0e608de27b3d568000046eebf3712ab542979d6) 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://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/commit/?id=2881ac404cd937d1529d641acc4055fb14822de0 git remote add morse https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git git fetch --no-tags morse mpam/snapshot/v5.18 git checkout 2881ac404cd937d1529d641acc4055fb14822de0 # 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=hexagon 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 >>): In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count >= width of type [-Wshift-count-overflow] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:35:22: note: expanded from macro '__GENMASK' (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count is negative [-Wshift-count-negative] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:36:11: note: expanded from macro '__GENMASK' (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count >= width of type [-Wshift-count-overflow] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:35:22: note: expanded from macro '__GENMASK' (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count is negative [-Wshift-count-negative] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:36:11: note: expanded from macro '__GENMASK' (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count >= width of type [-Wshift-count-overflow] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:35:22: note: expanded from macro '__GENMASK' (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count is negative [-Wshift-count-negative] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:36:11: note: expanded from macro '__GENMASK' (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count >= width of type [-Wshift-count-overflow] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:35:22: note: expanded from macro '__GENMASK' (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count is negative [-Wshift-count-negative] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:36:11: note: expanded from macro '__GENMASK' (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count >= width of type [-Wshift-count-overflow] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:35:22: note: expanded from macro '__GENMASK' (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count is negative [-Wshift-count-negative] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:36:11: note: expanded from macro '__GENMASK' (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count >= width of type [-Wshift-count-overflow] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:35:22: note: expanded from macro '__GENMASK' (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count is negative [-Wshift-count-negative] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:36:11: note: expanded from macro '__GENMASK' (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count >= width of type [-Wshift-count-overflow] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:35:22: note: expanded from macro '__GENMASK' (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ note: (skipping 6 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count is negative [-Wshift-count-negative] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:36:11: note: expanded from macro '__GENMASK' (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ note: (skipping 6 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count >= width of type [-Wshift-count-overflow] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:35:22: note: expanded from macro '__GENMASK' (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count is negative [-Wshift-count-negative] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:36:11: note: expanded from macro '__GENMASK' (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count >= width of type [-Wshift-count-overflow] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:35:22: note: expanded from macro '__GENMASK' (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ note: (skipping 6 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count is negative [-Wshift-count-negative] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:36:11: note: expanded from macro '__GENMASK' (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ note: (skipping 6 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count >= width of type [-Wshift-count-overflow] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:35:22: note: expanded from macro '__GENMASK' (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ include/linux/bitfield.h:129:30: note: expanded from macro 'FIELD_GET' (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \ ^~~~~ In file included from fs/proc/base.c:97: >> include/linux/resctrl.h:286:20: warning: shift count is negative [-Wshift-count-negative] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:36:11: note: expanded from macro '__GENMASK' (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ include/linux/bitfield.h:129:30: note: expanded from macro 'FIELD_GET' (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \ ^~~~~ In file included from fs/proc/base.c:97: include/linux/resctrl.h:286:20: warning: shift count >= width of type [-Wshift-count-overflow] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:35:22: note: expanded from macro '__GENMASK' (((~UL(0)) - (UL(1) << (l)) + 1) & \ ^ include/linux/bitfield.h:129:50: note: expanded from macro 'FIELD_GET' (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \ ~~~~~~~~~^~~~~~ include/linux/bitfield.h:45:38: note: expanded from macro '__bf_shf' #define __bf_shf(x) (__builtin_ffsll(x) - 1) ^ In file included from fs/proc/base.c:97: include/linux/resctrl.h:286:20: warning: shift count is negative [-Wshift-count-negative] *rmid = FIELD_GET(RESCTRL_ID_RMID, id); ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/linux/resctrl.h:40:26: note: expanded from macro 'RESCTRL_ID_RMID' #define RESCTRL_ID_RMID GENMASK(63, 32) ^ include/linux/bits.h:38:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:36:11: note: expanded from macro '__GENMASK' (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ include/linux/bitfield.h:129:50: note: expanded from macro 'FIELD_GET' (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \ ~~~~~~~~~^~~~~~ include/linux/bitfield.h:45:38: note: expanded from macro '__bf_shf' #define __bf_shf(x) (__builtin_ffsll(x) - 1) ^ 22 warnings generated. vim +286 include/linux/resctrl.h 269 270 /** 271 * __resctrl_id_decode() - unpack a known-good id that has been checked by 272 * resctrl_id_decode(). 273 * @id: The value originally passed by user-space. 274 * @closid: Returned closid. 275 * @rmid: Returned rmid. 276 * 277 * Decodes the id field with no error checking. resctrl_id_decode() must have 278 * been used to check the id produces values that are in range and are 279 * allocated at the time of first use. 280 */ 281 static inline void __resctrl_id_decode(u64 id, u32 *closid, u32 *rmid) 282 { 283 id ^= resctrl_id_obsfucation; 284 285 *closid = FIELD_GET(RESCTRL_ID_CLOSID, id); > 286 *rmid = FIELD_GET(RESCTRL_ID_RMID, id); 287 } 288 -- 0-DAY CI Kernel Test Service https://01.org/lkp