Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: sdhci-pci-o2micro: Make some symbols static

Fix the following sparse warning:

drivers/mmc/host/sdhci-pci-o2micro.c:497:6: warning: symbol
'sdhci_pci_o2_set_clock' was not declared. Should it be static?
drivers/mmc/host/sdhci-pci-o2micro.c:512:5: warning: symbol
'sdhci_pci_o2_probe_slot' was not declared. Should it be static?
drivers/mmc/host/sdhci-pci-o2micro.c:581:5: warning: symbol
'sdhci_pci_o2_probe' was not declared. Should it be static?
drivers/mmc/host/sdhci-pci-o2micro.c:786:5: warning: symbol
'sdhci_pci_o2_resume' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/1587624199-96926-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Zou Wei and committed by
Ulf Hansson
580b946e 43170255

+4 -4
+4 -4
drivers/mmc/host/sdhci-pci-o2micro.c
··· 494 494 } 495 495 } 496 496 497 - void sdhci_pci_o2_set_clock(struct sdhci_host *host, unsigned int clock) 497 + static void sdhci_pci_o2_set_clock(struct sdhci_host *host, unsigned int clock) 498 498 { 499 499 u16 clk; 500 500 ··· 509 509 sdhci_o2_enable_clk(host, clk); 510 510 } 511 511 512 - int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot) 512 + static int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot) 513 513 { 514 514 struct sdhci_pci_chip *chip; 515 515 struct sdhci_host *host; ··· 578 578 return 0; 579 579 } 580 580 581 - int sdhci_pci_o2_probe(struct sdhci_pci_chip *chip) 581 + static int sdhci_pci_o2_probe(struct sdhci_pci_chip *chip) 582 582 { 583 583 int ret; 584 584 u8 scratch; ··· 783 783 } 784 784 785 785 #ifdef CONFIG_PM_SLEEP 786 - int sdhci_pci_o2_resume(struct sdhci_pci_chip *chip) 786 + static int sdhci_pci_o2_resume(struct sdhci_pci_chip *chip) 787 787 { 788 788 sdhci_pci_o2_probe(chip); 789 789 return sdhci_pci_resume_host(chip);