1. 20 Jun, 2014 37 commits
  2. 19 Jun, 2014 3 commits
    • James A Shackleford's avatar
      staging: skein: fix sparse warning for static arrays · df37d1ac
      James A Shackleford authored
      This patch fixes the following sparse warnings:
      
      skein_iv.h:23:11: warning: symbol 'SKEIN_256_IV_128' was not declared. Should it be static?
      skein_iv.h:31:11: warning: symbol 'SKEIN_256_IV_160' was not declared. Should it be static?
      skein_iv.h:39:11: warning: symbol 'SKEIN_256_IV_224' was not declared. Should it be static?
      skein_iv.h:47:11: warning: symbol 'SKEIN_256_IV_256' was not declared. Should it be static?
      skein_iv.h:55:11: warning: symbol 'SKEIN_512_IV_128' was not declared. Should it be static?
      skein_iv.h:67:11: warning: symbol 'SKEIN_512_IV_160' was not declared. Should it be static?
      skein_iv.h:79:11: warning: symbol 'SKEIN_512_IV_224' was not declared. Should it be static?
      skein_iv.h:91:11: warning: symbol 'SKEIN_512_IV_256' was not declared. Should it be static?
      skein_iv.h:103:11: warning: symbol 'SKEIN_512_IV_384' was not declared. Should it be static?
      skein_iv.h:115:11: warning: symbol 'SKEIN_512_IV_512' was not declared. Should it be static?
      skein_iv.h:127:11: warning: symbol 'SKEIN_1024_IV_384' was not declared. Should it be static?
      skein_iv.h:147:11: warning: symbol 'SKEIN_1024_IV_512' was not declared. Should it be static?
      skein_iv.h:167:11: warning: symbol 'SKEIN_1024_IV_1024' was not declared. Should it be static?
      
      by declaring the initialization vectors in question as static.  The header
      skein_iv.h is only included by skein.c
      Signed-off-by: default avatarJames A Shackleford <shack@linux.com>
      Acked-by: default avatarJason Cooper <jason@lakedaemon.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      df37d1ac
    • Marcus Farkas's avatar
      staging: rtl8821ae: fix sparse warning for static declarations · 949c4ef0
      Marcus Farkas authored
      This commit fixes the following sparse warnings in ps.c:
        - 702: warning: symbol 'rtl_p2p_noa_ie' was not declared. Should it be static?
        - 802: warning: symbol 'rtl_p2p_action_ie' was not declared. Should it be static?
      Signed-off-by: default avatarMarcus Farkas <marcus.farkas@finitebox.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      949c4ef0
    • Vitaly Osipov's avatar
      staging: rtl8712: replace kmalloc(..., sizeof(T)) · bd9dc62c
      Vitaly Osipov authored
      As suggested by Andy Shevchenko on driverdev-devel, replace
      v = ... sizeof(struct type_of_v) -> sizeof(*v)
      
      Based on a cocci patch along the lines of
      
      @@
      type T;
      expression E;
      identifier V;
      @@
      
      T *V;
      ...
      - V = kmalloc(sizeof(T), E);
      + V = kmalloc(sizeof(*V), E);
      
      @@
      type T;
      expression E;
      identifier V;
      @@
      
      T *V;
      ...
      - V = kzalloc(sizeof(T), E);
      + V = kzalloc(sizeof(*V), E);
      Signed-off-by: default avatarVitaly Osipov <vitaly.osipov@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      bd9dc62c