Skip to content

Commit 3f751ba

Browse files
westeriandy-shev
authored andcommitted
platform/x86: intel_pmc_ipc: Make intel_pmc_ipc_simple_command() static
This function is not called outside of intel_pmc_ipc.c so we can make it static instead. Signed-off-by: Mika Westerberg <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent e1f4616 commit 3f751ba

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

arch/x86/include/asm/intel_pmc_ipc.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
#if IS_ENABLED(CONFIG_INTEL_PMC_IPC)
3333

34-
int intel_pmc_ipc_simple_command(int cmd, int sub);
3534
int intel_pmc_ipc_raw_cmd(u32 cmd, u32 sub, u8 *in, u32 inlen,
3635
u32 *out, u32 outlen, u32 dptr, u32 sptr);
3736
int intel_pmc_ipc_command(u32 cmd, u32 sub, u8 *in, u32 inlen,
@@ -43,11 +42,6 @@ int intel_pmc_gcr_write(u32 offset, u32 data);
4342

4443
#else
4544

46-
static inline int intel_pmc_ipc_simple_command(int cmd, int sub)
47-
{
48-
return -EINVAL;
49-
}
50-
5145
static inline int intel_pmc_ipc_raw_cmd(u32 cmd, u32 sub, u8 *in, u32 inlen,
5246
u32 *out, u32 outlen, u32 dptr, u32 sptr)
5347
{

drivers/platform/x86/intel_pmc_ipc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ static int intel_pmc_ipc_check_status(void)
404404
*
405405
* Return: an IPC error code or 0 on success.
406406
*/
407-
int intel_pmc_ipc_simple_command(int cmd, int sub)
407+
static int intel_pmc_ipc_simple_command(int cmd, int sub)
408408
{
409409
int ret;
410410

@@ -419,7 +419,6 @@ int intel_pmc_ipc_simple_command(int cmd, int sub)
419419

420420
return ret;
421421
}
422-
EXPORT_SYMBOL_GPL(intel_pmc_ipc_simple_command);
423422

424423
/**
425424
* intel_pmc_ipc_raw_cmd() - IPC command with data and pointers

0 commit comments

Comments
 (0)