Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3213688pxj; Mon, 31 May 2021 23:41:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYoMgTJr3tpY9760oYzuqiBpO+C4bE3HsUZPJCcZ4g1N1JUPyFkHfkC6wxzHVCY1BEuXWn X-Received: by 2002:a02:b68c:: with SMTP id i12mr23286936jam.133.1622529696082; Mon, 31 May 2021 23:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622529696; cv=none; d=google.com; s=arc-20160816; b=zPaPHOu6c2WA1CdBto7ZoVNa4X6XmBPwFpRM8XxVdn4gTTPWuJaaYRMuNUZU6odhsr NwaD+wSaeNL99hDyDN7nrbNd4vQWNMjLyoIuiNEeVNLgJiXqfiTJTbJ+ym5MP51wlqG2 vc4ACDdxRf+sGGl0E5psqdkO9tmsvwMliPeOoicBVKJxm2Gs53OuIsxe/j3HG5AxsOOu 525GGzO4Vbg1IBT7HzTf2gnkfcHwDDqEso7MOpID14zMarfCiOpH/SO5FiriaLlnMpE3 V9yloMzrlTUFboyZged4+2cExPE3odqCFOqOt6Cyp7rdfJbDh52ErRIdBAiqsjRwTCj1 5ewA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=MbGYaBgfvQk18VVQqDYBYQWEPVCI8euC3StwFXnqPJQ=; b=T5d0VXJ+68qWYri/WE6xHRiVJFUZexLxZuKbjtfw0YgAke5NFzkRS/jO5Oi+Qz2O4C n8WATQXZ4wBsOG8QLgnJUBVomBollQdFBbr2+TOvXkp+W7pU9CRNJRfR0aH017O7PBeD rV5Yu9gakKEvdsywnptXLBEi23dN3GZ+PiGoGn1FAoJaV2csnTOy6wtSUY2Tz49P5ydh mEBwoKjz2lHsXFbrePA0/KjzRpqheHrSYmgIf/sv++bjhnWrJ742mWQM1tbXeruLSKn2 3URRluTQE6FuRvwqH2KeA6iBOUj+1wROhe66Dfvlic9g75t5aL3m1JFua/SEXxeDomWP 4H8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i1si729341ilv.76.2021.05.31.23.41.22; Mon, 31 May 2021 23:41:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233011AbhFAGlx (ORCPT + 99 others); Tue, 1 Jun 2021 02:41:53 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:6104 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232989AbhFAGlw (ORCPT ); Tue, 1 Jun 2021 02:41:52 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FvMsL4DYjzYpFk; Tue, 1 Jun 2021 14:37:26 +0800 (CST) Received: from dggpemm500012.china.huawei.com (7.185.36.89) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 1 Jun 2021 14:40:09 +0800 Received: from [10.174.176.189] (10.174.176.189) by dggpemm500012.china.huawei.com (7.185.36.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 1 Jun 2021 14:40:08 +0800 Subject: Re: [PATCH -next] x86/platform/uv: functions should not be declared extern To: , , , , , , , , , CC: , , References: <20210531060747.21934-1-linqiheng@huawei.com> From: Qiheng Lin Message-ID: <06d88bb6-650d-9b94-f4e6-e274dd188ca1@huawei.com> Date: Tue, 1 Jun 2021 14:40:08 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <20210531060747.21934-1-linqiheng@huawei.com> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.176.189] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500012.china.huawei.com (7.185.36.89) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ?? 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 > --- > 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.