Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp260844rwd; Tue, 16 May 2023 00:13:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6hG8cbBc88xpFPyNhV6/li6dp6Cqls0NWbP8xTe5AqRfDT8v303y6WOwpcDtVDBaRekie2 X-Received: by 2002:a05:6a20:1607:b0:103:d538:5ea6 with SMTP id l7-20020a056a20160700b00103d5385ea6mr25398901pzj.48.1684221216108; Tue, 16 May 2023 00:13:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684221216; cv=none; d=google.com; s=arc-20160816; b=gC52z7Q2dGqdd+RpDDkw1gkxKi30+SbdYC461DJFJTOdQHS6RgcYZk/ztLmgZYENPF px8u1LlU3G3v5oRjl4NMOhD2/BUvEWkukGUpvq+i8RGHyL5Mi+Y6y2rs89PTzBT0oMRN SQcHHUS2jyjynxdR+LY2sK+WYsw2bmCG7wTO507gY6/mNtjP4dA1nFSSzrNVv1YyGefT UOlJrzHiYhjSa1vxC74DkAp70jjMHF39ra6KdeIKpzqMUJh2Tpezf+M9KwAKZ7hdFnJV JATlEN/bOIyQMX4u2Qs6vrDKOf7dxb8rNzkdnR1+WHCTTvI/eHZvIbOju5TI3jIc9dGs TK8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=xxSMoPkagWrnC654DejoiZuFWmzsvbCkkP+E/LUqu/8=; b=v2tIkV5kUFCNQxfaIEc++defXc5ikJLjZNUXeYwL+oH85piozaz/yeVqxnfxZ2TY9G 4EDkvKZz6vJeP6gVEdYoZn7bHhMZ0nbf7rz1azKH+Wrljn8FPtug8dU/UBcUIwcHDoBe t3oCFBzHFXrKdhTNfeVoLRZyuov5ikwsfm4heGjz6VaRJTGIc9xDubXSG1860cHfyGAT lPIUC97iV6AC4BjIhc7DB3mmse1yw5FEadLnwcViezhisEKTkGorXC4eOtNla2WRTXbT jXqPHaZaW9XVpqFxuUmn7C+XaXsIv81gtxUVPijz8g9yQZLwUEN7c5PMZYu+qO6ypUn+ lZNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x185-20020a6386c2000000b00528c6c2ea96si4742408pgd.306.2023.05.16.00.13.21; Tue, 16 May 2023 00:13:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230468AbjEPHIK convert rfc822-to-8bit (ORCPT + 99 others); Tue, 16 May 2023 03:08:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230318AbjEPHII (ORCPT ); Tue, 16 May 2023 03:08:08 -0400 Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 127FD18E; Tue, 16 May 2023 00:08:07 -0700 (PDT) Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-55a2cb9788dso194718607b3.2; Tue, 16 May 2023 00:08:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684220886; x=1686812886; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iTQjfNfGsMfbyHJYnY/d7iucXXNLZgToVmLQABWZsBQ=; b=YhXyDSyvdUe4u6/xFM86Ij/xyaP4DXwKIrkULQVAg8AZ0/T2tKz5jHhshthXm4aPt/ v3NjSAvyjxY4bsnH6K1JAqCUGqhwQSxA3KrdLQYdbLi04fvKoTS/qnMTGCBLZhBwH7DF YSj2jHEup9yPLjVqNfAVuzAlQyG4X6z0oqnqENztX5ZlEPl1ikabm0+ZeDMf6J405cMP nU3NCiVVPCxI++BPmI2vnJdOhY8QSh3Eg6CxetYfOR80cSf809QjyzK4TnBQbctDFmrB Q7zGiLmvZiPcnZtXAFDK/QHlsawjZdqzaPLDgJPHtayOWZs5bYJ37wHIUxL3ob0X0iPU BDog== X-Gm-Message-State: AC+VfDx/2bj8MSqa5j1UyMTE6XlMom6U5heLIf49kC3eCsBKnykufqqC GgDMFFlnNm4IRR6JY5RyFGyX5wUbLlAM7Q== X-Received: by 2002:a81:a157:0:b0:559:e240:3c27 with SMTP id y84-20020a81a157000000b00559e2403c27mr33475111ywg.23.1684220886078; Tue, 16 May 2023 00:08:06 -0700 (PDT) Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com. [209.85.219.180]) by smtp.gmail.com with ESMTPSA id m81-20020a817154000000b0055a503ca1e8sm395921ywc.109.2023.05.16.00.08.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 May 2023 00:08:04 -0700 (PDT) Received: by mail-yb1-f180.google.com with SMTP id 3f1490d57ef6-ba7730e47a4so4592961276.3; Tue, 16 May 2023 00:08:04 -0700 (PDT) X-Received: by 2002:a25:1c6:0:b0:ba7:dcad:9b6 with SMTP id 189-20020a2501c6000000b00ba7dcad09b6mr4131622ybb.40.1684220883815; Tue, 16 May 2023 00:08:03 -0700 (PDT) MIME-Version: 1.0 References: <20230515090848.833045-1-bhe@redhat.com> <20230515090848.833045-2-bhe@redhat.com> In-Reply-To: <20230515090848.833045-2-bhe@redhat.com> From: Geert Uytterhoeven Date: Tue, 16 May 2023 09:07:52 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 RESEND 01/17] asm-generic/iomap.h: remove ARCH_HAS_IOREMAP_xx macros To: Baoquan He Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, arnd@arndb.de, christophe.leroy@csgroup.eu, hch@infradead.org, agordeev@linux.ibm.com, wangkefeng.wang@huawei.com, schnelle@linux.ibm.com, David.Laight@aculab.com, shorne@gmail.com, willy@infradead.org, deller@gmx.de, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, x86@kernel.org, netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 15, 2023 at 11:14 AM Baoquan He wrote: > Let's use '#define ioremap_xx' and "#ifdef ioremap_xx" instead. > > For each architecture to remove defined ARCH_HAS_IOREMAP_xx macros in > To remove defined ARCH_HAS_IOREMAP_xx macros in of each ARCH, > the ARCH's own ioremap_wc|wt|np definition need be above > "#include . Otherwise the redefinition error would > be seen during compiling. So the relevant adjustments are made to avoid > compiling error: > > loongarch: > - doesn't include , defining ARCH_HAS_IOREMAP_WC > is redundant, so simply remove it. > > m68k: > - selected GENERIC_IOMAP, has been added in > , and is included above > , so simply remove ARCH_HAS_IOREMAP_WT defining. > > mips: > - move "#include " below ioremap_wc definition > in > > powerpc: > - remove "#include " in because it's > duplicated with the one in , let's rely on the > latter. > > x86: > - selected GENERIC_IOMAP, remove #include in > the middle of . Let's rely on . > > Signed-off-by: Baoquan He > arch/m68k/include/asm/io_mm.h | 2 -- > arch/m68k/include/asm/kmap.h | 2 -- Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds