Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp289761lqr; Wed, 5 Jun 2024 06:19:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXieqR3Cp/nID+5LC86xj+QdL97ksSIWkQm7ztErRss3twg5AS/sn9mbGh9k5nkTcbqdQgmD2ChAiB1pMSY8Yb1ugjz1smI2KoNXMPoqw== X-Google-Smtp-Source: AGHT+IEDgJ8YpYUnV30DZqIuamchAvyVARreINjY9AYcP66mqncK/CoRILt3TOOmBMqYuXNTE3cU X-Received: by 2002:a50:9998:0:b0:578:4313:df10 with SMTP id 4fb4d7f45d1cf-57a8bc907d9mr1834036a12.31.1717593568670; Wed, 05 Jun 2024 06:19:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717593568; cv=pass; d=google.com; s=arc-20160816; b=cgEhSlrHp/EOxzwhX7D1MHExtGoOgMBiDwfb2t6Cxmsu4lJIQ2WBvtKsc9h8GeGBy0 mm5FjV9s+6qdlpw0pCGPSL0Vz/Z3NeOPhPOr9HyCc5jrHniNfhxoZJ7o6fdw3K8e/CAL InjROhcrsgeBTI3+kUzRzKkjGwPaoawwv4l7FR202xl938CKNz/V+ZRkuktJ26ZMu9yd bOkQWVns36rTCJLUA+RZnDHmlfJlDN+HQ1irkMvAy+PAe6VFwC5CJDOk+nSF4t19WQxJ 6VwKYnNeldnJE4wTP7A1rclcg/gbX9Hfx7rSc/YhPiJaceQFyeC4RcESyHXINN/MgLPD 61lw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=tHvDP1YnQ2a5bZnPdBWlQtpOvpsRGb4i30mb9AAuhBY=; fh=isppkg68D6nYulMk3AonYy7Wf256IAKx+gkFh7zBfrc=; b=m1a8ETtJYagFkkX/u1yKAsZZO8LiGGbpa8zL4bMlwuME4hnR+HFh/2no+KQa1zxyBO asTZr9mSugt1wPtsjlYSk9gel0YRC/v14MlEQPUUljr53e0W0reIoEU+JrbF9lWc3uU3 TnEGdE7XtivzqoJG2gwgMgMbhPI4jHg05iHMPBkf32YpTJ0CwuGcmipHaoMQ/Sk98sCM B8s7BFCDbtmvlig1p8WpR3S9MK4jJiQFLe82dR0m2InBMCBrlMbif5qKlPcbSxSCqkrW UGiwMpP2D8i3FpA+QIdkY1iT3mOD2W2i4cahH54VjL7kdXAT6cedxU/Qt/3u5PXdvG69 SwbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VjHeks8r; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202617-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202617-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a6e414cc5si2518518a12.376.2024.06.05.06.19.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 06:19:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202617-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VjHeks8r; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202617-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202617-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 163D11F2A09B for ; Wed, 5 Jun 2024 13:15:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A5DB19922C; Wed, 5 Jun 2024 12:34:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VjHeks8r" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2274B199226; Wed, 5 Jun 2024 12:34:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717590883; cv=none; b=iYFW6mEo3AC0wcljevNWuJdttZVibWbyaLJx+vPTqCrlkdsuLlBbiky1k1VyeyemNwBsiHP46aWYbPOnOZxfR/YRsbWCFxUXemjsY3eJ45rngn+L99PEIHoHeXMi8iLBQPCfUx/lsRO1eKPIKdqZPxu06wgjM5Vl3n6SKstMJ7Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717590883; c=relaxed/simple; bh=pNDoDNrZ3B1jVzbxPDtsTQTkg5Yf7y5alzwsLd7nATY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=XI/E+/+94QdzfVeam34nJU73WvFmgO0q2Qo3X5tMFOQa/A4jLTgQRBXTRw0tZ/uGtuW72pfurmi4bsAy/CTKjjHuWvJuixeFAVB91VDSynk4fvgtoC4t9olqSAyiXxYKtoHAYv3nZMB4407WjDAUHrq6YrQvQzIWd5msV1N4/fA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VjHeks8r; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A994FC3277B; Wed, 5 Jun 2024 12:34:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717590882; bh=pNDoDNrZ3B1jVzbxPDtsTQTkg5Yf7y5alzwsLd7nATY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VjHeks8rM0Vyb1HBC3lHJS7ZDLtV9+7yyNju/hRuQoRjaNfgMnSeEWcKm0moeHdkv gVE9ViubqElB+28i+G/Fwh3L1fYZBpYJjXCmbkWX7V0ibSY0q8dBlXkqLwm0a0S2cf XVJtrQVtzYhXt+2jTu4V9exwQzPLSAbFy30bfFOQ2gNb6Izun9or3RcxcAys+KEyuO Ueg1or2myKmucEc80obTYj1WY+EHhylIPU8UcmyL0TI244VlpfwDM+Z+HVGDKC8K0V tf9q+2NLKh3OAWWUKYEoPgytoR8A6b/gr7lhAFgh23P+xQ9dDDXWxr4QfKFKEolBec tEyEsmCOyLBzQ== From: Will Deacon To: Catalin Marinas , Nathan Chancellor , Jason Gunthorpe , Arnd Bergmann Cc: kernel-team@android.com, Will Deacon , Arnd Bergmann , Nick Desaulniers , Bill Wendling , Justin Stitt , "Mike Rapoport (IBM)" , Baoquan He , Peter Zijlstra , Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] [v3] arm64/io: add constant-argument check Date: Wed, 5 Jun 2024 13:34:32 +0100 Message-Id: <171758272445.3626757.4886694115081361174.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20240604210006.668912-1-arnd@kernel.org> References: <20240604210006.668912-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Tue, 04 Jun 2024 22:59:57 +0200, Arnd Bergmann wrote: > In some configurations __const_iowrite32_copy() does not get inlined > and gcc runs into the BUILD_BUG(): > > In file included from : > In function '__const_memcpy_toio_aligned32', > inlined from '__const_iowrite32_copy' at arch/arm64/include/asm/io.h:203:3, > inlined from '__const_iowrite32_copy' at arch/arm64/include/asm/io.h:199:20: > include/linux/compiler_types.h:487:45: error: call to '__compiletime_assert_538' declared with attribute error: BUILD_BUG failed > 487 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) > | ^ > include/linux/compiler_types.h:468:25: note: in definition of macro '__compiletime_assert' > 468 | prefix ## suffix(); \ > | ^~~~~~ > include/linux/compiler_types.h:487:9: note: in expansion of macro '_compiletime_assert' > 487 | _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:59:21: note: in expansion of macro 'BUILD_BUG_ON_MSG' > 59 | #define BUILD_BUG() BUILD_BUG_ON_MSG(1, "BUILD_BUG failed") > | ^~~~~~~~~~~~~~~~ > arch/arm64/include/asm/io.h:193:17: note: in expansion of macro 'BUILD_BUG' > 193 | BUILD_BUG(); > | ^~~~~~~~~ > > [...] Applied to arm64 (for-next/fixes), thanks! [1/1] arm64/io: add constant-argument check https://git.kernel.org/arm64/c/5c40e428aea6 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev