Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=55850f47333c6e7d932e6426eaed863b27c9cd7f
Commit:     55850f47333c6e7d932e6426eaed863b27c9cd7f
Parent:     6659a0f0bb7481d0f94ca3f203a4e1e406a9694d
Author:     Anton Vorontsov <[EMAIL PROTECTED]>
AuthorDate: Wed Feb 6 01:40:23 2008 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed Feb 6 10:41:21 2008 -0800

    fb: fix warning: no return statement in function returning non-void
    
    Warning is reproducible with selected FB_CFB_REV_PIXELS_IN_BYTE.
    
      CC      drivers/video/sysfillrect.o
    In file included from drivers/video/sysfillrect.c:18:
    drivers/video/fb_draw.h: In function `fb_rev_pixels_in_long':
    drivers/video/fb_draw.h:94: warning: no return statement in function 
returning non-void
      CC      drivers/video/syscopyarea.o
    In file included from drivers/video/syscopyarea.c:22:
    drivers/video/fb_draw.h: In function `fb_rev_pixels_in_long':
    drivers/video/fb_draw.h:94: warning: no return statement in function 
returning non-void
    
    Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]>
    Cc: "Antonino A. Daplas" <[EMAIL PROTECTED]>
    Cc: <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/video/fb_draw.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/video/fb_draw.h b/drivers/video/fb_draw.h
index cdafbe1..a2a0618 100644
--- a/drivers/video/fb_draw.h
+++ b/drivers/video/fb_draw.h
@@ -91,6 +91,7 @@ static inline unsigned long fb_rev_pixels_in_long(unsigned 
long val,
                val = comp(val >> 2, val << 2, REV_PIXELS_MASK2);
        if (bswapmask & 3)
                val = comp(val >> 4, val << 4, REV_PIXELS_MASK4);
+       return val;
 }
 
 static inline u32 fb_shifted_pixels_mask_u32(u32 index, u32 bswapmask)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to