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 5A1F7C76188 for ; Tue, 4 Apr 2023 01:19:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 95E0E6B0071; Mon, 3 Apr 2023 21:19:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 90DFF6B0074; Mon, 3 Apr 2023 21:19:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7D5CE6B0075; Mon, 3 Apr 2023 21:19:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 6E79A6B0071 for ; Mon, 3 Apr 2023 21:19:58 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 4938BA0297 for ; Tue, 4 Apr 2023 01:19:58 +0000 (UTC) X-FDA: 80641952076.23.629E23C Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by imf03.hostedemail.com (Postfix) with ESMTP id 7B17720003 for ; Tue, 4 Apr 2023 01:19:55 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=KVXsOvoi; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf03.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1680571196; 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=/KF61fGKZGM79GmmKo1lXbrXcf9aAR9BQ80hED1TKWI=; b=PlR1j6hIOJzh7yLrYcopH0FtLVVG/1K2xsQ2ai8qTlgQJNNvZpKYczgtQNIHGhfaSzFqDY J/HYQf/WTS7TiWUmvIAQYzuxsxpiNtFHvdjxz5nkF4tCJB/ad58r4vmRsBvac4Nu2vyA35 3mDgbGWuTSdQGd+DmBKVGZx6vUS9hko= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=KVXsOvoi; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf03.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1680571196; a=rsa-sha256; cv=none; b=dTYCa3vudepV8YLAkZZLCB1qKkSQxef0sIiwqQ1cv0aNq3ZMYTCIROMKcg4UpmvEo2dW78 QPUZgeYGTiQr06vE9BqFeDZicN5xe601k0mKabPUVAP+Jl3vGAytELsvE59xygYoxoW+bi iEbuhW5jJEKXST4rrzZ0szyyslbB+8I= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680571195; x=1712107195; h=date:from:to:cc:subject:message-id:mime-version; bh=kYfHwpabs/xCsxDXmJ9TPb9haAfcSLMo5zs7MtvWs0E=; b=KVXsOvoiJwlLVIx6BffGyM49oYlg3kfs5ejRPFyxBcavjgAKB3uoZSxL hY3LWJmSR2bW9S5nxmWfsGzPc3Aru/Lg7PDma19rMBYHSt3XFlU05XCht R6Fpx8RdZfXjE3/GARkzb36TnnUumYZ46L1yVoIkyM6nHE1Zz1pT0rVq4 ptqDzMxRxRsQEYXiHHd49xoP7TfpJEYiiBZpsjQuQVQq5oXNyFvd7sq1T 6LsUGCmjJuP3Ibx6DicDmdMZWZ0iaMkigs5p3kBVgt13m2yKhN4BUo0VO qWnsQcU2U3PXavS+QRc3uhmUA3qxYpp5eJyWwsehm+y9STag2uOdSA2xU Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10669"; a="340791545" X-IronPort-AV: E=Sophos;i="5.98,316,1673942400"; d="scan'208";a="340791545" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2023 18:19:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10669"; a="775442802" X-IronPort-AV: E=Sophos;i="5.98,316,1673942400"; d="scan'208";a="775442802" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 03 Apr 2023 18:19:51 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pjVKw-000Ozq-1P; Tue, 04 Apr 2023 01:19:50 +0000 Date: Tue, 4 Apr 2023 09:18:58 +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:linux-5.4.y 4610/22976] include/linux/compiler.h:350:45: error: call to '__compiletime_assert_253' declared with attribute error: FIELD_GET: mask is not constant Message-ID: <202304040908.quRhblEI-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 7B17720003 X-Rspamd-Server: rspam09 X-Rspam-User: X-Stat-Signature: 69mcsqn49rb9zxcw1ud1wywng44eu8dh X-HE-Tag: 1680571195-818299 X-HE-Meta: U2FsdGVkX18ZNGIkECSt6XcNlYeXDWMTJaEgH4uvUFJm0G1YcquZefDA02HI4HfAJwp3sG+8VH9RUP1R2cflCKJcgeVhFDEEI0Vv1/jMV71ac1FhXcou1goh/HGL8XAB0z+NNXdlHmYGj73wypNm6DmSZ+rAYE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6d6acABgygJImkWpYcAlk9YRCLOSYTnN+fX3Qr4sjuhRJfRzpgdu0ZUiTEEW7Vz5rg7bFUmu05RxuqzFfVJyNU0A9AwU/NhXgWtGGEdUVwD7nxufff8MOAR8A== 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 linux-5.4.y head: 73330daa339307fbff4ff7f1775da1dead794691 commit: 3910babeac1ab031f4e178042cbd1af9a9a0ec51 [4610/22976] compiler.h: fix error in BUILD_BUG_ON() reporting config: i386-randconfig-r015-20230403 (https://download.01.org/0day-ci/archive/20230404/202304040908.quRhblEI-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce (this is a W=1 build): # 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 linux-5.4.y git checkout 3910babeac1ab031f4e178042cbd1af9a9a0ec51 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 olddefconfig make W=1 O=build_dir ARCH=i386 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/202304040908.quRhblEI-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/export.h:42, from include/linux/linkage.h:7, from include/linux/kernel.h:8, 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_253' 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_257' 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_253 +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