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 CB807C02181 for ; Fri, 24 Jan 2025 04:43:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5B43928003A; Thu, 23 Jan 2025 23:43:51 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 53DC3280039; Thu, 23 Jan 2025 23:43:51 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3B6B928003A; Thu, 23 Jan 2025 23:43:51 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 15254280039 for ; Thu, 23 Jan 2025 23:43:51 -0500 (EST) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 93343B1090 for ; Fri, 24 Jan 2025 04:43:50 +0000 (UTC) X-FDA: 83041102620.30.888B38A Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by imf17.hostedemail.com (Postfix) with ESMTP id 7756840010 for ; Fri, 24 Jan 2025 04:43:47 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=jVzlN72h; spf=pass (imf17.hostedemail.com: domain of lkp@intel.com designates 192.198.163.12 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=1737693828; 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=PkVa0lVZPuUpaORxgDBpYO3t8Tuyu/3xjWovytiRX1M=; b=QjkymeGS82p1o9CRCE3DK7PJfUGA2jdE6tS6aVW2gcqUPW0pRdUjkGSJIlz14M+ID21Tje vaO5cQDbnZls6gqUSBRFk5U3FY8wZtlCDzd/lhJbiY7Qini4211S7Dv1emI0Molm+S3UUy +gfIxR99jV85XpheYdZbUwGnnFT5Flw= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=jVzlN72h; spf=pass (imf17.hostedemail.com: domain of lkp@intel.com designates 192.198.163.12 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=1737693828; a=rsa-sha256; cv=none; b=v0J9WXUTUFgWAS2EmGLQlTqQIzsdRVIMLtJvyzrSs3X6LsoxKO08gdUi6OOqNhuZqwO0XP HWfQC2bdTQuTJ4g11RomOk2oZXThG9DW4ksHASO/Ckeh3uZ/JiabDK8awVWVeFC8URuH5Q 7Nc0yorUMURI4SSMqqgsGaBWCLDhyBU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1737693827; x=1769229827; h=date:from:to:cc:subject:message-id:mime-version; bh=9On3gjIA4HdE0rbrfd0ID6ZJI8FUv3UylDY3EDGKUcU=; b=jVzlN72h/26Lk11NQ0f7S6SkGA7W67qvNRhhkKC7D6z5zTx5MXPfkxWA vAF9yTRYLhDwmefN3T/jNAhHQotHxxb4GQA21x/kymFH/p1twleXZGnk/ 1n2NDU909fxktY0ke9W3qx1LbJWg/iB0FLBvTKg3UxEghNnw5Ou6Y2oDs VjR7LM31QVSaonZHRTkmaV+GPvNv8wmVTk/TsVJCJH86WT152GB38yXGQ lbx9lqkQx5SjKd0HazHt5l/0u5TZKNvtpkwW+zld3KBfKhUyacxMhy+MA 2ltzdtSSIG09A27F2avL4s+vN4281KsTRnMpuu4q8svVOiC4ARjIuFAIo Q==; X-CSE-ConnectionGUID: dQ450CbvQviqhsQ0QJt5CQ== X-CSE-MsgGUID: nMRWbxZGSUGUvDOZqb5xlg== X-IronPort-AV: E=McAfee;i="6700,10204,11324"; a="42149123" X-IronPort-AV: E=Sophos;i="6.13,230,1732608000"; d="scan'208";a="42149123" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jan 2025 20:43:46 -0800 X-CSE-ConnectionGUID: 75XaK9maRi62Eg6GYiWxig== X-CSE-MsgGUID: 3VmCCH6ASvKxpIIg63FSrA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,230,1732608000"; d="scan'208";a="107590763" Received: from lkp-server01.sh.intel.com (HELO d63d4d77d921) ([10.239.97.150]) by fmviesa007.fm.intel.com with ESMTP; 23 Jan 2025 20:43:45 -0800 Received: from kbuild by d63d4d77d921 with local (Exim 4.96) (envelope-from ) id 1tbBXi-000cAN-2o; Fri, 24 Jan 2025 04:43:42 +0000 Date: Fri, 24 Jan 2025 12:43:03 +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 8893/10150] include/linux/compiler_types.h:542:45: error: call to '__compiletime_assert_375' declared with attribute error: clamp() low limit source_min greater than high limit source_max Message-ID: <202501241212.P5WoAaw5-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 7756840010 X-Stat-Signature: 5duozmipdf9dq4chxrjnnc818tn43ht1 X-Rspam-User: X-HE-Tag: 1737693827-720694 X-HE-Meta: U2FsdGVkX194I3ly1QyfPWDIyyf+Ky0YuA6YcfJ+p+DU60RorocFGalX3OKOMGM6IfbAvdRoGzROqFkdldLfoWkOn0/9cGQRdnJOl1vH5XiR2P44NuqfZxvD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H0QVP6u+Z8otMcki6Eel05gXr6aVMSq1Ey3dJtGC1zg2K3fUz2g+d1Hjv+TEegm0zVzmMJJRfhuzDpEl8xhUSuVI4aV5Fg52FH1Do9y9GScDuiSWTpxkfa1zHZ8IuohLbMpftM/pYR1R8kOGUCvw2orMXLariEAV2oLKVatos2WGSCZMm3Cl5EmZNQAKSmZ0Q== 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: 853d1f41ba73e78d22e7075d9a95670aab187eba commit: 37f375aab0c585388b90d1af6968454fc2769cb9 [8893/10150] minmax.h: use BUILD_BUG_ON_MSG() for the lo < hi test in clamp() config: parisc-randconfig-r131-20250123 (https://download.01.org/0day-ci/archive/20250124/202501241212.P5WoAaw5-lkp@intel.com/config) compiler: hppa-linux-gcc (GCC) 14.2.0 reproduce: (https://download.01.org/0day-ci/archive/20250124/202501241212.P5WoAaw5-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/202501241212.P5WoAaw5-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_375' 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_375 +542 include/linux/compiler_types.h eb5c2d4b45e3d2d Will Deacon 2020-07-21 528 eb5c2d4b45e3d2d Will Deacon 2020-07-21 529 #define _compiletime_assert(condition, msg, prefix, suffix) \ eb5c2d4b45e3d2d Will Deacon 2020-07-21 530 __compiletime_assert(condition, msg, prefix, suffix) eb5c2d4b45e3d2d Will Deacon 2020-07-21 531 eb5c2d4b45e3d2d Will Deacon 2020-07-21 532 /** eb5c2d4b45e3d2d Will Deacon 2020-07-21 533 * compiletime_assert - break build and emit msg if condition is false eb5c2d4b45e3d2d Will Deacon 2020-07-21 534 * @condition: a compile-time constant condition to check eb5c2d4b45e3d2d Will Deacon 2020-07-21 535 * @msg: a message to emit if condition is false eb5c2d4b45e3d2d Will Deacon 2020-07-21 536 * eb5c2d4b45e3d2d Will Deacon 2020-07-21 537 * In tradition of POSIX assert, this macro will break the build if the eb5c2d4b45e3d2d Will Deacon 2020-07-21 538 * supplied condition is *false*, emitting the supplied error message if the eb5c2d4b45e3d2d Will Deacon 2020-07-21 539 * compiler has support to do so. eb5c2d4b45e3d2d Will Deacon 2020-07-21 540 */ eb5c2d4b45e3d2d Will Deacon 2020-07-21 541 #define compiletime_assert(condition, msg) \ eb5c2d4b45e3d2d Will Deacon 2020-07-21 @542 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) eb5c2d4b45e3d2d 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