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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63533C636D4 for ; Fri, 17 Feb 2023 13:34:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229729AbjBQNeV (ORCPT ); Fri, 17 Feb 2023 08:34:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229821AbjBQNeQ (ORCPT ); Fri, 17 Feb 2023 08:34:16 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F171323121 for ; Fri, 17 Feb 2023 05:32:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676640724; 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: in-reply-to:in-reply-to:references:references; bh=chS9d4alxJTTQ0I6y2eHNvEVBW1ojTXFjGlKthH2/HI=; b=TK1BzJt2u6OD4DZdTrYRdzcSHj3TgclIf95Ku5t7smXFmEw/D+imXoSCc2yA/BgBu7dR9r nVKsrDmyx3au8jjTXRSSWByc5gtXHOuj1QwzTwCZWIXpWbbSHepBg8n2/olAyE+vCwR6Fh XZfm4G5D5l9MPPwWciqrHRHcfDu96M8= 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-593-7EIl6UqeOP2Eu6CZvaXtAw-1; Fri, 17 Feb 2023 08:32:00 -0500 X-MC-Unique: 7EIl6UqeOP2Eu6CZvaXtAw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4F3272805589; Fri, 17 Feb 2023 13:31:59 +0000 (UTC) Received: from localhost (ovpn-12-99.pek2.redhat.com [10.72.12.99]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 11929404CD84; Fri, 17 Feb 2023 13:31:57 +0000 (UTC) Date: Fri, 17 Feb 2023 21:31:54 +0800 From: Baoquan He To: Arnd Bergmann Cc: Matthew Wilcox , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Christophe Leroy , Christoph Hellwig , Alexander Gordeev , Kefeng Wang , Niklas Schnelle , David Laight , Stafford Horne , "James E . J . Bottomley" , Helge Deller , linux-parisc@vger.kernel.org Subject: Re: [PATCH v4 12/16] parisc: mm: Convert to GENERIC_IOREMAP Message-ID: References: <20230216123419.461016-1-bhe@redhat.com> <20230216123419.461016-13-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/16/23 at 04:18pm, Arnd Bergmann wrote: > On Thu, Feb 16, 2023, at 16:02, Baoquan He wrote: > > On 02/16/23 at 01:50pm, Matthew Wilcox wrote: > > It's not if including asm-generic/iomap.h. The ARCH_HAS_IOREMAP_xx is to > > avoid redefinition there. > > > > include/asm-generic/iomap.h: > > ---- > > #ifndef ARCH_HAS_IOREMAP_WC > > #define ioremap_wc ioremap > > #endif > > I'd change that to the usual '#ifndef ioremap_wc' in that case. Not sure if I got you. Kill all ARCH_HAS_IOREMAP_xxx in kernel? If yes, sounds like a good idea.