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 35106E7717D for ; Tue, 10 Dec 2024 01:07:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 29B1C6B00CD; Mon, 9 Dec 2024 20:07:46 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 27CA16B00CE; Mon, 9 Dec 2024 20:07:46 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 139186B00CF; Mon, 9 Dec 2024 20:07:46 -0500 (EST) 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 EBA656B00CD for ; Mon, 9 Dec 2024 20:07:45 -0500 (EST) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 4E6BC140125 for ; Tue, 10 Dec 2024 01:07:45 +0000 (UTC) X-FDA: 82877261418.23.17F3BBF Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by imf19.hostedemail.com (Postfix) with ESMTP id F11371A0003 for ; Tue, 10 Dec 2024 01:07:19 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=f8pV97kt; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 192.198.163.7 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=1733792840; 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=AyVLQxnP6YupW9iLY1pgZNAcZInbuM71DUnWUFuizZc=; b=aYYKWJ9L4tOGYvgk1W+lRBGR2hOKW6vj8BENl4+W69XUrkA38V4TNHxM1EFA3zyhT00pP5 hUml1w62p9gidyHTW+/S1JZvLhdK7d60YgeyXIA2YXjae5n63AAW1wKLjad7BRMDJRK1ER d+sR6TfsdXUciNeJPeI8RpXrp3bKWIQ= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=f8pV97kt; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 192.198.163.7 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1733792840; a=rsa-sha256; cv=none; b=JsXQVz9ZkXXeUuaWDrBub/P17QRdbPbbS7cJbhJwSIkvbmapb3ouoUf10cg0qXJo7qYk0b U3WCHsOv/535yyi4etWtm+XE8WPiz3jWDMF1oSIgLQyC/F6SBF4C2QJSV2PAdvbe6ZulTb NRrn5JZZeaJWFIT5pLFhfYrEDefdcEo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1733792863; x=1765328863; h=date:from:to:cc:subject:message-id:mime-version; bh=6a0yLxmbvZFKnnfk2jiuvZOLzL8FTj+pZ2VWmozgUt0=; b=f8pV97ktkQiW0LdZY6h+QMZc4OV+vqL+lIt0DJ2TuXhHlSD1LXglxE07 bRnTWpSs7l5O0F3vmXCmpuFLhbV7rAT+ubNr45VZna0uxTvX5J2WiR7oi +QxI6JxIOQtbc4mPmLtL0i3M72LnItUbr4MzKZVbripOEwLYPIPZNunKI yF8lar57KXCmU1D4OPAg/sRQrxkoL5o0AX9BIhauQO5oPLiwa1WLgf/72 gRCui9Zvu5RohRR+JaAS7idP0uY2wh9JLuCrz+SLqzQt99PWDfOFclA0x DiuEWBFdwraWdh0bWDO15I9Kl+R2YY50afgdPfMzZLGDuI167i2KHnzmQ g==; X-CSE-ConnectionGUID: olUhgHxhQta+PqxeePP8ew== X-CSE-MsgGUID: YtU/EMFvRLGNIngRXTjrPg== X-IronPort-AV: E=McAfee;i="6700,10204,11281"; a="59514324" X-IronPort-AV: E=Sophos;i="6.12,220,1728975600"; d="scan'208";a="59514324" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Dec 2024 17:07:41 -0800 X-CSE-ConnectionGUID: IxjS3nFUT46v11idCxqksg== X-CSE-MsgGUID: tpv8kBi1TyaPOcDhCC355g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,220,1728975600"; d="scan'208";a="95725807" Received: from lkp-server01.sh.intel.com (HELO 82a3f569d0cb) ([10.239.97.150]) by fmviesa009.fm.intel.com with ESMTP; 09 Dec 2024 17:07:39 -0800 Received: from kbuild by 82a3f569d0cb with local (Exim 4.96) (envelope-from ) id 1tKoiv-0004zN-26; Tue, 10 Dec 2024 01:07:37 +0000 Date: Tue, 10 Dec 2024 09:06:53 +0800 From: kernel test robot To: David Laight Cc: oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List Subject: [linux-next:master 2241/2462] include/linux/compiler_types.h:542:45: error: call to '__compiletime_assert_413' declared with attribute error: clamp() low limit source_min greater than high limit source_max Message-ID: <202412100848.HfPEKlvV-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: F11371A0003 X-Rspam-User: X-Stat-Signature: c4wmqwunbpw1b39r9ibisdmppnodswn6 X-HE-Tag: 1733792839-303466 X-HE-Meta: U2FsdGVkX1/mjI0XOppmz9AIT/2xbwfLbcH4ICTAqtVji0YJbLN5Qsd3E5uDcUB6IR/mDlXQQnXdnJwRfxFb5snuV15Cu343JVUpbV0lecJnADx5d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3T9REuxvM+S/WR+p85Jvd4Jy0yLDYTcxsKj90jv8eDE+/i7FAzL07YOss3jVH+DvhU8NEPuroQdfsah9Y0Yq93b0KmPACzSdHSV3V84aZ6+3dcsdfYz/2y2O/9Z3aV7nehxQcSUxCRqgzWj18Id90CSBea8qEBdbWS+YMcvaE8G1NoVqfKWVjcR3p39dV6EMHEKhCpGys1gsgVte 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: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: d1486dca38afd08ca279ae94eb3a397f10737824 commit: 58febb0202b31e9e8d55a603a70f7f131455ef2f [2241/2462] minmax.h: use BUILD_BUG_ON_MSG() for the lo < hi test in clamp() config: parisc-allmodconfig (https://download.01.org/0day-ci/archive/20241210/202412100848.HfPEKlvV-lkp@intel.com/config) compiler: hppa-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241210/202412100848.HfPEKlvV-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/202412100848.HfPEKlvV-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from : drivers/gpu/drm/i915/display/intel_backlight.c: In function 'scale': >> include/linux/compiler_types.h:542:45: error: call to '__compiletime_assert_413' declared with attribute error: clamp() low limit source_min greater than high limit source_max 542 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:523:25: note: in definition of macro '__compiletime_assert' 523 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:542:9: note: in expansion of macro '_compiletime_assert' 542 | _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:109:9: note: in expansion of macro 'BUILD_BUG_ON_MSG' 109 | BUILD_BUG_ON_MSG(statically_true(ulo > uhi), \ | ^~~~~~~~~~~~~~~~ include/linux/minmax.h:116:9: note: in expansion of macro '__clamp_once' 116 | __clamp_once(val, lo, hi, __UNIQUE_ID(v_), __UNIQUE_ID(l_), __UNIQUE_ID(h_)) | ^~~~~~~~~~~~ include/linux/minmax.h:192:28: note: in expansion of macro '__careful_clamp' 192 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi) | ^~~~~~~~~~~~~~~ drivers/gpu/drm/i915/display/intel_backlight.c:47:22: note: in expansion of macro 'clamp' 47 | source_val = clamp(source_val, source_min, source_max); | ^~~~~ vim +/__compiletime_assert_413 +542 include/linux/compiler_types.h eb5c2d4b45e3d2 Will Deacon 2020-07-21 528 eb5c2d4b45e3d2 Will Deacon 2020-07-21 529 #define _compiletime_assert(condition, msg, prefix, suffix) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 530 __compiletime_assert(condition, msg, prefix, suffix) eb5c2d4b45e3d2 Will Deacon 2020-07-21 531 eb5c2d4b45e3d2 Will Deacon 2020-07-21 532 /** eb5c2d4b45e3d2 Will Deacon 2020-07-21 533 * compiletime_assert - break build and emit msg if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 534 * @condition: a compile-time constant condition to check eb5c2d4b45e3d2 Will Deacon 2020-07-21 535 * @msg: a message to emit if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 536 * eb5c2d4b45e3d2 Will Deacon 2020-07-21 537 * In tradition of POSIX assert, this macro will break the build if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 538 * supplied condition is *false*, emitting the supplied error message if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 539 * compiler has support to do so. eb5c2d4b45e3d2 Will Deacon 2020-07-21 540 */ eb5c2d4b45e3d2 Will Deacon 2020-07-21 541 #define compiletime_assert(condition, msg) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 @542 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) eb5c2d4b45e3d2 Will Deacon 2020-07-21 543 :::::: The code at line 542 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