From: Sam Ravnborg <sam@ravnborg.org>
To: Gonglei <arei.gonglei@huawei.com>
Cc: linux-kernel@vger.kernel.org, qemu-devel@nongnu.org,
virtio-dev@lists.oasis-open.org,
virtualization@lists.linux-foundation.org,
linux-crypto@vger.kernel.org, luonengjun@huawei.com,
mst@redhat.com, stefanha@redhat.com, weidong.huang@huawei.com,
wu.wubin@huawei.com, xin.zeng@intel.com,
claudio.fontana@huawei.com, herbert@gondor.apana.org.au,
pasic@linux.vnet.ibm.com, davem@davemloft.net,
jianjay.zhou@huawei.com, hanweidong@huawei.com,
arei.gonglei@hotmail.com, cornelia.huck@de.ibm.com,
xuquan8@huawei.com, longpeng2@huawei.com, wanzongshun@huawei.com,
sparclinux@vger.kernel.org
Subject: Re: [PATCH v6 1/2] sparc: fix a building error reported by kbuild
Date: Fri, 9 Dec 2016 22:58:51 +0100 [thread overview]
Message-ID: <20161209215851.GA7717@ravnborg.org> (raw)
In-Reply-To: <1481171829-116496-2-git-send-email-arei.gonglei@huawei.com>
Hi Gonglei.
On Thu, Dec 08, 2016 at 12:37:08PM +0800, Gonglei wrote:
> >> arch/sparc/include/asm/topology_64.h:44:44:
> error: implicit declaration of function 'cpu_data'
> [-Werror=implicit-function-declaration]
>
> #define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id)
> ^
> Let's include cpudata.h in topology_64.h.
>
> Cc: Sam Ravnborg <sam@ravnborg.org>
> Cc: David S. Miller <davem@davemloft.net>
> Cc: sparclinux@vger.kernel.org
> Suggested-by: Sam Ravnborg <sam@ravnborg.org>
> Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
> ---
> arch/sparc/include/asm/topology_64.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/sparc/include/asm/topology_64.h b/arch/sparc/include/asm/topology_64.h
> index 7b4898a..2255430 100644
> --- a/arch/sparc/include/asm/topology_64.h
> +++ b/arch/sparc/include/asm/topology_64.h
> @@ -4,6 +4,7 @@
> #ifdef CONFIG_NUMA
>
> #include <asm/mmzone.h>
> +#include <asm/cpudata.h>
Nitpick - if you are going to resend this patch, then please
order the two includes in alphabetic order.
For two includes this looks like bikeshedding, but when we add
more having them in a defined arder prevents merge conflicts.
And makes it readable too.
We also sometimes order the includes with the longest lines topmost,
and lines with the ame length are ordered alphabetically.
But this is not seen so often.
Sam
next prev parent reply other threads:[~2016-12-09 21:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-08 4:37 [PATCH v6 0/2] virtio-crypto: add Linux driver Gonglei
2016-12-08 4:37 ` [PATCH v6 1/2] sparc: fix a building error reported by kbuild Gonglei
2016-12-09 21:58 ` Sam Ravnborg [this message]
2016-12-10 8:40 ` Gonglei (Arei)
2016-12-08 4:37 ` [PATCH v6 2/2] crypto: add virtio-crypto driver Gonglei
2016-12-12 6:25 ` Gonglei (Arei)
2016-12-12 10:54 ` Herbert Xu
2016-12-12 22:05 ` Michael S. Tsirkin
2016-12-13 1:13 ` Gonglei (Arei)
2016-12-13 3:33 ` Herbert Xu
2016-12-13 16:11 ` Halil Pasic
2016-12-14 11:32 ` Gonglei (Arei)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161209215851.GA7717@ravnborg.org \
--to=sam@ravnborg.org \
--cc=arei.gonglei@hotmail.com \
--cc=arei.gonglei@huawei.com \
--cc=claudio.fontana@huawei.com \
--cc=cornelia.huck@de.ibm.com \
--cc=davem@davemloft.net \
--cc=hanweidong@huawei.com \
--cc=herbert@gondor.apana.org.au \
--cc=jianjay.zhou@huawei.com \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=longpeng2@huawei.com \
--cc=luonengjun@huawei.com \
--cc=mst@redhat.com \
--cc=pasic@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=sparclinux@vger.kernel.org \
--cc=stefanha@redhat.com \
--cc=virtio-dev@lists.oasis-open.org \
--cc=virtualization@lists.linux-foundation.org \
--cc=wanzongshun@huawei.com \
--cc=weidong.huang@huawei.com \
--cc=wu.wubin@huawei.com \
--cc=xin.zeng@intel.com \
--cc=xuquan8@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox