1. 08 Sep, 2014 37 commits
  2. 07 Sep, 2014 3 commits
    • Loïc Pellegrino's avatar
      staging/lustre: Different prototypes between the declaration and the definition · 8fa74ef2
      Loïc Pellegrino authored
      Align the prototype of lprocfs_wr_uint() in the declaration with the one used
      in the definition.
      
      The prototype is:
      int lprocfs_wr_uint(struct file *file, const char __user *buffer,
                          unsigned long count, void *data)
      In obdclass/lprocfs_status.c
      
      But in lustre/include/lprocfs_status.h, the __user annotation is missing for
      the attribute buffer.
      
      The correct prototype is the first one (the definition) since:
      - This function is eventually called by the write() function pointer of an
      instance of struct file_operations
      - In this function, buffer is a parameter of copy_from_user()
      - Before the commit 73bb1da6, the declaration
      and the definition had the same prototype, but only the .c has been updated.
      
      Correcting this will remove a sparse error and add sparse warnings.
      This is a task of the Eudyptula challenge.
      Signed-off-by: default avatarLoïc Pellegrino <oort10@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8fa74ef2
    • LABBE Corentin's avatar
      staging: lustre: Annotate user buffer with __user · 5a08f067
      LABBE Corentin authored
      Fix the warning reported by sparse on drivers/staging/lustre/lnet/lnet/router_proc.c
      warning: incorrect type in argument 4 (different address spaces)
      The correction is to annotate all user buffer variable by __user
      Signed-off-by: default avatarLABBE Corentin <clabbe.montjoie@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5a08f067
    • Nicolas Thery's avatar
      staging: rtl8188eu: include missing header · f60705fd
      Nicolas Thery authored
      This patch fixes the following sparse warnings:
      
      drivers/staging/rtl8188eu/hal/phy.c:46:5: warning: symbol
      'phy_query_bb_reg' was not declared. Should it be static?
      drivers/staging/rtl8188eu/hal/phy.c:56:6: warning: symbol
      'phy_set_bb_reg' was not declared. Should it be static?
      drivers/staging/rtl8188eu/hal/phy.c:129:5: warning: symbol
      'phy_query_rf_reg' was not declared. Should it be static?
      drivers/staging/rtl8188eu/hal/phy.c:140:6: warning: symbol
      'phy_set_rf_reg' was not declared. Should it be static?
      drivers/staging/rtl8188eu/hal/phy.c:228:6: warning: symbol
      'phy_set_tx_power_level' was not declared. Should it be static?
      drivers/staging/rtl8188eu/hal/phy.c:324:6: warning: symbol
      'phy_set_bw_mode' was not declared. Should it be static?
      drivers/staging/rtl8188eu/hal/phy.c:360:6: warning: symbol 'phy_sw_chnl'
      was not declared. Should it be static?
      Signed-off-by: default avatarNicolas Thery <nthery@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f60705fd