mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Qiheng Lin <linqiheng@huawei.com>
To: <mike.travis@hpe.com>, <dimitri.sivanich@hpe.com>,
	<russ.anderson@hpe.com>, <dvhart@infradead.org>,
	<andy@infradead.org>, <tglx@linutronix.de>, <mingo@redhat.com>,
	<bp@alien8.de>, <x86@kernel.org>, <hpa@zytor.com>
Cc: <steve.wahl@hpe.com>, <platform-driver-x86@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH -next] x86/platform/uv: functions should not be declared extern
Date: Tue, 1 Jun 2021 14:40:08 +0800	[thread overview]
Message-ID: <06d88bb6-650d-9b94-f4e6-e274dd188ca1@huawei.com> (raw)
In-Reply-To: <20210531060747.21934-1-linqiheng@huawei.com>

在 2021/5/31 14:07, Qiheng Lin 写道:
> These function declarations in 'bios.h' are already marked extern, thus
> their definition should not have the keyword.
> 
> This quiets the following sparse warnings:
>   function 'uv_bios_get_master_nasid' with external linkage has definition
>   function 'uv_bios_get_heapsize' with external linkage has definition
>   function 'uv_bios_install_heap' with external linkage has definition
>   function 'uv_bios_obj_count' with external linkage has definition
>   function 'uv_bios_enum_objs' with external linkage has definition
>   function 'uv_bios_enum_ports' with external linkage has definition
>   function 'uv_bios_get_geoinfo' with external linkage has definition
>   function 'uv_bios_get_pci_topology' with external linkage has definition
> 
> Signed-off-by: Qiheng Lin <linqiheng@huawei.com>
> ---
>   arch/x86/platform/uv/bios_uv.c | 16 ++++++++--------
>   1 file changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/arch/x86/platform/uv/bios_uv.c b/arch/x86/platform/uv/bios_uv.c
> index bf31af3d32d6..7e7634c8be62 100644
> --- a/arch/x86/platform/uv/bios_uv.c
> +++ b/arch/x86/platform/uv/bios_uv.c
> @@ -172,55 +172,55 @@ int uv_bios_set_legacy_vga_target(bool decode, int domain, int bus)
>   				(u64)decode, (u64)domain, (u64)bus, 0, 0);
>   }
>   
> -extern s64 uv_bios_get_master_nasid(u64 size, u64 *master_nasid)
> +s64 uv_bios_get_master_nasid(u64 size, u64 *master_nasid)
>   {
>   	return uv_bios_call(UV_BIOS_EXTRA, 0, UV_BIOS_EXTRA_MASTER_NASID, 0,
>   				size, (u64)master_nasid);
>   }
>   EXPORT_SYMBOL_GPL(uv_bios_get_master_nasid);
>   
> -extern s64 uv_bios_get_heapsize(u64 nasid, u64 size, u64 *heap_size)
> +s64 uv_bios_get_heapsize(u64 nasid, u64 size, u64 *heap_size)
>   {
>   	return uv_bios_call(UV_BIOS_EXTRA, nasid, UV_BIOS_EXTRA_GET_HEAPSIZE,
>   				0, size, (u64)heap_size);
>   }
>   EXPORT_SYMBOL_GPL(uv_bios_get_heapsize);
>   
> -extern s64 uv_bios_install_heap(u64 nasid, u64 heap_size, u64 *bios_heap)
> +s64 uv_bios_install_heap(u64 nasid, u64 heap_size, u64 *bios_heap)
>   {
>   	return uv_bios_call(UV_BIOS_EXTRA, nasid, UV_BIOS_EXTRA_INSTALL_HEAP,
>   				0, heap_size, (u64)bios_heap);
>   }
>   EXPORT_SYMBOL_GPL(uv_bios_install_heap);
>   
> -extern s64 uv_bios_obj_count(u64 nasid, u64 size, u64 *objcnt)
> +s64 uv_bios_obj_count(u64 nasid, u64 size, u64 *objcnt)
>   {
>   	return uv_bios_call(UV_BIOS_EXTRA, nasid, UV_BIOS_EXTRA_OBJECT_COUNT,
>   				0, size, (u64)objcnt);
>   }
>   EXPORT_SYMBOL_GPL(uv_bios_obj_count);
>   
> -extern s64 uv_bios_enum_objs(u64 nasid, u64 size, u64 *objbuf)
> +s64 uv_bios_enum_objs(u64 nasid, u64 size, u64 *objbuf)
>   {
>   	return uv_bios_call(UV_BIOS_EXTRA, nasid, UV_BIOS_EXTRA_ENUM_OBJECTS,
>   				0, size, (u64)objbuf);
>   }
>   EXPORT_SYMBOL_GPL(uv_bios_enum_objs);
>   
> -extern s64 uv_bios_enum_ports(u64 nasid, u64 obj_id, u64 size, u64 *portbuf)
> +s64 uv_bios_enum_ports(u64 nasid, u64 obj_id, u64 size, u64 *portbuf)
>   {
>   	return uv_bios_call(UV_BIOS_EXTRA, nasid, UV_BIOS_EXTRA_ENUM_PORTS,
>   				obj_id, size, (u64)portbuf);
>   }
>   EXPORT_SYMBOL_GPL(uv_bios_enum_ports);
>   
> -extern s64 uv_bios_get_geoinfo(u64 nasid, u64 size, u64 *buf)
> +s64 uv_bios_get_geoinfo(u64 nasid, u64 size, u64 *buf)
>   {
>   	return uv_bios_call(UV_BIOS_GET_GEOINFO, nasid, (u64)buf, size, 0, 0);
>   }
>   EXPORT_SYMBOL_GPL(uv_bios_get_geoinfo);
>   
> -extern s64 uv_bios_get_pci_topology(u64 size, u64 *buf)
> +s64 uv_bios_get_pci_topology(u64 size, u64 *buf)
>   {
>   	return uv_bios_call(UV_BIOS_GET_PCI_TOPOLOGY, (u64)buf, size, 0, 0, 0);
>   }
> 

I have sent a new patch with the correct subject and commit messages, 
please ignore this version.

Sorry for the noise.

      parent reply	other threads:[~2021-06-01  6:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-31  6:07 Qiheng Lin
2021-05-31 13:45 ` Hans de Goede
2021-05-31 13:46   ` Hans de Goede
2021-06-01  6:40 ` Qiheng Lin [this message]

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=06d88bb6-650d-9b94-f4e6-e274dd188ca1@huawei.com \
    --to=linqiheng@huawei.com \
    --cc=andy@infradead.org \
    --cc=bp@alien8.de \
    --cc=dimitri.sivanich@hpe.com \
    --cc=dvhart@infradead.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mike.travis@hpe.com \
    --cc=mingo@redhat.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=russ.anderson@hpe.com \
    --cc=steve.wahl@hpe.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /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

all inboxes | Powered by JetHome®