From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=none Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C222A4; Sun, 19 Nov 2023 16:39:32 -0800 (PST) Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4SYT825Wf9zsRGy; Mon, 20 Nov 2023 08:36:02 +0800 (CST) Received: from [10.174.177.243] (10.174.177.243) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 20 Nov 2023 08:39:28 +0800 Message-ID: Date: Mon, 20 Nov 2023 08:39:27 +0800 Precedence: bulk X-Mailing-List: linux-hexagon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] asm/io: remove unnecessary xlate_dev_mem_ptr() and unxlate_dev_mem_ptr() Content-Language: en-US To: Geert Uytterhoeven CC: Arnd Bergmann , , , , , , , , , , , Richard Henderson , Ivan Kokshaysky , Russell King , Brian Cain , "James E.J. Bottomley" , Nicholas Piggin , Christophe Leroy , Yoshinori Sato , Rich Felker , "David S. Miller" , Stanislav Kinsburskii References: <20231118100827.1599422-1-wangkefeng.wang@huawei.com> From: Kefeng Wang In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.177.243] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected On 2023/11/20 3:34, Geert Uytterhoeven wrote: > On Sat, Nov 18, 2023 at 11:09 AM Kefeng Wang wrote: >> The asm-generic/io.h already has default definition, remove unnecessary >> arch's defination. >> >> Cc: Richard Henderson >> Cc: Ivan Kokshaysky >> Cc: Russell King >> Cc: Brian Cain >> Cc: "James E.J. Bottomley" >> Cc: Nicholas Piggin >> Cc: Christophe Leroy >> Cc: Yoshinori Sato >> Cc: Rich Felker >> Cc: "David S. Miller" >> Cc: Stanislav Kinsburskii >> Signed-off-by: Kefeng Wang > >> arch/m68k/include/asm/io_mm.h | 6 ------ > > Reviewed-by: Geert Uytterhoeven > Acked-by: Geert Uytterhoeven > >> arch/sh/include/asm/io.h | 7 ------- > > Reviewed-by: Geert Uytterhoeven Thanks, > >> --- a/arch/mips/include/asm/io.h >> +++ b/arch/mips/include/asm/io.h >> @@ -548,13 +548,6 @@ extern void (*_dma_cache_inv)(unsigned long start, unsigned long size); >> #define csr_out32(v, a) (*(volatile u32 *)((unsigned long)(a) + __CSR_32_ADJUST) = (v)) >> #define csr_in32(a) (*(volatile u32 *)((unsigned long)(a) + __CSR_32_ADJUST)) >> >> -/* >> - * Convert a physical pointer to a virtual kernel pointer for /dev/mem >> - * access >> - */ >> -#define xlate_dev_mem_ptr(p) __va(p) >> -#define unxlate_dev_mem_ptr(p, v) do { } while (0) >> - >> void __ioread64_copy(void *to, const void __iomem *from, size_t count); > > Missing #include , according to the build bot report. Will check the bot report. > >> #endif /* _ASM_IO_H */ > > Gr{oetje,eeting}s, > > Geert >