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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 831C9F531C4 for ; Mon, 13 Apr 2026 19:04:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E5FE8898F5; Mon, 13 Apr 2026 19:04:32 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="TFT3AYsa"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5BEE0898F5 for ; Mon, 13 Apr 2026 19:04:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1776107072; x=1807643072; h=date:from:to:cc:subject:message-id:mime-version; bh=jn6xWTxciiAEnItR5bjtfA0yMvt8iTbLUQUSG5szPbQ=; b=TFT3AYsaeBupXcetTsc2vnHmZVGuPF3XdfoHRwf+bGhXs65jfB5IT1Nq lStfPL7vOeUFUtfb0A2+CcH0Lo9HdVT3iqi2WdwREl0g5BFqrobQOUmcr vVs6V79u8SeUyyHP+jg4VNlCJqhiyLVMJpChxs1P0eI2ZvVdFWNtEaPHA o92+aG7T/yZAkH58PtqwM/lDkNvBvrrW3tMy8Q8ZKoISGyPFeZA8fi7mE QpCUoKRJPStELzF/LbyyMyqxHIS4UFUIcKnJNOZxV518Zh5f7T+NC+eVp UkPgpo6f/LoGn2CrAu/5dUXixLHq/0xo8P/y8zM9UdbRdXEQF1cctCPpH A==; X-CSE-ConnectionGUID: XPpT2LcYRjqtmIyjq51MRA== X-CSE-MsgGUID: sWGZz31oQO69pZHASh1YhA== X-IronPort-AV: E=McAfee;i="6800,10657,11758"; a="88498894" X-IronPort-AV: E=Sophos;i="6.23,177,1770624000"; d="scan'208";a="88498894" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2026 12:04:32 -0700 X-CSE-ConnectionGUID: kTRfm9hAQc2LsOFcIe4s0g== X-CSE-MsgGUID: ijiVWbh2QSmbejQ1kur8AA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,177,1770624000"; d="scan'208";a="229805074" Received: from lkp-server01.sh.intel.com (HELO 7b0b59b3a0d4) ([10.239.97.150]) by orviesa008.jf.intel.com with ESMTP; 13 Apr 2026 12:04:31 -0700 Received: from kbuild by 7b0b59b3a0d4 with local (Exim 4.98.2) (envelope-from ) id 1wCMaB-000000000ln-3M2X; Mon, 13 Apr 2026 19:04:27 +0000 Date: Tue, 14 Apr 2026 03:03:45 +0800 From: kernel test robot To: Matthew Brost Cc: oe-kbuild-all@lists.linux.dev, dri-devel@lists.freedesktop.org, "Thomas =?utf-8?Q?Hellstr=C3=B6m"?= Subject: [drm-misc:drm-misc-next 1/5] include/linux/compiler_types.h:706:45: error: call to '__compiletime_assert_354' declared with attribute error: BUILD_BUG failed Message-ID: <202604140222.WtXCFc4A-lkp@intel.com> User-Agent: s-nail v14.9.25 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" tree: https://gitlab.freedesktop.org/drm/misc/kernel.git drm-misc-next head: 5f183b0588eb508ab49022e26923d91698447226 commit: 37ad039fb3674a36dbf082fa5c864af1b791eccd [1/5] drm/gpusvm: Use dma-map IOVA alloc, link, and sync API in GPU SVM config: openrisc-randconfig-r054-20260413 (https://download.01.org/0day-ci/archive/20260414/202604140222.WtXCFc4A-lkp@intel.com/config) compiler: or1k-linux-gcc (GCC) 11.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260414/202604140222.WtXCFc4A-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/202604140222.WtXCFc4A-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from : drivers/gpu/drm/drm_gpusvm.c: In function 'drm_gpusvm_get_pages': >> include/linux/compiler_types.h:706:45: error: call to '__compiletime_assert_354' declared with attribute error: BUILD_BUG failed 706 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:687:25: note: in definition of macro '__compiletime_assert' 687 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:706:9: note: in expansion of macro '_compiletime_assert' 706 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:40:37: note: in expansion of macro 'compiletime_assert' 40 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) | ^~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:60:21: note: in expansion of macro 'BUILD_BUG_ON_MSG' 60 | #define BUILD_BUG() BUILD_BUG_ON_MSG(1, "BUILD_BUG failed") | ^~~~~~~~~~~~~~~~ include/linux/huge_mm.h:113:28: note: in expansion of macro 'BUILD_BUG' 113 | #define HPAGE_PMD_SHIFT ({ BUILD_BUG(); 0; }) | ^~~~~~~~~ include/linux/huge_mm.h:120:35: note: in expansion of macro 'HPAGE_PMD_SHIFT' 120 | #define HPAGE_PMD_SIZE ((1UL) << HPAGE_PMD_SHIFT) | ^~~~~~~~~~~~~~~ drivers/gpu/drm/drm_gpusvm.c:1555:52: note: in expansion of macro 'HPAGE_PMD_SIZE' 1555 | HPAGE_PMD_SIZE ? | ^~~~~~~~~~~~~~ vim +/__compiletime_assert_354 +706 include/linux/compiler_types.h eb5c2d4b45e3d2 Will Deacon 2020-07-21 692 eb5c2d4b45e3d2 Will Deacon 2020-07-21 693 #define _compiletime_assert(condition, msg, prefix, suffix) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 694 __compiletime_assert(condition, msg, prefix, suffix) eb5c2d4b45e3d2 Will Deacon 2020-07-21 695 eb5c2d4b45e3d2 Will Deacon 2020-07-21 696 /** eb5c2d4b45e3d2 Will Deacon 2020-07-21 697 * compiletime_assert - break build and emit msg if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 698 * @condition: a compile-time constant condition to check eb5c2d4b45e3d2 Will Deacon 2020-07-21 699 * @msg: a message to emit if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 700 * eb5c2d4b45e3d2 Will Deacon 2020-07-21 701 * In tradition of POSIX assert, this macro will break the build if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 702 * supplied condition is *false*, emitting the supplied error message if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 703 * compiler has support to do so. eb5c2d4b45e3d2 Will Deacon 2020-07-21 704 */ eb5c2d4b45e3d2 Will Deacon 2020-07-21 705 #define compiletime_assert(condition, msg) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 @706 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) eb5c2d4b45e3d2 Will Deacon 2020-07-21 707 :::::: The code at line 706 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