Received: by 10.223.185.116 with SMTP id b49csp968470wrg; Wed, 21 Feb 2018 09:50:07 -0800 (PST) X-Google-Smtp-Source: AH8x2250axF0DgYt2romHbJ5MMSO9cITyg6BRSGgZYmyXcRnKQ2YYYIZ5FxO6fJ/4QGmdOKwZJKa X-Received: by 2002:a17:902:5914:: with SMTP id o20-v6mr3828002pli.60.1519235407857; Wed, 21 Feb 2018 09:50:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519235407; cv=none; d=google.com; s=arc-20160816; b=W+yvZimIS0wvREO6eUXIzDy3dZQgJF0wi6D50Xk84WC0Hv9oQEXGFOU+g0ykMgo/Uf ZkH4jsO0/u94ItjT6w080F16PbmReUJDwQRsgekt+0bo96SC/hm0jmYIjRIs9uEKHzSp aLZGK6qD9jWKM7piIcIGqMbB7K/WKscqh8u1v/ganZO25jeGVlNsiYddVcVGtfqHhoR3 q1A/wayxM0ivSsbzHLG/cZOCTQwhZG7pp+Te/yXIIwnH5KlhL4gmer9XIvWF0RTr9Ft6 4pdBWEBrZKSwTAj0sQ8/p23Oiyui7Zz/G6nwjf2ZHzSJNuBorAV/qEt1+X0Qn8rnIlIA zoaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=o+1IGTFOP283yByugGjDvFxKghEaYg3I4muAP2kI8PQ=; b=wiguhATptOYer/tQxHYXaiArMelI7USXY/v10gp0YA2Ps5bmnT8NX4eqWj24CVe3Hf COIjoKvvTMLiEMqMkcRjk9ljH60PSDbM8yANGOQrY7je1Nd2Ejmz/x6V+n6y5lpx+Jez 0XbVF/3+lvmeYPigZXg3la6SSbDUlGhFsLJ2ocoPOx9/NENd1VxSJdJO4+pt2xujFr/m I5jXTFy4RQ6Urtrp01pLKpTWF9gJxptMiZ/gL4yryoW42QHdWpK8MluIkok6gUrC+JWK Q0bOKBKqEJyCPNRRxYWggwTC1xFjuI9HVai1q/VR9JolOIIcGQm7rR9Nd5YbDLiQzg2E Dmpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=aeeUVjE/; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m15si8287420pga.684.2018.02.21.09.49.46; Wed, 21 Feb 2018 09:50:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=aeeUVjE/; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754142AbeBUM17 (ORCPT + 99 others); Wed, 21 Feb 2018 07:27:59 -0500 Received: from mail-qk0-f194.google.com ([209.85.220.194]:44469 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751459AbeBUM14 (ORCPT ); Wed, 21 Feb 2018 07:27:56 -0500 Received: by mail-qk0-f194.google.com with SMTP id v124so1640837qkh.11; Wed, 21 Feb 2018 04:27:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=o+1IGTFOP283yByugGjDvFxKghEaYg3I4muAP2kI8PQ=; b=aeeUVjE/0DCkQnAcwNt7Z6u9NcELgiMkgQWxvmcKZ2oVcqiSR8Im3Yq2JEhPT5l31j xovIMRkf8vpozvHnfd9dqKKpuhWf45negTGuSiU4kEX6K+rgZGS70reExmg35B3kld2o Tvl02Tx3qHPqOYm17RYF7W3oZpwGgLgv0CL3jBlj6SKuRwQwMQaN93JBFU/Seh5tvwqE Mh5VEATnshIOQir0RYNeLXRPZ1BjNuQmdd/gOLJs+of49hBkn2HKdgG2JYjmNMXhQ9vU 5ic3BIosWgq3NBV2xxUCGS0Lg4kb+zOnmN/pcJI8P3YqqKjx+4cevBMV+hx/13UtnJj2 0/Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=o+1IGTFOP283yByugGjDvFxKghEaYg3I4muAP2kI8PQ=; b=SDzKSyr9a1YwFZlE85wnCVtA1/thNXXV80tTGuttMN8n8oSFfjWtF7I1UC1FU8erCp kDf77MNSKt8NNKEJak9zoedxjdLzddcGCiFamXzX+H7c7DbC47WCEdTrRPXVPeEEySJy Q0OufN3IIPrgpiSNFDh26ZTI12hd8PC2X067+IEFHRm5B5Od11wMqr+cIIux+dEx9SAS /U5a++Tsu9quf9zkvTmt6j0o14CSACDeq1pzJwFPJvIXbIodKcZ3xfBU3xJnGx14CiP+ mAHNKE1+1NY2Uhyk2o0wMy2LpZ3APe8wq6frcxJT05H/Ial8NzmDGIDsXnSSvqAkZ8je ycBA== X-Gm-Message-State: APf1xPD6zdZNxBPzo4xIv8JUV3lwq4qFKnEJ2vz4xIZ1R5H9BQXHAXrp CBl3Ajhgeh2MQFO3sI7WbRh6rlkJwMme2A3bLpY= X-Received: by 10.55.215.153 with SMTP id t25mr4575620qkt.343.1519216075588; Wed, 21 Feb 2018 04:27:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.198.17 with HTTP; Wed, 21 Feb 2018 04:27:55 -0800 (PST) In-Reply-To: References: <4bb01fd533c66c357f3dc23a64f56414109a2aad.1518505384.git.greentime@andestech.com> From: Arnd Bergmann Date: Wed, 21 Feb 2018 13:27:55 +0100 X-Google-Sender-Auth: HNeiYGoSKfX6iqH8KQlpX2u05MI Message-ID: Subject: Re: [PATCH v7 03/37] sparc: io: To use the define of ioremap_[nocache|wc|wb] in asm-generic/io.h To: Greentime Hu Cc: sparclinux , Greentime , Linux Kernel Mailing List , linux-arch , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Networking , Vincent Chen , DTML , Al Viro , David Howells , Will Deacon , Daniel Lezcano , linux-serial@vger.kernel.org, Geert Uytterhoeven , Linus Walleij , Mark Rutland , Greg KH , Guo Ren , Randy Dunlap , David Miller , Jonas Bonn , Stefan Kristiansson , Stafford Horne Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 21, 2018 at 9:05 AM, Greentime Hu wrote: > 2018-02-14 22:43 GMT+08:00 Arnd Bergmann : >> On Tue, Feb 13, 2018 at 10:09 AM, Greentime Hu wrote: >>> A commit for the nds32 architecture bootstrap("asm-generic/io.h: move >>> ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU") >>> will move the ioremap_nocache out of the CONFIG_MMU ifdef. This means that >>> in order to suppress re-definition errors we need to remove the #define >>> in io_32.h. >>> >>> Also, the change adds a prototype for ioremap where size is size_t and >>> offset is phys_addr_t so fix that as well. >>> >>> Signed-off-by: Greentime Hu >> >> This patch should have been addressed to the sparclinux mailing list to >> the maintainers can see it, otherwise they are unlikely to notice. >> >> Added it to Cc now. >> >> Can you confirm that the patches are ordered correctly in your series so that >> at no point, sparc is in a state that fails to be build cleanly? >> >> If not, this may have to get merged into the other patch. > > Hi, Arnd: > > These 2 patch will cause sparc building error in any order. > > Should I merge them together like this? > > asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of > ifndef CONFIG_MMU > > It allows some architectures to use this generic macro instead of > defining theirs. > > sparc: io: To use the define of ioremap_[nocache|wc|wb] in asm-generic/io.h > It will move the ioremap_nocache out of the CONFIG_MMU ifdef. This means that > in order to suppress re-definition errors we need to remove the #define > in arch/sparc/include/asm/io_32.h. Also, the change adds a prototype for > ioremap where size is size_t and offset is phys_addr_t so fix that as well. > > Signed-off-by: Greentime Hu That looks reasonable since both patches are fairly small, yes. For a more complex patch that requires interdependent changes in different areas of the kernel, it may be necessary instead to come up with a way to stage out the changes differently so they are truly independent. Getting that right requires a bit practice but is usually possible. Arnd