Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp229356rdb; Fri, 6 Oct 2023 01:25:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IERELCAcaMZcgq8K38E7mVg2bkc5L/+BoEWhpFNMKPLLLai3Yt2XFzlvFJ7I83/aogJ8gjq X-Received: by 2002:a67:ec53:0:b0:452:7617:a757 with SMTP id z19-20020a67ec53000000b004527617a757mr7238103vso.26.1696580731681; Fri, 06 Oct 2023 01:25:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696580731; cv=none; d=google.com; s=arc-20160816; b=vYulJotwyx6ywKojMqm7BiYsRl86qRFu5mcuCPJEgPS6pJVHBA9/xtZSdSOf2evPtx AvZktRTBVuVjOnhKFFmfKz0SwgSnZCcge50fUeR24IVyDBJMbeceusb6Z+ntnYlPEUme V17nSleYceHKifWvw0xlmjo6LwZVEigTBRc0j/XAj9gf65u9u6ni46E/cuBD3mvIxwnc cw1Fb+VQwgeYzapGI8PxUOEsF8IX9wrpME+UjoL4ZQZlQUmT+7tGgI/E5BblObgUNbxu AAC1r81w1XKxaFfQ9p9tBKS1RF9RouNLVUEmxt2usRKiiyNVa0ARPl9iTUsFyTlmOdNH YaPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=nbOSKt1M5wfrOeOjqOQSAHW4z9YBZRDUu4WMECkbO/Q=; fh=m7O3lcYgDzgSw7+rEnltTBVLwiNxDcQkgQmtxmwkKQ4=; b=SfJl/luzk4ne0c/o65vKCfa3+eJU89f3WU9izvO6NpGD6iJbtQf8c843cGVSwu8Tle ZjTkUXACy5q3X9WPRzbsQD6/ZRfKDWCqJaxh+5He0gw8dNtExcxE6XTaBRCvWn7Xa2Au SkFWtuuNRRR3sUmathA1jTzyxoBUFQCqzyU5MhdHdyc5JGawnLFsCaCyzj8l2oHzYoNf pW4CjMqEBAdJdczsoQ5/GZpWMMIFZHoKehj/0qvqm71m/uzqur5ye6cFzuEF6wr2L7L3 JxtF0Hvlo2UqEe/wHXa0fcWjCKRFEMsc8MDIP846YHMECQdSA2UymQABhHmdEtExVuLn kTcg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id m123-20020a632681000000b00573fe48c908si3274077pgm.128.2023.10.06.01.25.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 01:25:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id E0CD18064577; Fri, 6 Oct 2023 01:25:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231235AbjJFIZU (ORCPT + 99 others); Fri, 6 Oct 2023 04:25:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231131AbjJFIZE (ORCPT ); Fri, 6 Oct 2023 04:25:04 -0400 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9C47FF4; Fri, 6 Oct 2023 01:24:57 -0700 (PDT) Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 1qog8g-0002lT-00; Fri, 06 Oct 2023 10:24:50 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id C02E3C0198; Fri, 6 Oct 2023 10:05:46 +0200 (CEST) Date: Fri, 6 Oct 2023 10:05:46 +0200 From: Thomas Bogendoerfer To: Baoquan He Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, arnd@arndb.de, jiaxun.yang@flygoat.com, mpe@ellerman.id.au, geert@linux-m68k.org, mcgrof@kernel.org, hch@infradead.org, f.fainelli@gmail.com, deller@gmx.de, linux-alpha@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org Subject: Re: [PATCH v5 3/4] arch/*/io.h: remove ioremap_uc in some architectures Message-ID: References: <20230921110424.215592-1-bhe@redhat.com> <20230921110424.215592-4-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230921110424.215592-4-bhe@redhat.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 06 Oct 2023 01:25:29 -0700 (PDT) On Thu, Sep 21, 2023 at 07:04:23PM +0800, Baoquan He wrote: > ioremap_uc() is only meaningful on old x86-32 systems with the PAT > extension, and on ia64 with its slightly unconventional ioremap() > behavior. So remove the ioremap_uc() definition in architecutures > other than x86 and ia64. These architectures all have asm-generic/io.h > included and will have the default ioremap_uc() definition which > returns NULL. > > This changes the existing behaviour, while no need to worry about > any breakage because in the only callsite of ioremap_uc(), code > has been adjusted to eliminate the impact. Please see > atyfb_setup_generic() of drivers/video/fbdev/aty/atyfb_base.c. > > If any new invocation of ioremap_uc() need be added, please consider > using ioremap() intead or adding a ARCH specific version if necessary. > > Signed-off-by: Baoquan He > Acked-by: Geert Uytterhoeven > Acked-by: Michael Ellerman (powerpc) > Acked-by: Helge Deller # parisc > Cc: linux-alpha@vger.kernel.org > Cc: linux-hexagon@vger.kernel.org > Cc: linux-m68k@lists.linux-m68k.org > Cc: linux-mips@vger.kernel.org > Cc: linux-parisc@vger.kernel.org > Cc: linuxppc-dev@lists.ozlabs.org > Cc: linux-sh@vger.kernel.org > Cc: sparclinux@vger.kernel.org > --- > Documentation/driver-api/device-io.rst | 9 +++++---- > arch/alpha/include/asm/io.h | 1 - > arch/hexagon/include/asm/io.h | 3 --- > arch/m68k/include/asm/kmap.h | 1 - > arch/mips/include/asm/io.h | 1 - Acked-by: Thomas Bogendoerfer -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]