Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3210168pxj; Mon, 31 May 2021 23:35:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzbNbpwIUc4RCGGbczf3B0tvkMUPuZ5u4grMRn1ZFVfe6Yb0s4YR235pFNbVhl7p3+9qBR X-Received: by 2002:a05:6e02:1b82:: with SMTP id h2mr20242018ili.7.1622529355692; Mon, 31 May 2021 23:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622529355; cv=none; d=google.com; s=arc-20160816; b=ENZxKa2v1MXRCYav3gcvRCvFI5Ic4Z8GOaFqUVyn+UAtOLC4gblGtIXAwgA666X+Ui fsLmV9iwpT3UC4Sol+Fx3zAzAXa9NJ5tVAjdA/ogf0smTaeP4VB+oLynkoITwe2kKbN4 PXUlpIKVjlNS6/aof0bK5V8ntfQJ18W/xQev4vdk0IgbqFj2Opqu2holgIA/bsqYWZYi 2oQN7D/A0QeZ4xw7zAUiNR5K24XFGku0MA6NnlhN7+QpU0PnafWqCsCVUTuACVjNCNuJ EN2GTi2WLuSRouhKACWonUBXFVLbv9MDFEE1iUHTKp4SSDdjBFUnMi8gxIgYhZe8B68D um9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=/7JHbO6yLtm6BkIGNZYNQYcnALfq+uce8XWt262ocBE=; b=VCLJfmRihj5h6/NGgD2Eq1H1JdoNXpza0Blf+956/+KgyJ25HsIS6JMRjI02223iY5 7aIWz7hefJyvID1qy0jpRmUpH2IN81eTVB70SoJao2rP3xuxlMya8Wc3hZN9j+lpetj2 hwhtG2jJ5EeotLs8Q87Y0P8dJ7CTHs1oO6EUurP9a+MN4+nBTKYB7Br25X4izk/OEtz/ jFbClbZ+kCiSm1IcNArrkHknYUq9vTCrZAzJeT2ZeEOpXycZqoXEGLdfo/kjz6QaEmM7 /MDrI5j6EtSgs0xUDU6NLvnljD0ZOGJgJ4vd9bIargnYP7gk5NLIc8SJ/r1rlNt2ytyb xXrQ== 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 i26si16022007ion.51.2021.05.31.23.35.42; Mon, 31 May 2021 23:35:55 -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 S233168AbhFAGgT (ORCPT + 99 others); Tue, 1 Jun 2021 02:36:19 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:2810 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233143AbhFAGgR (ORCPT ); Tue, 1 Jun 2021 02:36:17 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FvMhc667ZzWq3w; Tue, 1 Jun 2021 14:29:52 +0800 (CST) Received: from dggpemm500012.china.huawei.com (7.185.36.89) by dggemv704-chm.china.huawei.com (10.3.19.47) 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:34:34 +0800 Received: from DESKTOP-EFRLNPK.china.huawei.com (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:34:33 +0800 From: Qiheng Lin To: , , , , , , , , , CC: , , , Qiheng Lin Subject: [PATCH v2 -next] x86/platform/uv: Remove the unneeded extern keyword Date: Tue, 1 Jun 2021 14:30:34 +0800 Message-ID: <20210601063034.27433-1-linqiheng@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Originating-IP: [10.174.176.189] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) 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 The function declarations in bios.h are already marked extern, so remove them in the definition. This problem was caught by the sparse tool: 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 --- Changes in v2: - adjust the subject and commit message 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); } -- 2.31.1