powerpc/sparse: Make a bunch of things static
Squash a bunch of sparse warnings by making things static. Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
此提交包含在:
@@ -189,7 +189,7 @@ static struct device_node *cbe_get_be_node(int cpu_id)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void __init cbe_fill_regs_map(struct cbe_regs_map *map)
|
||||
static void __init cbe_fill_regs_map(struct cbe_regs_map *map)
|
||||
{
|
||||
if(map->be_node) {
|
||||
struct device_node *be, *np;
|
||||
|
@@ -651,7 +651,7 @@ static int dma_fixed_dma_supported(struct device *dev, u64 mask)
|
||||
|
||||
static int dma_set_mask_and_switch(struct device *dev, u64 dma_mask);
|
||||
|
||||
struct dma_map_ops dma_iommu_fixed_ops = {
|
||||
static struct dma_map_ops dma_iommu_fixed_ops = {
|
||||
.alloc = dma_fixed_alloc_coherent,
|
||||
.free = dma_fixed_free_coherent,
|
||||
.map_sg = dma_fixed_map_sg,
|
||||
|
@@ -298,7 +298,7 @@ int cbe_sysreset_hack(void)
|
||||
}
|
||||
#endif /* CONFIG_PPC_IBM_CELL_RESETBUTTON */
|
||||
|
||||
int __init cbe_ptcal_init(void)
|
||||
static int __init cbe_ptcal_init(void)
|
||||
{
|
||||
int ret;
|
||||
ptcal_start_tok = rtas_token("ibm,cbe-start-ptcal");
|
||||
|
新增問題並參考
封鎖使用者