From mboxrd@z Thu Jan 1 00:00:00 1970 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 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 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 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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 D353CC4345F for ; Thu, 18 Apr 2024 07:01:15 +0000 (UTC) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=arndb.de header.i=@arndb.de header.a=rsa-sha256 header.s=fm2 header.b=kHMXESl3; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=iXh/6N4b; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4VKpbG3GX4z3dFm for ; Thu, 18 Apr 2024 17:01:14 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=arndb.de header.i=@arndb.de header.a=rsa-sha256 header.s=fm2 header.b=kHMXESl3; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=iXh/6N4b; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=arndb.de (client-ip=64.147.123.148; helo=wfout5-smtp.messagingengine.com; envelope-from=arnd@arndb.de; receiver=lists.ozlabs.org) Received: from wfout5-smtp.messagingengine.com (wfout5-smtp.messagingengine.com [64.147.123.148]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4VKpZF1qTHz3cQT for ; Thu, 18 Apr 2024 17:00:20 +1000 (AEST) 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 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" Subject: Re: [PATCH] powerpc: drop port I/O helpers for CONFIG_HAS_IOPORT=n Content-Type: text/plain X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nathan Chancellor , Anders Roxell , Kees Cook , Baoquan He , Niklas Schnelle , Naresh Kamboju , clang-built-linux , Nick Desaulniers , linux-kernel@vger.kernel.org, Nicholas Piggin , "Aneesh Kumar K . V" , Jeff Xu , Mike Rapoport , Justin Stitt , "Naveen N. Rao" , linuxppc-dev , Dan Carpenter , Bill Wendling Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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