video: fbdev: intelfb: move inline before return type
authorJoe Perches <[email protected]>
Wed, 12 Jul 2017 21:37:43 +0000 (14:37 -0700)
committerLinus Torvalds <[email protected]>
Wed, 12 Jul 2017 23:26:04 +0000 (16:26 -0700)
Make the code like the rest of the kernel.

But there is an oddity here because the inline should probably be removed.

It's an extern function in intelfb.h and it is used in intelfbdrv.c and
intelfbhw.c.

The inline is kept here as I suppose it's possible for some compiler to
make the uses inline in intelfbdrv and and also create an external
function for intelfbhw.

Link: http://lkml.kernel.org/r/8ba151a1fdc84e42cbf4aafc798513c0158edee1.1499284835.git.joe@perches.com
Signed-off-by: Joe Perches <[email protected]>
Cc: Maik Broemme <[email protected]>
Cc: Bartlomiej Zolnierkiewicz <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/video/fbdev/intelfb/intelfbdrv.c

index 6b444400a86c2252c7f0c165869113f8393ca1a3..ffc391208b27152ffcea7ce1a6842ecceb754597 100644 (file)
@@ -907,7 +907,7 @@ static void intelfb_pci_unregister(struct pci_dev *pdev)
  *                       helper functions                      *
  ***************************************************************/
 
-int __inline__ intelfb_var_to_depth(const struct fb_var_screeninfo *var)
+__inline__ int intelfb_var_to_depth(const struct fb_var_screeninfo *var)
 {
        DBG_MSG("intelfb_var_to_depth: bpp: %d, green.length is %d\n",
                var->bits_per_pixel, var->green.length);