Skip to content

Commit 5c447c1

Browse files
SamuelZOUrafaeljw
authored andcommitted
ACPI: CPPC: Make some symbols static
Fix the following sparse warnings: drivers/acpi/cppc_acpi.c:353:20: warning: symbol 'cppc_mbox_cl' was not declared. Should it be static? drivers/acpi/cppc_acpi.c:600:5: warning: symbol 'pcc_data_alloc' was not declared. Should it be static? Reported-by: Hulk Robot <[email protected]> Signed-off-by: Zou Wei <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 6a8b55e commit 5c447c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/acpi/cppc_acpi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ static void cppc_chan_tx_done(struct mbox_client *cl, void *msg, int ret)
350350
*(u16 *)msg, ret);
351351
}
352352

353-
struct mbox_client cppc_mbox_cl = {
353+
static struct mbox_client cppc_mbox_cl = {
354354
.tx_done = cppc_chan_tx_done,
355355
.knows_txdone = true,
356356
};
@@ -597,7 +597,7 @@ bool __weak cpc_ffh_supported(void)
597597
*
598598
* Return: 0 for success, errno for failure
599599
*/
600-
int pcc_data_alloc(int pcc_ss_id)
600+
static int pcc_data_alloc(int pcc_ss_id)
601601
{
602602
if (pcc_ss_id < 0 || pcc_ss_id >= MAX_PCC_SUBSPACES)
603603
return -EINVAL;

0 commit comments

Comments
 (0)