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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35DE4C77B75 for ; Mon, 8 May 2023 10:09:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 88FD76B0078; Mon, 8 May 2023 06:09:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 83FE06B007D; Mon, 8 May 2023 06:09:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 72F696B007E; Mon, 8 May 2023 06:09:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 641FB6B0078 for ; Mon, 8 May 2023 06:09:38 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 28D6F1A0321 for ; Mon, 8 May 2023 10:09:38 +0000 (UTC) X-FDA: 80766666036.02.E19AA68 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by imf25.hostedemail.com (Postfix) with ESMTP id F3989A0002 for ; Mon, 8 May 2023 10:09:34 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=O7GB3lTR; spf=pass (imf25.hostedemail.com: domain of lkp@intel.com designates 192.55.52.151 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1683540576; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=nq3iw2sGaksZXsnbdELdwozCAA3YGOGimqUoRcFXUtY=; b=yJ00b16gWRFW7JCF8LsPKRbA2+uvfQd/V2u5NueEXnRSDqHaWEv7rW6sL+HjGWm0XIk4Ps TWeX5FC7se1dTbqbF2sMEo+J5nJmwlKStow4Cq2tp0ehkcGnSu+OFYnKsC/bI3uRRraMx+ QOrJc+gUtgWwy238TtgyN3WBAYpAWe0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1683540576; a=rsa-sha256; cv=none; b=C4PK+R2rLjf3U8rb6Jqwa8Zlsm47D0rEoFOZPVYa9ICLElKrYfTIqpB9bqFF/aVBzrhjre m7XwxCwKbuTi3fT1n5Gt2HcuwOm3cjTlrth5wO+rtdjmC6dv20p9BKC0xZLBTgp4lolLxr WpFQCjKwLLSSI6B/j/pybji/GHwv6Fg= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=O7GB3lTR; spf=pass (imf25.hostedemail.com: domain of lkp@intel.com designates 192.55.52.151 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683540575; x=1715076575; h=date:from:to:cc:subject:message-id:mime-version; bh=4jr48r3Rg1gBF9nU5gu4Efj5T+5s3X2Wu++aNSu2CO0=; b=O7GB3lTRfSvLg1ulIrt81Q0Ncm/o/I7BUxpRZGs//quu5OGxFuMk9a8z M64xUVRN7G0JquT9maWvuHNwLMpmxd/VRoyn0otQGQ3yK1qlt4+cHWQJg 3vaG8LbwyCLVtOzbBhfclacB+w+3XyMyP+03/HxaeNSsqoFcJhPlSv1oJ CJew52ntl/sYlUIEg+9ubvCb6AkhIDjqXezMoaANzf1iLfO7VPjY13UDg kwaT7i424D9aBeQA3eh5oPcWBeZ0IFIrjxmwdCkI8Psu9rHc5VGDt8NZr 68oD2Ei0m20w6X9kUOpdSWqbY0VD1l9rUsCuWQ+aqqs52aSWyuzrsE+hD g==; X-IronPort-AV: E=McAfee;i="6600,9927,10703"; a="329966080" X-IronPort-AV: E=Sophos;i="5.99,258,1677571200"; d="scan'208";a="329966080" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2023 03:09:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10703"; a="872745963" X-IronPort-AV: E=Sophos;i="5.99,258,1677571200"; d="scan'208";a="872745963" Received: from lkp-server01.sh.intel.com (HELO dea6d5a4f140) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 08 May 2023 03:09:30 -0700 Received: from kbuild by dea6d5a4f140 with local (Exim 4.96) (envelope-from ) id 1pvxo9-0001BR-2q; Mon, 08 May 2023 10:09:29 +0000 Date: Mon, 8 May 2023 18:09:04 +0800 From: kernel test robot To: Vegard Nossum Cc: oe-kbuild-all@lists.linux.dev, Greg Kroah-Hartman , Andrew Morton , Linux Memory Management List , Masahiro Yamada , Daniel Santos , Sasha Levin Subject: [linux-stable-rc:queue/5.4 4610/23318] include/linux/compiler.h:350:45: error: call to '__compiletime_assert_255' declared with attribute error: FIELD_GET: mask is not constant Message-ID: <202305081823.YByGrcJ3-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: F3989A0002 X-Stat-Signature: efegdu3ac4thxdfxragzpw73zppp67ds X-Rspam-User: X-HE-Tag: 1683540574-685002 X-HE-Meta: U2FsdGVkX19KATW2+/k0Kc9zv8ZfUeDS3JE4viiZPJklEimRNjt8GSG8B++Pc7Wl6fbDIPcmWbZCKz6D4rYy5TnFkxH+0nwiByG3rlmBoo6ORqSTpIn4PvCVYTr0F9qoZgFAa4nZ9GDHhrtMFAOV/VgavQJjipToN5tAZOL1zgiRJQpE93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OPQQw/DAmPzygJxANlBej8R3HkySwJ0MONEF7dq/fKNGfZy4AdCUWAYHQKpkvlTUYFZqZHFQ7h1qcxU9gusKCdq45FQHac/MC73wYSputFSc/o7OO/N4dH2LhJR8bKeEp4KBnslBTx0OV3Q/ao1cRrtzftn9H X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Vegard, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git queue/5.4 head: 0852c87349d4b76efbaf87cff41fb692bf77814c commit: 3910babeac1ab031f4e178042cbd1af9a9a0ec51 [4610/23318] compiler.h: fix error in BUILD_BUG_ON() reporting config: ia64-randconfig-r014-20230508 (https://download.01.org/0day-ci/archive/20230508/202305081823.YByGrcJ3-lkp@intel.com/config) compiler: ia64-linux-gcc (GCC) 12.1.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://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=3910babeac1ab031f4e178042cbd1af9a9a0ec51 git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git git fetch --no-tags linux-stable-rc queue/5.4 git checkout 3910babeac1ab031f4e178042cbd1af9a9a0ec51 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/net/wireless/mediatek/mt76/mt7615/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202305081823.YByGrcJ3-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/kernel.h:11, from include/linux/skbuff.h:13, from include/linux/if_ether.h:19, from include/linux/etherdevice.h:20, from drivers/net/wireless/mediatek/mt76/mt7615/mac.c:10: drivers/net/wireless/mediatek/mt76/mt7615/mac.c: In function 'to_rssi': >> include/linux/compiler.h:350:45: error: call to '__compiletime_assert_255' declared with attribute error: FIELD_GET: mask is not constant 350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler.h:331:25: note: in definition of macro '__compiletime_assert' 331 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler.h:350:9: note: in expansion of macro '_compiletime_assert' 350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) | ^~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:46:17: note: in expansion of macro 'BUILD_BUG_ON_MSG' 46 | BUILD_BUG_ON_MSG(!__builtin_constant_p(_mask), \ | ^~~~~~~~~~~~~~~~ include/linux/bitfield.h:95:17: note: in expansion of macro '__BF_FIELD_CHECK' 95 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ | ^~~~~~~~~~~~~~~~ drivers/net/wireless/mediatek/mt76/mt7615/mac.c:18:17: note: in expansion of macro 'FIELD_GET' 18 | return (FIELD_GET(field, rxv) - 220) / 2; | ^~~~~~~~~ include/linux/compiler.h:350:45: error: call to '__compiletime_assert_259' declared with attribute error: BUILD_BUG_ON failed: (((field) + (1ULL << (__builtin_ffsll(field) - 1))) & (((field) + (1ULL << (__builtin_ffsll(field) - 1))) - 1)) != 0 350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler.h:331:25: note: in definition of macro '__compiletime_assert' 331 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler.h:350:9: note: in expansion of macro '_compiletime_assert' 350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) | ^~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG' 50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) | ^~~~~~~~~~~~~~~~ include/linux/build_bug.h:21:9: note: in expansion of macro 'BUILD_BUG_ON' 21 | BUILD_BUG_ON(((n) & ((n) - 1)) != 0) | ^~~~~~~~~~~~ include/linux/bitfield.h:54:17: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' 54 | __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:95:17: note: in expansion of macro '__BF_FIELD_CHECK' 95 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ | ^~~~~~~~~~~~~~~~ drivers/net/wireless/mediatek/mt76/mt7615/mac.c:18:17: note: in expansion of macro 'FIELD_GET' 18 | return (FIELD_GET(field, rxv) - 220) / 2; | ^~~~~~~~~ vim +/__compiletime_assert_255 +350 include/linux/compiler.h 336 337 #define _compiletime_assert(condition, msg, prefix, suffix) \ 338 __compiletime_assert(condition, msg, prefix, suffix) 339 340 /** 341 * compiletime_assert - break build and emit msg if condition is false 342 * @condition: a compile-time constant condition to check 343 * @msg: a message to emit if condition is false 344 * 345 * In tradition of POSIX assert, this macro will break the build if the 346 * supplied condition is *false*, emitting the supplied error message if the 347 * compiler has support to do so. 348 */ 349 #define compiletime_assert(condition, msg) \ > 350 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) 351 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests