Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1118557lqb; Thu, 18 Apr 2024 00:00:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4TePaSw8ddASWV999J5Po7uG/IMSjaUmpTBsBdslij5jOM3/oRvR2x7xkqBSSI9+E9+vln+AEL9/iY4pfyF8uOFRPpZSKsA89+kU28Q== X-Google-Smtp-Source: AGHT+IEolUz2XpALw0DqN2sDzVjBUM7wKDj6UKSQIzv5GmMaISx5YEYt5seb3mxdu3J2yK7jmBFZ X-Received: by 2002:a17:90a:2f66:b0:2a2:88d:cdcb with SMTP id s93-20020a17090a2f6600b002a2088dcdcbmr2081651pjd.26.1713423630698; Thu, 18 Apr 2024 00:00:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713423630; cv=pass; d=google.com; s=arc-20160816; b=W2UAlh+e1AjbDH4HurHtin5p9FqBF9e+jMECZSm+uqU1CsoDW0Vy2hajH9Z+zf4T6k iABdB9n4NFlN+czQCuic4EgalEM57dL6WvtS/DD1gwgUb41mJPrq+NSe3BRIDC3mo9hd PcY0gWA0yLjS+F+1P2jMpkgwsq04xly1JjKcge2GF4ivLf8o7oCUvjiJzoL9Q63707fD yLG5aBQ6Ckxm5yYA2lis9U+U+MelohQe/Pyfeo3yFrcsaCSEkZlLu54bnTwont2XiazY HbToPqNbIdLh6SPdEKbS20TDMQB3tQFDCvmTFMkVRmqLMvwpCV5xxUy5o9z6fmzVTZp9 fuew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=KbwfIs/6RdZ169pWLYEvYHb3ipb41NqCczuUbSCEOtU=; fh=HuBELYbZso3N3ZszBXquO8gk+x/faLPVi/mlbN8XwuA=; b=UDDxWW+zijXTy+M7ND3zLDLxUd1ssXPK8j66HaQsAL9IYdcJi7fHWExxD9qWmTErCp fYQlPHeYjss25Wml3aMN3ZH6TN+f8FxFvZRkfN+sN/Lx5+2JRMOlBolBCcB+FrjLuDLv RH7bjvJ9dJd97/v4H9TpDm3xfXXBMpo9DPaoLmOsPmKjxSn5jDjQl1BkWJ/n8d8QfXDF w3/6ZhaaccSgTQxI/w/ElEn4ewVXc6l45hd4JCRpl08vu94lO3m0dAqqzo9PlqlcTd9f 2wYIsIz9Pn4yMP7v5nkvllSduc6akt6V+a/yUQi78DgE9nDA9NBNurCuLcys8ftnwz6w 0XeA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=kHMXESl3; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="iXh/6N4b"; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-149627-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149627-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v19-20020a17090a459300b002abf2247a04si286688pjg.75.2024.04.18.00.00.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 00:00:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149627-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=kHMXESl3; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="iXh/6N4b"; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-149627-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149627-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5617D28328B for ; Thu, 18 Apr 2024 07:00:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E7C239FFD; Thu, 18 Apr 2024 07:00:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="kHMXESl3"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="iXh/6N4b" Received: from wfout5-smtp.messagingengine.com (wfout5-smtp.messagingengine.com [64.147.123.148]) (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 644E52CCC2 for ; Thu, 18 Apr 2024 07:00:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.148 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713423624; cv=none; b=rT/8hZ9d7SZGucwUBdjSfnMgsLtXTqPyKiLtvU0TWUVyaB65ZglqDh4zzMfmpNsTJrdK6K6HN2IyepJm0RIcFnmakUZx4Ukz/lSt2PTPo/BpmnOvWB8stMwlUxezqb+anpC2tRWmw04ETHHjznXtDw0wA0nykSf/YO9w02B9xSs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713423624; c=relaxed/simple; bh=60KQnMRsZltNeF3WdPaOHWiTq74SekOkOIysB6X5Wv0=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=ffixiDQ9o3dazzbL+thV3Bt54ovQ8ufBWmPBT8tYtUFI7MeM7O8O5bYku8yh7CbYtnyuXJYh9cOCjTBNtX3GAGoLW/2cJ0mgkDFqioSH/lH3vQFpHPmhJI14sOKsXuxS6FI0nVhewzS/nMzACDv7KAIIyYSQTLTfEhJ0IONrvVA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=kHMXESl3; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=iXh/6N4b; arc=none smtp.client-ip=64.147.123.148 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.west.internal (Postfix) with ESMTP id A8A881C00191; Thu, 18 Apr 2024 03:00:14 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Thu, 18 Apr 2024 03:00:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1713423614; x=1713510014; bh=KbwfIs/6Rd Z169pWLYEvYHb3ipb41NqCczuUbSCEOtU=; b=kHMXESl38JFREZFyRJU/hhID99 e5wf7SLLXpyo9VQI/ZfBb8n8s2Io+riBvulUuy7sycVkoy/p142vHqKuuUEAwroU 3/P7QIMsgmHPxDQNIm0FWJQf224unfL7BKe/Vf6H08e2oQZQ89OnxIDhES5tX2I1 KARD2IrClQHpPDpW7iu2Fklbbp+yoexldewV0MsdSl9FlTGi/WenvIVGVZN+0hmh BlEFF29+wsml8l5RYhDbdNYFxuQ2It6SF4d75ZVLMD8tVDR/XEjw+BLNnj3DOjM5 NqjcXK5uEIWElTEyIy+oIJcitcxZzxxHcWDOHtUGi63L3IdN6GpgU/TQGulA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1713423614; x=1713510014; bh=KbwfIs/6RdZ169pWLYEvYHb3ipb4 1NqCczuUbSCEOtU=; b=iXh/6N4bWlks9FcbDfFX3qRLp7064tMTwKDCO3ZNY+J4 h9b8HTUpragYfJmZOR6RKhkxnroEx5sf+EqpyiKOzuMprP5AY/uiRysmwEt20c+z k1EJ9fInFWstN5A200FDv/5RMXTg0XTK8uyIysqkqnvsBLWNKCx7OI1ZUTHkoeGm ha3rvRvXYptu6IwWi5qvUp2XdvFvQa1z8b7IiwclKASuHdyz8Dzz3qHytC5orvdo sNqgYGlaM31f/NMd7lveKdFSGwQ8hpZLrlAqkjqTDaH2Z3PXJg+wopIyQV3Z2jRM LBzS0B4xZkuTl/TSy8ZCrQ0gWWpONKGtTAcNlt+ROQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudejledgudduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 96D7EB6008F; Thu, 18 Apr 2024 03:00:13 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-379-gabd37849b7-fm-20240408.001-gabd37849 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <59473eb6-1707-4bbf-85a3-ba4835f3ee7f@app.fastmail.com> In-Reply-To: <878r1bb2zj.fsf@mail.lhotse> References: <20240416153331.1617772-1-arnd@kernel.org> <878r1bb2zj.fsf@mail.lhotse> Date: Thu, 18 Apr 2024 08:59:52 +0200 From: "Arnd Bergmann" To: "Michael Ellerman" , "Arnd Bergmann" Cc: "Naresh Kamboju" , linux-kernel@vger.kernel.org, linuxppc-dev , "Aneesh Kumar K . V" , "Anders Roxell" , "Kees Cook" , "Niklas Schnelle" , clang-built-linux , "Nick Desaulniers" , "Nathan Chancellor" , "Jeff Xu" , "Naveen N. Rao" , "Dan Carpenter" , "Nicholas Piggin" , "Christophe Leroy" , "Bill Wendling" , "Justin Stitt" , "Baoquan He" , "Mike Rapoport" Subject: Re: [PATCH] powerpc: drop port I/O helpers for CONFIG_HAS_IOPORT=n Content-Type: text/plain On Thu, Apr 18, 2024, at 08:26, Michael Ellerman wrote: > Arnd Bergmann writes: > @@ -692,6 +692,7 @@ static inline void name at > \ > #define writesw writesw > #define writesl writesl > > +#ifdef CONFIG_HAS_IOPORT > #define inb inb > #define inw inw > #define inl inl > @@ -704,6 +705,8 @@ static inline void name at > \ > #define outsb outsb > #define outsw outsw > #define outsl outsl > +#endif // CONFIG_HAS_IOPORT > + > #ifdef __powerpc64__ > #define readq readq > #define writeq writeq I had included this at first, but then I still ran into the same warnings because it ends up pulling in the generic outsb() etc from include/asm-generic/io.h that relies on setting a non-NULL PCI_IOBASE. Arnd