From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 642832DA758 for ; Mon, 1 Dec 2025 12:18:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764591536; cv=none; b=sRzpScp23g/hF1B2wcRCtwsxuWZ5zATk9p4l/fVhKZ579299mmaSmuuQQZzJg4mOm7A7cEQS/D1zsTrYtbvtaVX61MFGB5QQwdFgjMSg7vxoX4iirr5b6af6VdWbkB8HR1mHP0lK3ff9iWPgkfyOgOR8Frwsf3A8uzhy/dI6yJo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764591536; c=relaxed/simple; bh=BKqcyyMvxlPIwoVkNx33lAAG/iMJU03iz7C45PC0qjY=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=HVgWq3TExBUpgvQSu6lnS7P0soGKNXrxBcOTl7klY9XPmfJTgQjdlB8Uh59Atbh84yBVRkXgxgJCBmg+OupS7yP2WJb2OHIFVj6p5fMzxbqHOm+3mltZuhqBU+fEPEQhs2MTOQpnQIPkxOha3PyUpV5JdWuQ3PmsRXQvq1hA4IQ= 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=cufgHLf5; arc=none smtp.client-ip=192.198.163.11 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="cufgHLf5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1764591534; x=1796127534; h=date:from:to:cc:subject:message-id:mime-version; bh=BKqcyyMvxlPIwoVkNx33lAAG/iMJU03iz7C45PC0qjY=; b=cufgHLf5iIe4RoHrYDoLbX0qxG/J8ukTwnJ5ZpkkIA2rMjFSprC2Nbg/ sAjmpDg3S1RCyMbnGfZk3V16uZuJ38ViNZDzoZuWXVdUpQmf7ARgljvr7 ohdeoObDEVGh53LSiKshLBsMmVr06JRgmS97wLZP4LUrYLT3mhew9zyY4 HHy8yNYgUI4ROBBJGvUDfI/icAL4nyTBH8kDhzI2LpPpbz20vIV2GGhQE pIacybeYdLWmoh/RDVicJ6NBUI/PepKtNzBXo0S+pcQnPkcVt7hN7CyII If4bnLNmTEzQOO8f90j9mQKIYFJr8eBvUXk9QgOX//YyOAs35gwZpzXky g==; X-CSE-ConnectionGUID: rMb0XgdyTAi182wN1sNVqg== X-CSE-MsgGUID: keC0ZU5WQCqYZGwvZbFFtA== X-IronPort-AV: E=McAfee;i="6800,10657,11629"; a="77159644" X-IronPort-AV: E=Sophos;i="6.20,240,1758610800"; d="scan'208";a="77159644" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2025 04:18:54 -0800 X-CSE-ConnectionGUID: ABkeRcglQjiUcnOiAQHGng== X-CSE-MsgGUID: Fq0dUSPXTEq0dUkaouuM2w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.20,240,1758610800"; d="scan'208";a="231359134" Received: from lkp-server01.sh.intel.com (HELO 4664bbef4914) ([10.239.97.150]) by orviesa001.jf.intel.com with ESMTP; 01 Dec 2025 04:18:52 -0800 Received: from kbuild by 4664bbef4914 with local (Exim 4.98.2) (envelope-from ) id 1vQ2ri-000000008kR-1GXw; Mon, 01 Dec 2025 12:18:50 +0000 Date: Mon, 1 Dec 2025 20:18:45 +0800 From: kernel test robot To: David Laight Cc: oe-kbuild-all@lists.linux.dev, Jarkko Sakkinen Subject: [linux-next:master 12420/13171] include/linux/compiler_types.h:602:45: error: call to '__compiletime_assert_293' declared with attribute error: min(burstcnt, len - count - 1) signedness error Message-ID: <202512012040.BkoYgkkr-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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 95cb2fd6ce0ad61af54191fe5ef271d7177f9c3a commit: 9ce4f8e56bd2ed2bd473572bbd4c1a7f8863487c [12420/13171] drivers/char/tpm: use min() instead of min_t() config: xtensa-randconfig-r123-20251201 (https://download.01.org/0day-ci/archive/20251201/202512012040.BkoYgkkr-lkp@intel.com/config) compiler: xtensa-linux-gcc (GCC) 11.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251201/202512012040.BkoYgkkr-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/202512012040.BkoYgkkr-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from : drivers/char/tpm/tpm_tis_core.c: In function 'tpm_tis_send_data': >> include/linux/compiler_types.h:602:45: error: call to '__compiletime_assert_293' declared with attribute error: min(burstcnt, len - count - 1) signedness error 602 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:583:25: note: in definition of macro '__compiletime_assert' 583 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:602:9: note: in expansion of macro '_compiletime_assert' 602 | _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/minmax.h:93:9: note: in expansion of macro 'BUILD_BUG_ON_MSG' 93 | BUILD_BUG_ON_MSG(!__types_ok(ux, uy), \ | ^~~~~~~~~~~~~~~~ include/linux/minmax.h:98:9: note: in expansion of macro '__careful_cmp_once' 98 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_)) | ^~~~~~~~~~~~~~~~~~ include/linux/minmax.h:105:25: note: in expansion of macro '__careful_cmp' 105 | #define min(x, y) __careful_cmp(min, x, y) | ^~~~~~~~~~~~~ drivers/char/tpm/tpm_tis_core.c:456:28: note: in expansion of macro 'min' 456 | burstcnt = min(burstcnt, len - count - 1); | ^~~ -- In file included from : tpm_tis_core.c: In function 'tpm_tis_send_data': >> include/linux/compiler_types.h:602:45: error: call to '__compiletime_assert_293' declared with attribute error: min(burstcnt, len - count - 1) signedness error 602 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:583:25: note: in definition of macro '__compiletime_assert' 583 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:602:9: note: in expansion of macro '_compiletime_assert' 602 | _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/minmax.h:93:9: note: in expansion of macro 'BUILD_BUG_ON_MSG' 93 | BUILD_BUG_ON_MSG(!__types_ok(ux, uy), \ | ^~~~~~~~~~~~~~~~ include/linux/minmax.h:98:9: note: in expansion of macro '__careful_cmp_once' 98 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_)) | ^~~~~~~~~~~~~~~~~~ include/linux/minmax.h:105:25: note: in expansion of macro '__careful_cmp' 105 | #define min(x, y) __careful_cmp(min, x, y) | ^~~~~~~~~~~~~ tpm_tis_core.c:456:28: note: in expansion of macro 'min' 456 | burstcnt = min(burstcnt, len - count - 1); | ^~~ Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for OF_GPIO Depends on [n]: GPIOLIB [=y] && OF [=n] && HAS_IOMEM [=y] Selected by [y]: - GPIO_TB10X [=y] && GPIOLIB [=y] && HAS_IOMEM [=y] && (ARC_PLAT_TB10X || COMPILE_TEST [=y]) WARNING: unmet direct dependencies detected for MFD_STMFX Depends on [n]: HAS_IOMEM [=y] && I2C [=m] && OF [=n] Selected by [m]: - PINCTRL_STMFX [=m] && PINCTRL [=y] && I2C [=m] && OF_GPIO [=y] && HAS_IOMEM [=y] WARNING: unmet direct dependencies detected for I2C_K1 Depends on [n]: I2C [=m] && HAS_IOMEM [=y] && (ARCH_SPACEMIT || COMPILE_TEST [=y]) && OF [=n] Selected by [m]: - MFD_SPACEMIT_P1 [=m] && HAS_IOMEM [=y] && (ARCH_SPACEMIT || COMPILE_TEST [=y]) && I2C [=m] vim +/__compiletime_assert_293 +602 include/linux/compiler_types.h eb5c2d4b45e3d2 Will Deacon 2020-07-21 588 eb5c2d4b45e3d2 Will Deacon 2020-07-21 589 #define _compiletime_assert(condition, msg, prefix, suffix) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 590 __compiletime_assert(condition, msg, prefix, suffix) eb5c2d4b45e3d2 Will Deacon 2020-07-21 591 eb5c2d4b45e3d2 Will Deacon 2020-07-21 592 /** eb5c2d4b45e3d2 Will Deacon 2020-07-21 593 * compiletime_assert - break build and emit msg if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 594 * @condition: a compile-time constant condition to check eb5c2d4b45e3d2 Will Deacon 2020-07-21 595 * @msg: a message to emit if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 596 * eb5c2d4b45e3d2 Will Deacon 2020-07-21 597 * In tradition of POSIX assert, this macro will break the build if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 598 * supplied condition is *false*, emitting the supplied error message if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 599 * compiler has support to do so. eb5c2d4b45e3d2 Will Deacon 2020-07-21 600 */ eb5c2d4b45e3d2 Will Deacon 2020-07-21 601 #define compiletime_assert(condition, msg) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 @602 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) eb5c2d4b45e3d2 Will Deacon 2020-07-21 603 :::::: The code at line 602 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