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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CB215C43334 for ; Thu, 2 Jun 2022 13:15:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=i+I6Ap6nZEI0Mg/L8PIls2NunEkkmQdQjmgYqVq9H60=; b=CfAgArgnEqzq4k FNn9ZGIuwdMZDs0rx40pv2ABM2NpCGPVKEnUiQm0zFGKSNDxJgV5obPSyU+NUOl9ou4QZHNCCGauh jepQyAQghSWk98vKnX4ugFZ/whTdFIuteV9nlxJco/J2tQvyy/teZSc6sGnQOGLiIl+k6cJxjADkk mMk+LVi2xq6XrDXxCuHstgPdwupriYONXDuVP0BzKSxIr772ff0nFWrit7hRZkWDkb7+awaUFamxj 3rhquU2pLZKfof6cwPtOPHrXY6PKNJeiSuSPInHIo6+5z4rc9mEh9pBwUqCFJaUgbREhDgHC7WbGw C6Ic8tAMQXwmK2S8+17Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwkes-003Lbc-Dr; Thu, 02 Jun 2022 13:14:38 +0000 Received: from mga17.intel.com ([192.55.52.151]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwkeo-003LZe-8a for linux-arm-kernel@lists.infradead.org; Thu, 02 Jun 2022 13:14:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654175674; x=1685711674; h=date:from:to:cc:subject:message-id:mime-version; bh=/EHd0PuPiz6/AWJ8ZzGVJ43I/ziaLodpW6VzsjfPO3o=; b=nMtGyp4Bh5v3kZ9FnyhGCK2OPFJ6QBruRYmqB+t+X6CtyqleRuC+dTEw 9MXx5ArVYHWhq292a8F6aknVe/2glQWkKTDwWrY9KivmlMdoM97WMRC5Y 7+uvMar5hhQTnrWMFUjAokPtunnGI+bADM9en6aLP3E0ITNUCQSFq9Bw8 azqdg9vR4NC9BVWzDEn7Y/1Ymo9hIxC9hyoqAUytalKU7seb/kYM121iy RCp5P3E6giiQt1VnDabZZOSSWwyO+42mKvRc7l5NAoly1aC7kMhioNVVC vnruFaHgvRdSrFxQXdQy+pMpzL2oHOPe7gh+5O8otNZWNm9Rj0Ar0hX8u g==; X-IronPort-AV: E=McAfee;i="6400,9594,10365"; a="256422126" X-IronPort-AV: E=Sophos;i="5.91,271,1647327600"; d="scan'208";a="256422126" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2022 06:14:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,271,1647327600"; d="scan'208";a="530572279" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 02 Jun 2022 06:14:28 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1nwkeh-00056e-Di; Thu, 02 Jun 2022 13:14:27 +0000 Date: Thu, 2 Jun 2022 21:13:54 +0800 From: kernel test robot To: Rajesh Gugulothu Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org, Michal Simek , Hyun Kwon , Vishal Sagar Subject: [xilinx-xlnx:xlnx_rebase_v5.15_LTS_2022.1_update 778/1102] include/linux/compiler_types.h:322:45: error: call to '__compiletime_assert_377' declared with attribute error: FIELD_PREP: mask is not constant Message-ID: <202206022146.OlBX8CDa-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220602_061434_390348_E819E5F6 X-CRM114-Status: GOOD ( 12.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Rajesh, FYI, the error/warning still remains. tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS_2022.1_update head: 8e42834c82e505bacccca3c9d35da7041793d9d7 commit: 1606e76a608339cc67dfd9b03542976482b90805 [778/1102] v4l: xilinx: Driver support for Xilinx DP Rx subsystem config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220602/202206022146.OlBX8CDa-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-1) 11.3.0 reproduce (this is a W=1 build): # https://github.com/Xilinx/linux-xlnx/commit/1606e76a608339cc67dfd9b03542976482b90805 git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS_2022.1_update git checkout 1606e76a608339cc67dfd9b03542976482b90805 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from : drivers/media/platform/xilinx/xilinx-dprxss.c: In function 'xdprxss_clrset.constprop': >> include/linux/compiler_types.h:322:45: error: call to '__compiletime_assert_377' declared with attribute error: FIELD_PREP: mask is not constant 322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:303:25: note: in definition of macro '__compiletime_assert' 303 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:322:9: note: in expansion of macro '_compiletime_assert' 322 | _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:94:17: note: in expansion of macro '__BF_FIELD_CHECK' 94 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ | ^~~~~~~~~~~~~~~~ drivers/media/platform/xilinx/xilinx-dprxss.c:521:19: note: in expansion of macro 'FIELD_PREP' 521 | regval |= FIELD_PREP(clr_mask, set_data); | ^~~~~~~~~~ >> include/linux/compiler_types.h:322:45: error: call to '__compiletime_assert_381' declared with attribute error: BUILD_BUG_ON failed: (((clr_mask) + (1ULL << (__builtin_ffsll(clr_mask) - 1))) & (((clr_mask) + (1ULL << (__builtin_ffsll(clr_mask) - 1))) - 1)) != 0 322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:303:25: note: in definition of macro '__compiletime_assert' 303 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:322:9: note: in expansion of macro '_compiletime_assert' 322 | _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:94:17: note: in expansion of macro '__BF_FIELD_CHECK' 94 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ | ^~~~~~~~~~~~~~~~ drivers/media/platform/xilinx/xilinx-dprxss.c:521:19: note: in expansion of macro 'FIELD_PREP' 521 | regval |= FIELD_PREP(clr_mask, set_data); | ^~~~~~~~~~ vim +/__compiletime_assert_377 +322 include/linux/compiler_types.h eb5c2d4b45e3d2 Will Deacon 2020-07-21 308 eb5c2d4b45e3d2 Will Deacon 2020-07-21 309 #define _compiletime_assert(condition, msg, prefix, suffix) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 310 __compiletime_assert(condition, msg, prefix, suffix) eb5c2d4b45e3d2 Will Deacon 2020-07-21 311 eb5c2d4b45e3d2 Will Deacon 2020-07-21 312 /** eb5c2d4b45e3d2 Will Deacon 2020-07-21 313 * compiletime_assert - break build and emit msg if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 314 * @condition: a compile-time constant condition to check eb5c2d4b45e3d2 Will Deacon 2020-07-21 315 * @msg: a message to emit if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 316 * eb5c2d4b45e3d2 Will Deacon 2020-07-21 317 * In tradition of POSIX assert, this macro will break the build if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 318 * supplied condition is *false*, emitting the supplied error message if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 319 * compiler has support to do so. eb5c2d4b45e3d2 Will Deacon 2020-07-21 320 */ eb5c2d4b45e3d2 Will Deacon 2020-07-21 321 #define compiletime_assert(condition, msg) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 @322 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) eb5c2d4b45e3d2 Will Deacon 2020-07-21 323 :::::: The code at line 322 was first introduced by commit :::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h :::::: TO: Will Deacon :::::: CC: Will Deacon -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel