From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 Sender: arndbergmann@gmail.com In-Reply-To: References: <4bb01fd533c66c357f3dc23a64f56414109a2aad.1518505384.git.greentime@andestech.com> From: Arnd Bergmann Date: Wed, 21 Feb 2018 13:27:55 +0100 Message-ID: Subject: Re: [PATCH v7 03/37] sparc: io: To use the define of ioremap_[nocache|wc|wb] in asm-generic/io.h Content-Type: text/plain; charset="UTF-8" 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 List-ID: 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