From patchwork Tue Feb 21 06:07:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoquan He X-Patchwork-Id: 13147416 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96888C636D7 for ; Tue, 21 Feb 2023 06:07:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BEA4B6B0071; Tue, 21 Feb 2023 01:07:37 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B9A8B6B0072; Tue, 21 Feb 2023 01:07:37 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A62836B0073; Tue, 21 Feb 2023 01:07:37 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 96A676B0071 for ; Tue, 21 Feb 2023 01:07:37 -0500 (EST) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 5DDD91A0E91 for ; Tue, 21 Feb 2023 06:07:37 +0000 (UTC) X-FDA: 80490267354.22.D20C8EF Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf10.hostedemail.com (Postfix) with ESMTP id 12903C0007 for ; Tue, 21 Feb 2023 06:07:34 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="aQ1i/cSt"; spf=pass (imf10.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1676959655; a=rsa-sha256; cv=none; b=M1+tJKdgjMV2C2gFGRRKrAS/5Q0MtbT3h/Sr+vn8WE+WIDR/eTWY9RFc9sT260i6tmdCmB 9x/nWKkioHxHI5kpGy6dVtNlH24Z/vmjHr2JvoA6RRwuH4gj65UAoCaS3IdZ0GTpZPTKjl UsidJ6R4nM45UQWRqGGlM3GZPiPv49I= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="aQ1i/cSt"; spf=pass (imf10.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1676959655; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=A2giW3bT8cm75k/LWtJ7T2CNx/fQyX6UZRlac4+D5AE=; b=VfhDd+gfTulPmmSe9mFWGh7Ca3ZDfNzbeaT3Il13jJ3sT7bEVlAZveMtGMgQJAlmiIKsfE KCIcMfwvaQPiJi4BmxAfuXsC7wisBD6L1BTvVCPsJs/kdJLk1I8rIp0DMPKusDQeU7beLn r9y+fUG/BjZ4WKTvN21HxXPi95Z/wD8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676959654; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=A2giW3bT8cm75k/LWtJ7T2CNx/fQyX6UZRlac4+D5AE=; b=aQ1i/cSt9qU6/pfKmUBf7U2MkOdWKcDcnDgHYRYvuKTtodLkdPaIMS46ckJ423IScBUq7P u6az3l1Ydob2L4HjzGpHOjlRqRFyqHLqJu1ttXOn4esapQ+YlEfKVXiu9iSmczoJMyWeor QKazWAaWpvvmjJ4e/zHZ5EH5jlCU+kk= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-315-3v5XzhKZNzeoIoT0UyYacw-1; Tue, 21 Feb 2023 01:07:30 -0500 X-MC-Unique: 3v5XzhKZNzeoIoT0UyYacw-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 46CE11C04347; Tue, 21 Feb 2023 06:07:30 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-13-7.pek2.redhat.com [10.72.13.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4E9E1492B04; Tue, 21 Feb 2023 06:07:26 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, arnd@arndb.de, hch@infradead.org, mcgrof@kernel.org, Baoquan He Subject: [RFC PATCH 0/2] arch/*/io.h: remove ioremap_uc in some architectures Date: Tue, 21 Feb 2023 14:07:21 +0800 Message-Id: <20230221060723.26291-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Rspam-User: X-Rspamd-Queue-Id: 12903C0007 X-Rspamd-Server: rspam01 X-Stat-Signature: suiemgroupya5qrc3abpk5i71ch4cquq X-HE-Tag: 1676959654-894647 X-HE-Meta: U2FsdGVkX1+iZScbk2J35oUQu6wXGEqwY6IY433QjeS7BcOqbCcvFX9mf7WnFDnE/kcUWw2b5YbBAM4dQ62GOajKbhwQ/4y/x0HhOfkTUejKXa2eH8jLAUZMbRmCX1zGz1LhlVMH/9yHlzTEhF1MKD75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4A57epKhMyqDo5mrW6NZ51fS3Mfi8evGdNteekmXK+Z6xiEzxWkPwnkBAzGT90WY+wdx6PXYgcxRakxaq+vcrhL5inyG7C9nUIlkqqAalLAA6YnYUfSV9iDPIZxI88a3ZloOQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: In a patchset reviewing, Arnd suggested removing arch specific ioremap_uc() and using default one defined in asm-generic/io.h instead, other than x86 and ia64. Please see below link for more details: https://lore.kernel.org/all/056cc71f-7fb9-4d38-a442-a05de6f7d437@app.fastmail.com/T/#u And Arnd also provided an old link where people earlier discussed this. https://lore.kernel.org/all/20191111192258.2234502-1-arnd@arndb.de/ So in this patchset, I firstly add including asm-generic/io.h for mips, then remove all arch specific ioremap_uc() definitions, except of x86 ans ia64. With the removing, those ARCH-es will have default ioremap_uc() defined in asm-generic/io.h. Baoquan He (2): mips: add including arch/*/io.h: remove ioremap_uc in some architectures 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 | 47 +++++++++++++++++++++++++++++++++- arch/mips/include/asm/mmiowb.h | 2 -- arch/parisc/include/asm/io.h | 2 -- arch/powerpc/include/asm/io.h | 1 - arch/sh/include/asm/io.h | 2 -- arch/sparc/include/asm/io_64.h | 1 - 9 files changed, 46 insertions(+), 14 deletions(-)