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

bcma: make some functions static

The functions and structs are not used in an other file and the
prototypes are in no header file, just make them static so the compiler
is able to optimize them better.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Hauke Mehrtens and committed by
John W. Linville
94f3457f 9bc63816

+9 -8
+2 -2
drivers/bcma/driver_chipcommon_pmu.c
··· 101 101 bcma_cc_write32(cc, BCMA_CC_CHIPCTL, val); 102 102 } 103 103 104 - void bcma_pmu_workarounds(struct bcma_drv_cc *cc) 104 + static void bcma_pmu_workarounds(struct bcma_drv_cc *cc) 105 105 { 106 106 struct bcma_bus *bus = cc->core->bus; 107 107 ··· 257 257 } 258 258 259 259 /* query bus clock frequency for PMU-enabled chipcommon */ 260 - u32 bcma_pmu_get_clockcontrol(struct bcma_drv_cc *cc) 260 + static u32 bcma_pmu_get_clockcontrol(struct bcma_drv_cc *cc) 261 261 { 262 262 struct bcma_bus *bus = cc->core->bus; 263 263
+6 -5
drivers/bcma/host_pci.c
··· 77 77 } 78 78 79 79 #ifdef CONFIG_BCMA_BLOCKIO 80 - void bcma_host_pci_block_read(struct bcma_device *core, void *buffer, 81 - size_t count, u16 offset, u8 reg_width) 80 + static void bcma_host_pci_block_read(struct bcma_device *core, void *buffer, 81 + size_t count, u16 offset, u8 reg_width) 82 82 { 83 83 void __iomem *addr = core->bus->mmio + offset; 84 84 if (core->bus->mapped_core != core) ··· 100 100 } 101 101 } 102 102 103 - void bcma_host_pci_block_write(struct bcma_device *core, const void *buffer, 104 - size_t count, u16 offset, u8 reg_width) 103 + static void bcma_host_pci_block_write(struct bcma_device *core, 104 + const void *buffer, size_t count, 105 + u16 offset, u8 reg_width) 105 106 { 106 107 void __iomem *addr = core->bus->mmio + offset; 107 108 if (core->bus->mapped_core != core) ··· 140 139 iowrite32(value, core->bus->mmio + (1 * BCMA_CORE_SIZE) + offset); 141 140 } 142 141 143 - const struct bcma_host_ops bcma_host_pci_ops = { 142 + static const struct bcma_host_ops bcma_host_pci_ops = { 144 143 .read8 = bcma_host_pci_read8, 145 144 .read16 = bcma_host_pci_read16, 146 145 .read32 = bcma_host_pci_read32,
+1 -1
drivers/bcma/host_soc.c
··· 143 143 writel(value, core->io_wrap + offset); 144 144 } 145 145 146 - const struct bcma_host_ops bcma_host_soc_ops = { 146 + static const struct bcma_host_ops bcma_host_soc_ops = { 147 147 .read8 = bcma_host_soc_read8, 148 148 .read16 = bcma_host_soc_read16, 149 149 .read32 = bcma_host_soc_read32,