fbdev: Remove __init from chips_hw_init() to fix build failure
PATCH 1/1 fbdev: Remove __init from chips_hw_init() to fix build failure
Fix build failure caused as follows:
The function chipsfb_pci_init() references
the function __init chips_hw_init().
This is often because chipsfb_pci_init lacks a __init annotation or the annotation of chips_hw_init is wrong.
make: *** [drivers] Error 2
by removing the __init annotation from chips_hw_init(). The other thing that could have been done was annotating chipsfb_pci_init(). But that cannot be done since chipsfb_pci_init() is called from non __init functions.
--- drivers/video/fbdev/chipsfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/chipsfb.c +1 -1
@@ -273,7 +273,7 @@ static struct chips_init_reg chips_init_xr[] = { { 0xa8, 0x00 } }; -static void __init chips_hw_init (void ) +static void chips_hw_init (void ) {int i;
Signature · 1 line
1.9.1
Quoted 24 lines · Pranith Kumar
Fix build failure caused as follows:
The function
chipsfb_pci_init()references
the function__initchips_hw_init().
This is often becausechipsfb_pci_initlacks a__initannotation or the annotation ofchips_hw_initis wrong.make: *** [drivers] Error 2
by removing the
__initannotation fromchips_hw_init(). The other thing that could have been done was annotatingchipsfb_pci_init(). But that cannot be done sincechipsfb_pci_init()is called from non__initfunctions.Signed-off-by Pranith Kumar <[email protected]>--- drivers/video/fbdev/chipsfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/video/fbdev/chipsfb.c +0
-0
drivers/video/fbdev/chipsfb.c static struct chips_init_reg chips_init_xr[] = { · line 279
Quoted 8 lines
drivers/video/fbdev/chipsfb.c +1
-1@@ -273,7 +273,7 @@ static struct chips_init_reg chips_init_xr[] = { { 0xa8, 0x00 } }; -static void __init chips_hw_init (void ) +static void chips_hw_init (void ) {int i;
Thanks, queued for 3.17 fbdev fixes.
Tomi