platform/x86/intel/pmc: make lnl_d3_fixup static
Subsystems (2)
PATCH 1/1 platform/x86/intel/pmc: make lnl_d3_fixup static
The lnl_d3_fixup are not used outside the file lnl.c, so the modification is defined as static.
drivers/platform/x86/intel/pmc/lnl.c:503:6: warning: no previous prototype for ‘lnl_d3_fixup’.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/platform/x86/intel/pmc/lnl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/intel/pmc/lnl.c +1 -1
@@ -500,7 +500,7 @@ const struct pmc_reg_map lnl_socm_reg_map = {* Set power state of select devices that do not have drivers to D3 * so that they do not block Package C entry. */ -void lnl_d3_fixup (void ) +static void lnl_d3_fixup (void ) {pmc_core_set_device_d3 (LNL_IPU_PCI_DEV );pmc_core_set_device_d3 (LNL_NPU_PCI_DEV );
Signature · 1 line
2.20.1.7.g153144c
Hi Jiapeng,
Quoted 8 lines · Jiapeng Chong
The
lnl_d3_fixupare not used outside the filelnl.c, so the modification is defined as static.
drivers/platform/x86/intel/pmc/lnl.c:503:6: warning: no previous prototype for ‘lnl_d3_fixup’.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
Thank you for your patch, but this has already been fixed in the current version of the code, see:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/tree/?h=for-next
Regards,
Hans
Quoted 17 lines
--- drivers/platform/x86/intel/pmc/lnl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/x86/intel/pmc/lnl.c +1
-1@@ -500,7 +500,7 @@ const struct pmc_reg_map lnl_socm_reg_map = {* Set power state of select devices that do not have drivers to D3 * so that they do not block Package C entry. */ -void lnl_d3_fixup (void ) +static void lnl_d3_fixup (void ) {pmc_core_set_device_d3 (LNL_IPU_PCI_DEV );pmc_core_set_device_d3 (LNL_NPU_PCI_DEV );