Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2366321imm; Thu, 21 Jun 2018 11:16:27 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIED+T2/EwqRc912rReflWKBSZwT0J1Xmj+I+BobtKqqzFyh1J4nKZ5A9KGQ7mHq2iZZoXV X-Received: by 2002:a17:902:6b05:: with SMTP id o5-v6mr7768611plk.67.1529604987698; Thu, 21 Jun 2018 11:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529604987; cv=none; d=google.com; s=arc-20160816; b=UDwtZzX703ZHoUoh8O1LLlZze8aiyZLT3foZCT+dwxGXVxKw57qhDAy0gzlAdpvx0W 73kE6b+NsGWrHyfLt1lqqp8zcjvWHV1VQgAQYqkqcO7WW72j0VWGXBtOW1R7+WlN69M0 qjYSW5EiAYY9EodF7L40WclCRk01/p2+0Ege7WJyUVf867W1KjN6whUs84rPubSqzm6K kgcdt0mjciHCTSwsEszWQcu+Hq1TBellDX9b6N0HbWfb/DA4qLg6UTIgGOK2/ARroKOV 5n09niHLsEyWZTglYuBxIHa6cLN5er1Vedx8M+Wbbw1/ccDImjX1qlzCPOsLrJzrE87r uEBQ== 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:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=G5wDO1Rd3XuIitDXDLm6Cffmqz6P19NDXFvG3vOelgE=; b=X7KO8fN+0938nX0lxFO6ZkGDngySJZ3H4FGStQ4QIUB7mq4ysoiaPoK+asrZoca+tr wwq+MhAP2i7qYwzbu3fFd13OWONOntJjGfC5ESjKVADDVe5fJmTysHNvLb2/Nh4OMjaD GuVIBCD7E68oQ5WKN4Z4n3CTpXDJJ6/H6hCiGgDHspAc/sRBwZtJgQgBO5qiQ9n1NUOQ rVBLU5xlWVQVi7YDk7tXqBqh4uB9K9m6GKIPSVNIS7xfIaaFqqO5jtC+m25B5MmxtBhQ Sn4zUDmzaheP/j8/Ru9QQO5yuOWzkuS5sU7pBMCADueopHcGzNkpqEzGE4noa2UktUhE v55w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u8-v6si5220199plh.492.2018.06.21.11.16.12; Thu, 21 Jun 2018 11:16:27 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932918AbeFUSPb (ORCPT + 99 others); Thu, 21 Jun 2018 14:15:31 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:47411 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932620AbeFUSP3 (ORCPT ); Thu, 21 Jun 2018 14:15:29 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1fW47B-0001Yn-4d; Thu, 21 Jun 2018 18:15:25 +0000 From: Colin King To: Mario Limonciello , Darren Hart , Andy Shevchenko , platform-driver-x86@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] platform/x86: dell-smbios: make a function and a pointer static Date: Thu, 21 Jun 2018 19:15:24 +0100 Message-Id: <20180621181524.30550-1-colin.king@canonical.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King The function dell_smbios_smm_call and pointer platform_device are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: warning: symbol 'platform_device' was not declared. Should it be static? warning: symbol 'dell_smbios_smm_call' was not declared. Should it be static? Signed-off-by: Colin Ian King --- drivers/platform/x86/dell-smbios-smm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/dell-smbios-smm.c b/drivers/platform/x86/dell-smbios-smm.c index e9e9da556318..97a90bebc360 100644 --- a/drivers/platform/x86/dell-smbios-smm.c +++ b/drivers/platform/x86/dell-smbios-smm.c @@ -24,7 +24,7 @@ static int da_command_address; static int da_command_code; static struct calling_interface_buffer *buffer; -struct platform_device *platform_device; +static struct platform_device *platform_device; static DEFINE_MUTEX(smm_mutex); static const struct dmi_system_id dell_device_table[] __initconst = { @@ -82,7 +82,7 @@ static void find_cmd_address(const struct dmi_header *dm, void *dummy) } } -int dell_smbios_smm_call(struct calling_interface_buffer *input) +static int dell_smbios_smm_call(struct calling_interface_buffer *input) { struct smi_cmd command; size_t size; -- 2.17.0