Received: by 10.223.176.46 with SMTP id f43csp958261wra; Fri, 19 Jan 2018 04:53:44 -0800 (PST) X-Google-Smtp-Source: ACJfBou5wbXQmyBTMEwL9KJMe1pazNBXzMEKtdfashDroT0Qt6e4wqnArbTVYaL9CmwqztiRHTRL X-Received: by 10.101.101.149 with SMTP id u21mr23341690pgv.251.1516366423963; Fri, 19 Jan 2018 04:53:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516366423; cv=none; d=google.com; s=arc-20160816; b=yxIskSneWXdpSxsfKQSJ7DYRw0nuAQxcieO4b0bvO6Fuv8CeFjYdMwZid3JnAmaQgP seKKzMp4S9YtoXe0l2eNb1y/8ZBXlnhgiqfjSrWfqm4L73T461+T5VBL/ezGDio2trOA EZp7onosQh7xgAw/rttN+tIw3137rPffUTPwwePznXAGbg7wZkeuzAJ472FJBTQppVVc ivGrafr0ujtKEn7YF44T/Kv4SPrPd4f2EHhzoOh5nCYyTaEFnq4/Tm9/VKY1RISJYvWf MwWSFufKDaY9tV2K5nrDwBgw8+xp39CwcmmJbf08z0HjhRlagHrP1TRMxCpJRHYHRFAA 38Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=g/0OlLs7hmsjLbqTj0d8O1WF222oJbaWW94v+2lLWG0=; b=gYRBTJWWc6yqfuQH2b6REPMjwf8J7hlk8+6rlSJyuSuxaFZApcFS/BjkBjkIbb3MS0 g0N5iBXgugxyW8qz98EVpu0nZuW059U7Ggv2nE0z5J0OWMNa8E2T2b3k+zGNOMWP7TXs pG872tP/pWMf5QW+2aUzGr5G/tIXI1eTwHmVzk+ZsiVl3kfZGlvtiTAwfjoxNNuWf+F4 OosQouY0HgL/sID7dnPdZH9lKJcXgpnid22wgIZMWEjfP62J5m8PUybLs3bttCLq7wBj 6/nHRYi0AvXciAT9U/YjMKODY+IgCQpsPH2tCbTEQvcAvvLTP9GMsO+XhOJdyklVJbN1 M08Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h+R/tGbd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6-v6si810568pll.691.2018.01.19.04.53.29; Fri, 19 Jan 2018 04:53:43 -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=pass header.i=@gmail.com header.s=20161025 header.b=h+R/tGbd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755055AbeASMvm (ORCPT + 99 others); Fri, 19 Jan 2018 07:51:42 -0500 Received: from mail-vk0-f45.google.com ([209.85.213.45]:45203 "EHLO mail-vk0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751200AbeASMvc (ORCPT ); Fri, 19 Jan 2018 07:51:32 -0500 Received: by mail-vk0-f45.google.com with SMTP id o16so848150vke.12; Fri, 19 Jan 2018 04:51:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=g/0OlLs7hmsjLbqTj0d8O1WF222oJbaWW94v+2lLWG0=; b=h+R/tGbdnnodJNons/S23Zo0YA4KCtqoFtzj/iRBUKqIWaSI2URN3Y2U5QK8L9dli4 9fogsf69d17r3qrkV2YEnbIAv8IM+ZaLKpiqAzu5Pl4WWEbqkpQjdudSpLyV44n2dI0j 2zukBq6sQ/MQ9wN/IeTjHiBjnIw0qSxOiA1/BQ/uXjvnEBsesg9F6Bp1gDqKqc5cLQnp P/2EjPnjv+JUE23RuLfkHSEKy1REnDsmtafoATVAkMUX8S9Ww9OIZo2YJH8qIWmJZWF6 9G9WUbH6nnTLtEatYb/pI84FidrOo9g1PPraLkuoUUPup7/nVK8VVZRnFRComf1miuHh xvmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=g/0OlLs7hmsjLbqTj0d8O1WF222oJbaWW94v+2lLWG0=; b=GexQgNe5sjIOAIRbzPkeRiFs8Xv+mlWzXFM7u/mooT8Npv5UNXbgGGXT4ljaQkydeV aqihxG3NiNrK+Ts72WU+Ugz4eXn9KlKZmTQk+bHuYVKiUd/EPVo+X+2xVmT8uajzuSxe tGhIKC5/8lb6gT1z0lePLABFWofALrcJfajAMhJaeI6WMAbK1nCm0Iu+JH5boUc9xoH1 glp76efuZqlml44IZV8AdrscAkkCR0dV0Mqc47hQYynsNXbzHQ7p3r36LwCDEBW65ANg jyiRN3aa0hgwr0KMUcQYN9/m/PbeXwAUVQGltVFkbM4GmxR0zgsLKRF/Xp+H1VidK/sd IFOQ== X-Gm-Message-State: AKwxytdNmJ2rTDdkpGIJrmcPboUqajNb+N2O0H7y0ZWHl2SExzkp4jgl vpWyTGJQn4MrHSUk/evygdMHWHl4EG3U14H9y/o= X-Received: by 10.31.147.204 with SMTP id v195mr3555896vkd.37.1516366291213; Fri, 19 Jan 2018 04:51:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.42.194 with HTTP; Fri, 19 Jan 2018 04:50:50 -0800 (PST) In-Reply-To: References: <790e05e9b9675b3f6ef41693a794d1f09795c151.1515766253.git.green.hu@gmail.com> From: Greentime Hu Date: Fri, 19 Jan 2018 20:50:50 +0800 Message-ID: Subject: Re: [PATCH v6 03/36] sparc: io: To use the define of ioremap_[nocache|wc|wb] in asm-generic/io.h To: Arnd Bergmann Cc: 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" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-01-18 17:56 GMT+08:00 Arnd Bergmann : > On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: >> From: Greentime Hu >> >> It will be built failed if commit id: d25ea659 is selected. This patch >> can fix this build error. >> >> Signed-off-by: Greentime Hu > > The change is fine, but the reference to commit 'd25ea659' is not for > two reasons: > > - when you rebase the tree, you will get a different ID > - the recommended format for referring to another commit is to list it wi= th > 12 digits and the one-line summary like this: > > commit d25ea659bc37 ("asm-generic/io.h: move > ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_=E2=80=A6") > > - Ideally you use a 'Fixes:' tag in the patch description. > > You can add these lines in your .gitconfig to help you here > > [alias] > fixes =3D show --format=3D'Fixes: %h (\"%s\")' -s > [core] > abbrev =3D 12 > > That will give you a 'git fixes' command to output the Fixes: line > in the correct format for future bug fixes. For this particular change, > I would actually just merge the two patches into one patch that > then doesn't break anything in the first place. > Hi, Arnd: Thank you for your comments and teaching me how to add these messages. I will update the commit messages and my .gitconfig. Since the commit id will be changed after rebasing, I will update the messages like this. sparc: io: To use the define of ioremap_[nocache|wc|wb] in asm-generic/io.h 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