• Pekka Enberg's avatar
    [media] media, rc: Use static inline functions to kill warnings · 600836cc
    Pekka Enberg authored
    This patch converts some ifdef'd wrapper functions from macros to static inline
    functions to kill the following warnings issued by GCC:
    
        CC [M]  drivers/media/rc/ir-raw.o
      drivers/media/rc/ir-raw.c: In function ‘init_decoders’:
      drivers/media/rc/ir-raw.c:353:2: warning: statement with no effect [-Wunused-value]
      drivers/media/rc/ir-raw.c:354:2: warning: statement with no effect [-Wunused-value]
      drivers/media/rc/ir-raw.c:355:2: warning: statement with no effect [-Wunused-value]
      drivers/media/rc/ir-raw.c:356:2: warning: statement with no effect [-Wunused-value]
      drivers/media/rc/ir-raw.c:357:2: warning: statement with no effect [-Wunused-value]
      drivers/media/rc/ir-raw.c:359:2: warning: statement with no effect [-Wunused-value]
    
    Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
    Cc: "David Härdeman" <david@hardeman.nu>
    Cc: Jarod Wilson <jarod@redhat.com>
    Cc: <linux-media@vger.kernel.org>
    Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
    600836cc
rc-core-priv.h 5.14 KB