Re: [PATCH 2/4] staging: rtl8188eu: include: fixed multiple parentheses coding style issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi K,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on staging/staging-testing]

url:    https://github.com/0day-ci/linux/commits/B-K-Karthik/staging-rtl8188eu-include-fixed-multiple-blank-space-coding-style-issues/20200718-172103
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 9d5d041eebe3dcf7591ff7004896c329eb841ca6
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ed6b578040a85977026c93bf4188f996148f3218)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

   drivers/staging/rtl8188eu/core/rtw_ap.c:1606:29: warning: expression result unused [-Wunused-value]
           DBG_88E(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(padapter->pnetdev));
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/osdep_service.h:79:30: note: expanded from macro 'FUNC_NDEV_ARG'
   #define FUNC_NDEV_ARG(ndev) (__func__, (ndev)->name)
                                ^~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                           ^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_ap.c:1606:10: warning: more '%' conversions than data arguments [-Wformat]
           DBG_88E(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(padapter->pnetdev));
                   ^~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/osdep_service.h:78:28: note: expanded from macro 'FUNC_NDEV_FMT'
   #define FUNC_NDEV_FMT "%s(%s)"
                             ~^
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ^~~
   include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
   #define pr_fmt(fmt) fmt
                       ^~~
   2 warnings generated.
--
   drivers/staging/rtl8188eu/core/rtw_ioctl_set.c:427:42: warning: expression result unused [-Wunused-value]
                           DBG_88E(FUNC_ADPT_FMT": scan deny\n", FUNC_ADPT_ARG(padapter));
                                                                 ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/osdep_service.h:81:33: note: expanded from macro 'FUNC_ADPT_ARG'
   #define FUNC_ADPT_ARG(adapter) (__func__, (adapter)->pnetdev->name)
                                   ^~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                           ^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_ioctl_set.c:427:12: warning: more '%' conversions than data arguments [-Wformat]
                           DBG_88E(FUNC_ADPT_FMT": scan deny\n", FUNC_ADPT_ARG(padapter));
                                   ^~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/osdep_service.h:80:28: note: expanded from macro 'FUNC_ADPT_FMT'
   #define FUNC_ADPT_FMT "%s(%s)"
                             ~^
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ^~~
   include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
   #define pr_fmt(fmt) fmt
                       ^~~
   2 warnings generated.
--
   drivers/staging/rtl8188eu/core/rtw_mlme.c:1345:41: warning: expression result unused [-Wunused-value]
           DBG_88E(FUNC_ADPT_FMT" fw_state=%x\n", FUNC_ADPT_ARG(adapter), get_fwstate(pmlmepriv));
                                                  ^~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/osdep_service.h:81:33: note: expanded from macro 'FUNC_ADPT_ARG'
   #define FUNC_ADPT_ARG(adapter) (__func__, (adapter)->pnetdev->name)
                                   ^~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                           ^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_mlme.c:1345:65: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
           DBG_88E(FUNC_ADPT_FMT" fw_state=%x\n", FUNC_ADPT_ARG(adapter), get_fwstate(pmlmepriv));
                   ~~~~~~~~~~~~~                                          ^~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_mlme.c:1345:35: warning: more '%' conversions than data arguments [-Wformat]
           DBG_88E(FUNC_ADPT_FMT" fw_state=%x\n", FUNC_ADPT_ARG(adapter), get_fwstate(pmlmepriv));
                                           ~^
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ^~~
   include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
   #define pr_fmt(fmt) fmt
                       ^~~
   3 warnings generated.
--
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:720:5: warning: expression result unused [-Wunused-value]
                                   FUNC_ADPT_ARG(padapter), da, rtw_get_oper_ch(padapter),
                                   ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/osdep_service.h:81:33: note: expanded from macro 'FUNC_ADPT_ARG'
   #define FUNC_ADPT_ARG(adapter) (__func__, (adapter)->pnetdev->name)
                                   ^~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                           ^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:720:34: warning: format specifies type 'void *' but the argument has type 'u8' (aka 'unsigned char') [-Wformat]
                                   FUNC_ADPT_ARG(padapter), da, rtw_get_oper_ch(padapter),
                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:721:5: warning: format specifies type 'unsigned int' but the argument has type 'char *' [-Wformat]
                                   ret == _SUCCESS ? ", acked" : "", i, try_cnt,
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                           ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:721:39: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
                                   ret == _SUCCESS ? ", acked" : "", i, try_cnt,
                                                                     ^
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:719:54: warning: more '%' conversions than data arguments [-Wformat]
                           DBG_88E(FUNC_ADPT_FMT" to %pM, ch:%u%s, %d/%d in %u ms\n",
                                                                            ~^
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ^~~
   include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
   #define pr_fmt(fmt) fmt
                       ^~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:725:5: warning: expression result unused [-Wunused-value]
                                   FUNC_ADPT_ARG(padapter), rtw_get_oper_ch(padapter),
                                   ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/osdep_service.h:81:33: note: expanded from macro 'FUNC_ADPT_ARG'
   #define FUNC_ADPT_ARG(adapter) (__func__, (adapter)->pnetdev->name)
                                   ^~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                           ^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:725:30: warning: format specifies type 'char *' but the argument has type 'u8' (aka 'unsigned char') [-Wformat]
                                   FUNC_ADPT_ARG(padapter), rtw_get_oper_ch(padapter),
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:726:5: warning: format specifies type 'unsigned int' but the argument has type 'char *' [-Wformat]
                                   ret == _SUCCESS ? ", acked" : "", i, try_cnt,
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                           ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:726:39: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
                                   ret == _SUCCESS ? ", acked" : "", i, try_cnt,
                                                                     ^
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:724:47: warning: more '%' conversions than data arguments [-Wformat]
                           DBG_88E(FUNC_ADPT_FMT", ch:%u%s, %d/%d in %u ms\n",
                                                                     ~^
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ^~~
   include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
   #define pr_fmt(fmt) fmt
                       ^~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1289:5: warning: expression result unused [-Wunused-value]
                                   FUNC_ADPT_ARG(padapter), da, rtw_get_oper_ch(padapter),
                                   ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/osdep_service.h:81:33: note: expanded from macro 'FUNC_ADPT_ARG'
   #define FUNC_ADPT_ARG(adapter) (__func__, (adapter)->pnetdev->name)
                                   ^~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                           ^~~~~~~~~~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1289:34: warning: format specifies type 'void *' but the argument has type 'u8' (aka 'unsigned char') [-Wformat]
                                   FUNC_ADPT_ARG(padapter), da, rtw_get_oper_ch(padapter),
                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1290:5: warning: format specifies type 'unsigned int' but the argument has type 'char *' [-Wformat]
                                   ret == _SUCCESS ? ", acked" : "", i, try_cnt,
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                           ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1290:39: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
                                   ret == _SUCCESS ? ", acked" : "", i, try_cnt,
                                                                     ^
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1288:54: warning: more '%' conversions than data arguments [-Wformat]
                           DBG_88E(FUNC_ADPT_FMT" to %pM, ch:%u%s, %d/%d in %u ms\n",
                                                                            ~^
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ^~~
   include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
   #define pr_fmt(fmt) fmt
                       ^~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1294:5: warning: expression result unused [-Wunused-value]
                                   FUNC_ADPT_ARG(padapter), rtw_get_oper_ch(padapter),
                                   ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/osdep_service.h:81:33: note: expanded from macro 'FUNC_ADPT_ARG'
   #define FUNC_ADPT_ARG(adapter) (__func__, (adapter)->pnetdev->name)
                                   ^~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
--
                                                                            ~^
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ^~~
   include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
   #define pr_fmt(fmt) fmt
                       ^~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1531:5: warning: expression result unused [-Wunused-value]
                                   FUNC_ADPT_ARG(padapter), rtw_get_oper_ch(padapter),
                                   ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/osdep_service.h:81:33: note: expanded from macro 'FUNC_ADPT_ARG'
   #define FUNC_ADPT_ARG(adapter) (__func__, (adapter)->pnetdev->name)
                                   ^~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                           ^~~~~~~~~~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1531:30: warning: format specifies type 'char *' but the argument has type 'u8' (aka 'unsigned char') [-Wformat]
                                   FUNC_ADPT_ARG(padapter), rtw_get_oper_ch(padapter),
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1532:5: warning: format specifies type 'unsigned int' but the argument has type 'char *' [-Wformat]
                                   ret == _SUCCESS ? ", acked" : "", i, try_cnt,
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                           ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1532:39: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
                                   ret == _SUCCESS ? ", acked" : "", i, try_cnt,
                                                                     ^
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1530:47: warning: more '%' conversions than data arguments [-Wformat]
                           DBG_88E(FUNC_ADPT_FMT", ch:%u%s, %d/%d in %u ms\n",
                                                                     ~^
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ^~~
   include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
   #define pr_fmt(fmt) fmt
                       ^~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:3536:29: warning: expression result unused [-Wunused-value]
           DBG_88E(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(padapter->pnetdev));
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/osdep_service.h:79:30: note: expanded from macro 'FUNC_NDEV_ARG'
   #define FUNC_NDEV_ARG(ndev) (__func__, (ndev)->name)
                                ^~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                           ^~~~~~~~~~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:3536:10: warning: more '%' conversions than data arguments [-Wformat]
           DBG_88E(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(padapter->pnetdev));
                   ^~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/osdep_service.h:78:28: note: expanded from macro 'FUNC_NDEV_FMT'
   #define FUNC_NDEV_FMT "%s(%s)"
                             ~^
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ^~~
   include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
   #define pr_fmt(fmt) fmt
                       ^~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:3669:6: warning: expression result unused [-Wunused-value]
                                           FUNC_ADPT_ARG(adapter), seq_ctrl, mlmeext->action_public_rxseq, token);
                                           ^~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/osdep_service.h:81:33: note: expanded from macro 'FUNC_ADPT_ARG'
   #define FUNC_ADPT_ARG(adapter) (__func__, (adapter)->pnetdev->name)
                                   ^~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                           ^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:3669:30: warning: format specifies type 'char *' but the argument has type 'u16' (aka 'unsigned short') [-Wformat]
                                           FUNC_ADPT_ARG(adapter), seq_ctrl, mlmeext->action_public_rxseq, token);
                                                                   ^~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:3668:66: warning: more '%' conversions than data arguments [-Wformat]
                                   DBG_88E(FUNC_ADPT_FMT" seq_ctrl = 0x%x, rxseq = 0x%x, token:%d\n",
                                                                                               ~^
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ^~~
   include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
   #define pr_fmt(fmt) fmt
                       ^~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:3675:6: warning: expression result unused [-Wunused-value]
                                           FUNC_ADPT_ARG(adapter), seq_ctrl, mlmeext->action_public_rxseq);
                                           ^~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/osdep_service.h:81:33: note: expanded from macro 'FUNC_ADPT_ARG'
   #define FUNC_ADPT_ARG(adapter) (__func__, (adapter)->pnetdev->name)
                                   ^~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                           ^~~~~~~~~~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:3675:30: warning: format specifies type 'char *' but the argument has type 'u16' (aka 'unsigned short') [-Wformat]
                                           FUNC_ADPT_ARG(adapter), seq_ctrl, mlmeext->action_public_rxseq);
                                                                   ^~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:3674:56: warning: more '%' conversions than data arguments [-Wformat]
                                   DBG_88E(FUNC_ADPT_FMT" seq_ctrl = 0x%x, rxseq = 0x%x\n",
                                                                                     ~^
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ^~~
   include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
   #define pr_fmt(fmt) fmt
                       ^~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:4692:34: warning: more '%' conversions than data arguments [-Wformat]
                                           DBG_88E_LEVEL(_drv_always_, FUNC_ADPT_FMT" disconnect or roaming\n",
                                                                       ^~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/osdep_service.h:80:28: note: expanded from macro 'FUNC_ADPT_FMT'
   #define FUNC_ADPT_FMT "%s(%s)"
                             ~^
   drivers/staging/rtl8188eu/include/rtw_debug.h:64:26: note: expanded from macro 'DBG_88E_LEVEL'
                           pr_info(DRIVER_PREFIX fmt, ##arg);      \
                                                 ^~~
   include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ^~~
   include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
   #define pr_fmt(fmt) fmt
                       ^~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:5451:3: warning: expression result unused [-Wunused-value]
                   FUNC_NDEV_ARG(padapter->pnetdev),
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/osdep_service.h:79:30: note: expanded from macro 'FUNC_NDEV_ARG'
   #define FUNC_NDEV_ARG(ndev) (__func__, (ndev)->name)
                                ^~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                           ^~~~~~~~~~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:5452:3: warning: format specifies type 'char *' but the argument has type 'u8' (aka 'unsigned char') [-Wformat]
                   set_ch_parm->ch, set_ch_parm->bw, set_ch_parm->ch_offset);
                   ^~~~~~~~~~~~~~~
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
   drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:5450:50: warning: more '%' conversions than data arguments [-Wformat]
           DBG_88E(FUNC_NDEV_FMT" ch:%u, bw:%u, ch_offset:%u\n",
                                                          ~^
   drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
                           pr_info(DRIVER_PREFIX __VA_ARGS__);             \
                                                 ^~~~~~~~~~~
   include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ^~~
   include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
   #define pr_fmt(fmt) fmt

vim +1606 drivers/staging/rtl8188eu/core/rtw_ap.c

9a7fe54ddc3a70 Larry Finger   2013-08-21  1596  
9a7fe54ddc3a70 Larry Finger   2013-08-21  1597  int rtw_sta_flush(struct adapter *padapter)
9a7fe54ddc3a70 Larry Finger   2013-08-21  1598  {
9a7fe54ddc3a70 Larry Finger   2013-08-21  1599  	struct list_head *phead, *plist;
9a7fe54ddc3a70 Larry Finger   2013-08-21  1600  	struct sta_info *psta = NULL;
9a7fe54ddc3a70 Larry Finger   2013-08-21  1601  	struct sta_priv *pstapriv = &padapter->stapriv;
9a7fe54ddc3a70 Larry Finger   2013-08-21  1602  	struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
8943880eff435a Scott Matheina 2017-01-05  1603  	struct mlme_ext_info	*pmlmeinfo = &pmlmeext->mlmext_info;
9a7fe54ddc3a70 Larry Finger   2013-08-21  1604  	u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
9a7fe54ddc3a70 Larry Finger   2013-08-21  1605  
9a7fe54ddc3a70 Larry Finger   2013-08-21 @1606  	DBG_88E(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(padapter->pnetdev));
9a7fe54ddc3a70 Larry Finger   2013-08-21  1607  
9a7fe54ddc3a70 Larry Finger   2013-08-21  1608  	if ((pmlmeinfo->state & 0x03) != WIFI_FW_AP_STATE)
9cc56fa8276520 Heena Sirwani  2014-10-06  1609  		return 0;
9a7fe54ddc3a70 Larry Finger   2013-08-21  1610  
7057dcb3afa294 Larry Finger   2013-12-19  1611  	spin_lock_bh(&pstapriv->asoc_list_lock);
9a7fe54ddc3a70 Larry Finger   2013-08-21  1612  	phead = &pstapriv->asoc_list;
c44e5e39c3d168 Larry Finger   2014-02-09  1613  	plist = phead->next;
9a7fe54ddc3a70 Larry Finger   2013-08-21  1614  
9a7fe54ddc3a70 Larry Finger   2013-08-21  1615  	/* free sta asoc_queue */
84660700807cbc navin patidar  2014-06-22  1616  	while (phead != plist) {
bea8810043b9a6 Larry Finger   2014-02-09  1617  		psta = container_of(plist, struct sta_info, asoc_list);
9a7fe54ddc3a70 Larry Finger   2013-08-21  1618  
c44e5e39c3d168 Larry Finger   2014-02-09  1619  		plist = plist->next;
9a7fe54ddc3a70 Larry Finger   2013-08-21  1620  
8d5bdece42d9cb navin patidar  2014-06-22  1621  		list_del_init(&psta->asoc_list);
9a7fe54ddc3a70 Larry Finger   2013-08-21  1622  		pstapriv->asoc_list_cnt--;
9a7fe54ddc3a70 Larry Finger   2013-08-21  1623  
9a7fe54ddc3a70 Larry Finger   2013-08-21  1624  		ap_free_sta(padapter, psta, true, WLAN_REASON_DEAUTH_LEAVING);
9a7fe54ddc3a70 Larry Finger   2013-08-21  1625  	}
e02bcf6126fa59 Larry Finger   2013-12-19  1626  	spin_unlock_bh(&pstapriv->asoc_list_lock);
9a7fe54ddc3a70 Larry Finger   2013-08-21  1627  
9a7fe54ddc3a70 Larry Finger   2013-08-21  1628  	issue_deauth(padapter, bc_addr, WLAN_REASON_DEAUTH_LEAVING);
9a7fe54ddc3a70 Larry Finger   2013-08-21  1629  
9a7fe54ddc3a70 Larry Finger   2013-08-21  1630  	associated_clients_update(padapter, true);
9a7fe54ddc3a70 Larry Finger   2013-08-21  1631  
9cc56fa8276520 Heena Sirwani  2014-10-06  1632  	return 0;
9a7fe54ddc3a70 Larry Finger   2013-08-21  1633  }
9a7fe54ddc3a70 Larry Finger   2013-08-21  1634  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux