Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1294151lqb; Thu, 18 Apr 2024 06:06:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU/Zitzn7zgDqpIjNAj1KDknajJjDzC4h8u4xD+lGeiRw1/j0bzP9jdXWadSAixZYWeMkd+/5yF4EV2kREt2xO6Sj1BqF4vD0nhkbifJw== X-Google-Smtp-Source: AGHT+IHw7H5KY0vUSQNGun6CGQ1wAK4uV54UIJL5+Xhih7YskAqt0jzY28Q6GZUubWt//egvGvH8 X-Received: by 2002:a05:6a20:d42f:b0:1a7:427b:8216 with SMTP id il47-20020a056a20d42f00b001a7427b8216mr2656150pzb.55.1713445585298; Thu, 18 Apr 2024 06:06:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713445585; cv=pass; d=google.com; s=arc-20160816; b=zeJHUmHapLaPPUcB6f+J8psKcorxjEudIRv8dQ3JnUuTudF/5Y6iw4r5PBeT7RWBwF 61mQxvV61BttO0ywSioQE/4Zqj0YKlL+SApful2+sict0sKth9DJb4efiM2PiTcnf58v zYRoWigGvsC/uysVT6XBuG3EBDdKLMXBPJqw7yuNxC0XLSef62gPW7Z3fHQZeOcR6v6K 9M7SZ/XIyo4LDkTl4AO56d5kPtVM6thSbsWIB2SAA28YeoSSkuzLQFmj6iHFLiRLKqys zXOzmwSsfWGVK9z3wsQsX/qu1N5JynOhYEpqxxe/dEWVbNzGCIYQnfh5LJotL+c92tuy 0EFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=vNeZ/qdX3LOH0LHZJhAOcqMpEwfgHMqhf2DU3H1Xszg=; fh=rSWCAQGyGvFLMFy+VjB8K7o4FxWh68koreDF2K4jWtk=; b=Vr8vgEgqe2iBEm3kOjyMx2jGfUNQ1sOKJae7Fd5KTH65eaViaHIkNegSnLmtdlH+1o tUIdtIHMwZpuQhUX/9Ib/VfL4cH8nCOPaRpTRP7PDDucjX4CQd+785TvVVIM8roLetjw /HPNSvXX/QMlrKC6Cg89PVcChx0IDCPhp1yvueo6O7dsP8KREYaqVuZ8N0IpmuvewCha VvLvyJRfDe9lHdEagqJl/3OHD68sZEvyPqTOCwHkLMwvU494yySLGBrqgU1mh3p6skjm ovf5fOT0Q6em5nk1zCSVdJwyOhj6QyWBu/CUtv8XYyPr6Glq//AST+HsyHj/4O9QnTd7 OjEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=q9TFzCh7; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-150123-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150123-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s6-20020a62e706000000b006e6be504abcsi1426896pfh.90.2024.04.18.06.06.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 06:06:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150123-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=q9TFzCh7; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-150123-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150123-linux.lists.archive=gmail.com@vger.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0F7D5B21A25 for ; Thu, 18 Apr 2024 13:03:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DB2315F323; Thu, 18 Apr 2024 13:01:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b="q9TFzCh7" Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (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 2507215CD50 for ; Thu, 18 Apr 2024 13:01:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713445302; cv=none; b=uuE83vdJOrEb5eAtQIYWIPxzQ+SjOB2ulzvT6JdJ0NwfJTnWaDOkyThkQ95RuF48NlE2CRy9pfQoDT+lV2NHZpwU/WhQq+W8S5Dphpxc9HIzRm6qJKXifLtFxFiy3G3lz8WdtV/dbzvJGC29b8EjhnywAcwn76WVyDjuP9F5jtE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713445302; c=relaxed/simple; bh=/XJcPlw0F03P3amsg0KmHILuo/lC6Cw5M2DfUOpYyuc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=AwKcmnXNebKNtfA9d2O19NiZgP1paCFbpNdRjnlSjxHTj1BpGQTFhnDHOl0JHkxAt480EWEgXca3vxKpFVfWK2ZFZ97hoEqxBVabUVx1XvM0XHZLmi2hJqprzpcDZsqimcCYZO88uznJghjQuLc3GdssyyrizxI3APh6T8nDHYE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au; spf=pass smtp.mailfrom=ellerman.id.au; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b=q9TFzCh7; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1713445289; bh=vNeZ/qdX3LOH0LHZJhAOcqMpEwfgHMqhf2DU3H1Xszg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=q9TFzCh7EhJg+m9fj6qudX6Ks+Uct3uWBknTCV37uU8cbakd81QmCpmVRG0NOIxQ5 uNQKi+KMBjdkP9ELAPneTQiXG4RWeLhPSORHg+e8+iojKQsMo6Vww7EZd4Vo8nYxXj i9C+ou7rNcmrbkiJh9KKLdHzBGmSWTBXLplv230qwENBOzJZa0EmJhDvcx7MlY6f+x Kxij9OwVQI817aMiTT0xC/Q13B2je9ictqe0EMnSezFUNR9C4h+0VWvJD9vykrSyNe Xx2VRrYHX09AAOcTymVN0OEteduzRVIKXU3HOEjff+X4D+7mpxgl26SJk8w/e/NwSp b5yKqkqbp1D7w== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4VKyZw5zyrz4wyx; Thu, 18 Apr 2024 23:01:28 +1000 (AEST) From: Michael Ellerman To: Arnd Bergmann , 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 In-Reply-To: <59473eb6-1707-4bbf-85a3-ba4835f3ee7f@app.fastmail.com> References: <20240416153331.1617772-1-arnd@kernel.org> <878r1bb2zj.fsf@mail.lhotse> <59473eb6-1707-4bbf-85a3-ba4835f3ee7f@app.fastmail.com> Date: Thu, 18 Apr 2024 23:01:25 +1000 Message-ID: <8734ribza2.fsf@mail.lhotse> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain "Arnd Bergmann" writes: > 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. Yes you're right. The above fixes the gcc build, but not clang. So I think I'll just cherry pick f0a816fb12da ("/dev/port: don't compile file operations without CONFIG_DEVPORT") into my next and then apply this. But will see if there's any other build failures over night. cheers