Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77641dac authored by Colin Ian King's avatar Colin Ian King Committed by Borislav Petkov
Browse files

EDAC, pnd2: Make function sbi_send() static



The function sbi_send() is local to just pnd2_edac.c and does not need
to be in global scope, so make it static.

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170623084855.9197-1-colin.king@canonical.com


Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
parent ee514c7a
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -131,7 +131,7 @@ static struct mem_ctl_info *pnd2_mci;


#ifdef CONFIG_X86_INTEL_SBI_APL
#ifdef CONFIG_X86_INTEL_SBI_APL
#include "linux/platform_data/sbi_apl.h"
#include "linux/platform_data/sbi_apl.h"
int sbi_send(int port, int off, int op, u32 *data)
static int sbi_send(int port, int off, int op, u32 *data)
{
{
	struct sbi_apl_message sbi_arg;
	struct sbi_apl_message sbi_arg;
	int ret, read = 0;
	int ret, read = 0;
@@ -160,7 +160,7 @@ int sbi_send(int port, int off, int op, u32 *data)
	return ret;
	return ret;
}
}
#else
#else
int sbi_send(int port, int off, int op, u32 *data)
static int sbi_send(int port, int off, int op, u32 *data)
{
{
	return -EUNATCH;
	return -EUNATCH;
}
}