From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 E85D069D09 for ; Fri, 1 Mar 2024 09:59:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709287158; cv=none; b=HzwVta9hFf1EpmBl9VnT04upkQXb0zi/OdKN+RHmZem9tCrcotZiuOLJX90e9i+6vt9ihgphIbPPuvItb38miOQ0PMyR4Xqvu0uakr5k65aLgWH9D3gv8SrqceIVa3o/loQhnvysI7tL6wgLORGV4mnKSjkZGJlXleZdZeOzIU4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709287158; c=relaxed/simple; bh=7Ck3F94bf0qs4o0XamctAKvPaqtWJEx3nvcmSbxoNrg=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=Xm3mQPzbLZw0T1yb2hbNWThI/gRWR5NdEPL+EmzNwe4Ibm7c7Y73eSDMRA005Zx4jRhjhhTkoG2ZfdaLJih9Sh7EsO+CEiQ/jHBSEnIlhr21CyxrsILK96kxUEsLwWi3AdJ+9L5wWUKaPQuUVBPFDo+j4dT5sqxGaQHCSgwEtPQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=BsnVJmcD; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="BsnVJmcD" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709287156; x=1740823156; h=date:from:to:cc:subject:message-id:mime-version; bh=7Ck3F94bf0qs4o0XamctAKvPaqtWJEx3nvcmSbxoNrg=; b=BsnVJmcDwdUPjWt7YHQ2GodDWB2B5HOQopIkFyxxhSIxprqnQ/jgWPCE 9zs69Pf90krL0v0O5fczd/cU6oVJjX4lMpv6AmR6+E8YOXIQcqgKS3ZS0 Kcuxzjjn6vDRIeaEBBOE98M0LNE3PustENPqjT/YazPxqcT9vPN51Ny8Q gM9XGFWjB+vrFJX0V71d4I9E76MWuvC6rb62wjFgv75w3pAPX1WozWr9V AyMub8nFjb72/PA95bIVwiBUpm64YrRmGyfmUPNlhwq+/RxpCIVfWy/bt ZN9/BajUhTbeHR1nwU2HD2lmsAAe/bAaWBYlwlauyHs3QM+XSfe8ufVcK w==; X-IronPort-AV: E=McAfee;i="6600,9927,10999"; a="26279578" X-IronPort-AV: E=Sophos;i="6.06,195,1705392000"; d="scan'208";a="26279578" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2024 01:59:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,195,1705392000"; d="scan'208";a="12834567" Received: from lkp-server02.sh.intel.com (HELO 3c78fa4d504c) ([10.239.97.151]) by orviesa003.jf.intel.com with ESMTP; 01 Mar 2024 01:59:13 -0800 Received: from kbuild by 3c78fa4d504c with local (Exim 4.96) (envelope-from ) id 1rfzfL-000DkF-01; Fri, 01 Mar 2024 09:59:04 +0000 Date: Fri, 1 Mar 2024 17:58:39 +0800 From: kernel test robot To: Conall O'Griofa Cc: oe-kbuild-all@lists.linux.dev, git@amd.com, Michal Simek , Radhey Shyam Pandey Subject: [xilinx-xlnx:xlnx_rebase_v6.6 137/860] include/linux/compiler_types.h:425:45: error: call to '__compiletime_assert_238' declared with attribute error: FIELD_GET: mask is zero Message-ID: <202403011726.dG8VehHd-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@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://github.com/Xilinx/linux-xlnx xlnx_rebase_v6.6 head: 24eec56fe5bd68cae795c37c61276b4dcf218a53 commit: 9d29858b73b0579e8cff27add03a8b24ecead5f1 [137/860] drivers: iio: adc: xilinx-ams: Add over temperature interrupts config: arc-allmodconfig (https://download.01.org/0day-ci/archive/20240301/202403011726.dG8VehHd-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240301/202403011726.dG8VehHd-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202403011726.dG8VehHd-lkp@intel.com/ All errors (new ones prefixed by >>): 21 | BUILD_BUG_ON(((n) & ((n) - 1)) != 0) | ^~~~~~~~~~~~ include/linux/bitfield.h:74:17: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' 74 | __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:75:56: note: in expansion of macro '__bf_shf' 75 | (1ULL << __bf_shf(_mask))); \ | ^~~~~~~~ include/linux/bitfield.h:154:17: note: in expansion of macro '__BF_FIELD_CHECK' 154 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ | ^~~~~~~~~~~~~~~~ drivers/iio/adc/xilinx-ams.c:401:15: note: in expansion of macro 'FIELD_GET' 401 | val = FIELD_GET(AMS_ISR1_ALARM_2_MASK, alarm_mask); | ^~~~~~~~~ drivers/iio/adc/xilinx-ams.c:141:41: note: in expansion of macro 'BIT' 141 | #define AMS_ISR1_ALARM_2_MASK BIT(34) | ^~~ drivers/iio/adc/xilinx-ams.c:401:25: note: in expansion of macro 'AMS_ISR1_ALARM_2_MASK' 401 | val = FIELD_GET(AMS_ISR1_ALARM_2_MASK, alarm_mask); | ^~~~~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:75:53: warning: left shift count is negative [-Wshift-count-negative] 75 | (1ULL << __bf_shf(_mask))); \ | ^~ include/linux/compiler_types.h:405:23: note: in definition of macro '__compiletime_assert' 405 | if (!(condition)) \ | ^~~~~~~~~ include/linux/compiler_types.h:425:9: note: in expansion of macro '_compiletime_assert' 425 | _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:74:17: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2' 74 | __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:154:17: note: in expansion of macro '__BF_FIELD_CHECK' 154 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ | ^~~~~~~~~~~~~~~~ drivers/iio/adc/xilinx-ams.c:401:15: note: in expansion of macro 'FIELD_GET' 401 | val = FIELD_GET(AMS_ISR1_ALARM_2_MASK, alarm_mask); | ^~~~~~~~~ include/vdso/bits.h:7:40: warning: left shift count >= width of type [-Wshift-count-overflow] 7 | #define BIT(nr) (UL(1) << (nr)) | ^~ include/linux/bitfield.h:155:44: note: in definition of macro 'FIELD_GET' 155 | (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \ | ^~~~~ drivers/iio/adc/xilinx-ams.c:141:41: note: in expansion of macro 'BIT' 141 | #define AMS_ISR1_ALARM_2_MASK BIT(34) | ^~~ drivers/iio/adc/xilinx-ams.c:401:25: note: in expansion of macro 'AMS_ISR1_ALARM_2_MASK' 401 | val = FIELD_GET(AMS_ISR1_ALARM_2_MASK, alarm_mask); | ^~~~~~~~~~~~~~~~~~~~~ include/vdso/bits.h:7:40: warning: left shift count >= width of type [-Wshift-count-overflow] 7 | #define BIT(nr) (UL(1) << (nr)) | ^~ include/linux/bitfield.h:45:38: note: in definition of macro '__bf_shf' 45 | #define __bf_shf(x) (__builtin_ffsll(x) - 1) | ^ drivers/iio/adc/xilinx-ams.c:401:15: note: in expansion of macro 'FIELD_GET' 401 | val = FIELD_GET(AMS_ISR1_ALARM_2_MASK, alarm_mask); | ^~~~~~~~~ drivers/iio/adc/xilinx-ams.c:141:41: note: in expansion of macro 'BIT' 141 | #define AMS_ISR1_ALARM_2_MASK BIT(34) | ^~~ drivers/iio/adc/xilinx-ams.c:401:25: note: in expansion of macro 'AMS_ISR1_ALARM_2_MASK' 401 | val = FIELD_GET(AMS_ISR1_ALARM_2_MASK, alarm_mask); | ^~~~~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:155:52: warning: right shift count is negative [-Wshift-count-negative] 155 | (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); \ | ^~ drivers/iio/adc/xilinx-ams.c:401:15: note: in expansion of macro 'FIELD_GET' 401 | val = FIELD_GET(AMS_ISR1_ALARM_2_MASK, alarm_mask); | ^~~~~~~~~ drivers/iio/adc/xilinx-ams.c: In function 'ams_update_alarm': drivers/iio/adc/xilinx-ams.c:424:51: warning: left shift count >= width of type [-Wshift-count-overflow] 424 | (AMS_ISR1_ALARM_MASK << AMS_ISR1_ALARM_SHIFT)), | ^~ In file included from include/linux/bits.h:6, from drivers/iio/adc/xilinx-ams.c:11: drivers/iio/adc/xilinx-ams.c: In function 'ams_get_alarm_mask': include/vdso/bits.h:7:40: warning: left shift count >= width of type [-Wshift-count-overflow] 7 | #define BIT(nr) (UL(1) << (nr)) | ^~ drivers/iio/adc/xilinx-ams.c:929:24: note: in expansion of macro 'BIT' 929 | return BIT(AMS_ALARM_BIT_TEMP_OT_REMOTE); | ^~~ drivers/iio/adc/xilinx-ams.c: In function 'ams_irq': drivers/iio/adc/xilinx-ams.c:1137:42: warning: left shift count >= width of type [-Wshift-count-overflow] 1137 | (AMS_ISR1_ALARM_MASK << AMS_ISR1_ALARM_SHIFT)) | | ^~ In function 'ams_update_ps_alarm', inlined from 'ams_update_alarm' at drivers/iio/adc/xilinx-ams.c:416:3, inlined from 'ams_write_event_config' at drivers/iio/adc/xilinx-ams.c:963:2: >> include/linux/compiler_types.h:425:45: error: call to '__compiletime_assert_238' declared with attribute error: FIELD_GET: mask is zero 425 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:406:25: note: in definition of macro '__compiletime_assert' 406 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:425:9: note: in expansion of macro '_compiletime_assert' 425 | _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:67:17: note: in expansion of macro 'BUILD_BUG_ON_MSG' 67 | BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \ | ^~~~~~~~~~~~~~~~ include/linux/bitfield.h:154:17: note: in expansion of macro '__BF_FIELD_CHECK' 154 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ | ^~~~~~~~~~~~~~~~ drivers/iio/adc/xilinx-ams.c:377:15: note: in expansion of macro 'FIELD_GET' 377 | val = FIELD_GET(AMS_ISR1_ALARM_1_TO_0_MASK, alarm_mask); | ^~~~~~~~~ In function 'ams_update_pl_alarm', inlined from 'ams_update_alarm' at drivers/iio/adc/xilinx-ams.c:419:3, inlined from 'ams_write_event_config' at drivers/iio/adc/xilinx-ams.c:963:2: include/linux/compiler_types.h:425:45: error: call to '__compiletime_assert_283' declared with attribute error: FIELD_GET: mask is zero 425 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:406:25: note: in definition of macro '__compiletime_assert' 406 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:425:9: note: in expansion of macro '_compiletime_assert' 425 | _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:67:17: note: in expansion of macro 'BUILD_BUG_ON_MSG' 67 | BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \ | ^~~~~~~~~~~~~~~~ include/linux/bitfield.h:154:17: note: in expansion of macro '__BF_FIELD_CHECK' 154 | __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \ | ^~~~~~~~~~~~~~~~ drivers/iio/adc/xilinx-ams.c:401:15: note: in expansion of macro 'FIELD_GET' 401 | val = FIELD_GET(AMS_ISR1_ALARM_2_MASK, alarm_mask); | ^~~~~~~~~ vim +/__compiletime_assert_238 +425 include/linux/compiler_types.h eb5c2d4b45e3d2 Will Deacon 2020-07-21 411 eb5c2d4b45e3d2 Will Deacon 2020-07-21 412 #define _compiletime_assert(condition, msg, prefix, suffix) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 413 __compiletime_assert(condition, msg, prefix, suffix) eb5c2d4b45e3d2 Will Deacon 2020-07-21 414 eb5c2d4b45e3d2 Will Deacon 2020-07-21 415 /** eb5c2d4b45e3d2 Will Deacon 2020-07-21 416 * compiletime_assert - break build and emit msg if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 417 * @condition: a compile-time constant condition to check eb5c2d4b45e3d2 Will Deacon 2020-07-21 418 * @msg: a message to emit if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 419 * eb5c2d4b45e3d2 Will Deacon 2020-07-21 420 * In tradition of POSIX assert, this macro will break the build if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 421 * supplied condition is *false*, emitting the supplied error message if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 422 * compiler has support to do so. eb5c2d4b45e3d2 Will Deacon 2020-07-21 423 */ eb5c2d4b45e3d2 Will Deacon 2020-07-21 424 #define compiletime_assert(condition, msg) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 @425 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) eb5c2d4b45e3d2 Will Deacon 2020-07-21 426 :::::: The code at line 425 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://github.com/intel/lkp-tests/wiki