mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
irqchip/gic: Mark gic_init_physaddr() static
We get 1 warning when building kernel with W=1: drivers/irqchip/irq-gic.c:917:13: warning: no previous prototype for 'gic_init_physaddr' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. so this patch marks this function with 'static'. Signed-off-by: Baoyou Xie <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
This commit is contained in:
parent
39a342b252
commit
89c59cca48
1 changed files with 1 additions and 1 deletions
|
|
@ -939,7 +939,7 @@ unsigned long gic_get_sgir_physaddr(void)
|
|||
return gic_dist_physaddr + GIC_DIST_SOFTINT;
|
||||
}
|
||||
|
||||
void __init gic_init_physaddr(struct device_node *node)
|
||||
static void __init gic_init_physaddr(struct device_node *node)
|
||||
{
|
||||
struct resource res;
|
||||
if (of_address_to_resource(node, 0, &res) == 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue