lkml.org 
[lkml]   [2015]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4/6] staging: sm750fb: Expose hw712_fillrect externally
    Date
    This patch adds a reference to hw712_fillrect which is not used elsewhere in the driver,
    but appears to be an alternative to the hw_fillrect method. This patch fixes the following sparse warning:-

    drivers/staging/sm750fb/sm750_accel.c:95:5: warning: symbol 'hw712_fillrect' was not declared. Should it be static?

    Signed-off-by: Lorenzo Stoakes <lstoakes@gmail.com>
    ---
    drivers/staging/sm750fb/sm750_accel.c | 2 +-
    drivers/staging/sm750fb/sm750_accel.h | 7 +++++++
    2 files changed, 8 insertions(+), 1 deletion(-)

    diff --git a/drivers/staging/sm750fb/sm750_accel.c b/drivers/staging/sm750fb/sm750_accel.c
    index 4aa763b..6521c3b 100644
    --- a/drivers/staging/sm750fb/sm750_accel.c
    +++ b/drivers/staging/sm750fb/sm750_accel.c
    @@ -92,7 +92,7 @@ void hw_set2dformat(struct lynx_accel * accel,int fmt)
    /* seems sm712 RectFill command is broken,so need use BitBlt to
    * replace it. */

    -static int hw712_fillrect(struct lynx_accel * accel,
    +int hw712_fillrect(struct lynx_accel * accel,
    u32 base,u32 pitch,u32 Bpp,
    u32 x,u32 y,u32 width,u32 height,
    u32 color,u32 rop)
    diff --git a/drivers/staging/sm750fb/sm750_accel.h b/drivers/staging/sm750fb/sm750_accel.h
    index 3ee0bd8..51a9367 100644
    --- a/drivers/staging/sm750fb/sm750_accel.h
    +++ b/drivers/staging/sm750fb/sm750_accel.h
    @@ -238,11 +238,16 @@ void hw_set2dformat(struct lynx_accel * accel,int fmt);

    void hw_de_init(struct lynx_accel * accel);

    +int hw712_fillrect(struct lynx_accel * accel,
    + u32 base,u32 pitch,u32 Bpp,
    + u32 x,u32 y,u32 width,u32 height,
    + u32 color,u32 rop);
    +
    int hw_fillrect(struct lynx_accel * accel,
    u32 base,u32 pitch,u32 Bpp,
    u32 x,u32 y,u32 width,u32 height,
    u32 color,u32 rop);

    int hw_copyarea(
    struct lynx_accel * accel,
    unsigned int sBase, /* Address of source: offset in frame buffer */
    --
    2.3.2


    \
     
     \ /
      Last update: 2015-03-11 02:41    [W:4.241 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site