LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [linux-stable-rc:linux-5.4.y 1142/1473] drivers/net/wireless/marvell/mwifiex/cmdevt.c:217:22: warning: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts
@ 2021-08-25 12:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-25 12:06 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: clang-built-linux, kbuild-all, linux-kernel, Greg Kroah-Hartman,
	Nathan Chancellor, Nick Desaulniers

[-- Attachment #1: Type: text/plain, Size: 23459 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
head:   e32f4fa1b24d825b2560ca9cfbfd9df44a4310b4
commit: 62353048e2d4e398cfc22dbee3e1a7f6f535dcc1 [1142/1473] kbuild: support LLVM=1 to switch the default tools to Clang/LLVM
config: hexagon-buildonly-randconfig-r006-20210825 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ea08c4cd1c0869ec5024a8bb3f5cdf06ab03ae83)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=62353048e2d4e398cfc22dbee3e1a7f6f535dcc1
        git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
        git fetch --no-tags linux-stable-rc linux-5.4.y
        git checkout 62353048e2d4e398cfc22dbee3e1a7f6f535dcc1
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=hexagon 

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

All warnings (new ones prefixed by >>):

>> drivers/net/wireless/marvell/mwifiex/cmdevt.c:217:22: warning: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Wcompound-token-split-by-macro]
           host_cmd->seq_num = cpu_to_le16(HostCmd_SET_SEQ_NO_BSS_INFO
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/byteorder/generic.h:90:21: note: expanded from macro 'cpu_to_le16'
   #define cpu_to_le16 __cpu_to_le16
                       ^
   include/uapi/linux/byteorder/little_endian.h:35:50: note: expanded from macro '__cpu_to_le16'
   #define __cpu_to_le16(x) ((__force __le16)(__u16)(x))
                                                    ^
   drivers/net/wireless/marvell/mwifiex/cmdevt.c:217:34: note: '{' token is here
           host_cmd->seq_num = cpu_to_le16(HostCmd_SET_SEQ_NO_BSS_INFO
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/wireless/marvell/mwifiex/fw.h:515:53: note: expanded from macro 'HostCmd_SET_SEQ_NO_BSS_INFO'
   #define HostCmd_SET_SEQ_NO_BSS_INFO(seq, num, type) {   \
                                                       ^
   include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__cpu_to_le16'
   #define __cpu_to_le16(x) ((__force __le16)(__u16)(x))
                                                     ^
>> drivers/net/wireless/marvell/mwifiex/cmdevt.c:217:34: warning: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Wcompound-token-split-by-macro]
           host_cmd->seq_num = cpu_to_le16(HostCmd_SET_SEQ_NO_BSS_INFO
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/wireless/marvell/mwifiex/fw.h:518:46: note: expanded from macro 'HostCmd_SET_SEQ_NO_BSS_INFO'
           (((type) & 0x000f) << 12);                  }
                                                       ^
   include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__cpu_to_le16'
   #define __cpu_to_le16(x) ((__force __le16)(__u16)(x))
                                                     ^
   drivers/net/wireless/marvell/mwifiex/cmdevt.c:217:22: note: ')' token is here
           host_cmd->seq_num = cpu_to_le16(HostCmd_SET_SEQ_NO_BSS_INFO
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/byteorder/generic.h:90:21: note: expanded from macro 'cpu_to_le16'
   #define cpu_to_le16 __cpu_to_le16
                       ^
   include/uapi/linux/byteorder/little_endian.h:35:52: note: expanded from macro '__cpu_to_le16'
   #define __cpu_to_le16(x) ((__force __le16)(__u16)(x))
                                                      ^
   drivers/net/wireless/marvell/mwifiex/cmdevt.c:325:15: warning: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Wcompound-token-split-by-macro]
                   cpu_to_le16((HostCmd_SET_SEQ_NO_BSS_INFO
                               ^
   include/linux/byteorder/generic.h:90:21: note: expanded from macro 'cpu_to_le16'
   #define cpu_to_le16 __cpu_to_le16
                       ^
   include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__cpu_to_le16'
   #define __cpu_to_le16(x) ((__force __le16)(__u16)(x))
                                                     ^
   drivers/net/wireless/marvell/mwifiex/cmdevt.c:325:16: note: '{' token is here
                   cpu_to_le16((HostCmd_SET_SEQ_NO_BSS_INFO
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/wireless/marvell/mwifiex/fw.h:515:53: note: expanded from macro 'HostCmd_SET_SEQ_NO_BSS_INFO'
   #define HostCmd_SET_SEQ_NO_BSS_INFO(seq, num, type) {   \
                                                       ^
   include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__cpu_to_le16'
   #define __cpu_to_le16(x) ((__force __le16)(__u16)(x))
                                                     ^
   drivers/net/wireless/marvell/mwifiex/cmdevt.c:325:16: warning: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Wcompound-token-split-by-macro]
                   cpu_to_le16((HostCmd_SET_SEQ_NO_BSS_INFO
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/wireless/marvell/mwifiex/fw.h:518:46: note: expanded from macro 'HostCmd_SET_SEQ_NO_BSS_INFO'
           (((type) & 0x000f) << 12);                  }
                                                       ^
   include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__cpu_to_le16'
   #define __cpu_to_le16(x) ((__force __le16)(__u16)(x))
                                                     ^
   drivers/net/wireless/marvell/mwifiex/cmdevt.c:327:22: note: ')' token is here
                                            priv->bss_type)));
                                                           ^
   include/linux/byteorder/generic.h:90:21: note: expanded from macro 'cpu_to_le16'
   #define cpu_to_le16 __cpu_to_le16
                       ^
   include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__cpu_to_le16'
   #define __cpu_to_le16(x) ((__force __le16)(__u16)(x))
                                                     ^
   4 warnings generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for FRAME_POINTER
   Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
   Selected by
   - LOCKDEP && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && !MIPS && !PPC && !ARM && !S390 && !MICROBLAZE && !ARC && !X86


vim +217 drivers/net/wireless/marvell/mwifiex/cmdevt.c

5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  177  
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  178  	struct mwifiex_adapter *adapter = priv->adapter;
270e58e8898c8b drivers/net/wireless/mwifiex/cmdevt.c         Yogesh Ashok Powar 2011-05-03  179  	int ret;
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  180  	struct host_cmd_ds_command *host_cmd;
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  181  	uint16_t cmd_code;
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  182  	uint16_t cmd_size;
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  183  
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  184  	if (!adapter || !cmd_node)
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  185  		return -1;
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  186  
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  187  	host_cmd = (struct host_cmd_ds_command *) (cmd_node->cmd_skb->data);
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  188  
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  189  	/* Sanity test */
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  190  	if (host_cmd == NULL || host_cmd->size == 0) {
acebe8c10a6eab drivers/net/wireless/mwifiex/cmdevt.c         Zhaoyang Liu       2015-05-12  191  		mwifiex_dbg(adapter, ERROR,
acebe8c10a6eab drivers/net/wireless/mwifiex/cmdevt.c         Zhaoyang Liu       2015-05-12  192  			    "DNLD_CMD: host_cmd is null\t"
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  193  			    "or cmd size is 0, not sending\n");
600f5d909a54a8 drivers/net/wireless/mwifiex/cmdevt.c         Amitkumar Karwar   2011-04-13  194  		if (cmd_node->wait_q_enabled)
600f5d909a54a8 drivers/net/wireless/mwifiex/cmdevt.c         Amitkumar Karwar   2011-04-13  195  			adapter->cmd_wait_q.status = -1;
9908b07465556d drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2013-04-01  196  		mwifiex_recycle_cmd_node(adapter, cmd_node);
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  197  		return -1;
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  198  	}
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  199  
a3e240cacc93a0 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2013-03-15  200  	cmd_code = le16_to_cpu(host_cmd->command);
74f202aaae0a95 drivers/net/wireless/marvell/mwifiex/cmdevt.c Swati Kushwaha     2019-06-21  201  	cmd_node->cmd_no = cmd_code;
a3e240cacc93a0 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2013-03-15  202  	cmd_size = le16_to_cpu(host_cmd->size);
a3e240cacc93a0 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2013-03-15  203  
a3e240cacc93a0 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2013-03-15  204  	if (adapter->hw_status == MWIFIEX_HW_STATUS_RESET &&
a3e240cacc93a0 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2013-03-15  205  	    cmd_code != HostCmd_CMD_FUNC_SHUTDOWN &&
a3e240cacc93a0 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2013-03-15  206  	    cmd_code != HostCmd_CMD_FUNC_INIT) {
acebe8c10a6eab drivers/net/wireless/mwifiex/cmdevt.c         Zhaoyang Liu       2015-05-12  207  		mwifiex_dbg(adapter, ERROR,
a3e240cacc93a0 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2013-03-15  208  			    "DNLD_CMD: FW in reset state, ignore cmd %#x\n",
a3e240cacc93a0 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2013-03-15  209  			cmd_code);
9908b07465556d drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2013-04-01  210  		mwifiex_recycle_cmd_node(adapter, cmd_node);
ace273551b7c9c drivers/net/wireless/mwifiex/cmdevt.c         Amitkumar Karwar   2014-02-27  211  		queue_work(adapter->workqueue, &adapter->main_work);
a3e240cacc93a0 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2013-03-15  212  		return -1;
a3e240cacc93a0 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2013-03-15  213  	}
a3e240cacc93a0 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2013-03-15  214  
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  215  	/* Set command sequence number */
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  216  	adapter->seq_num++;
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21 @217  	host_cmd->seq_num = cpu_to_le16(HostCmd_SET_SEQ_NO_BSS_INFO
aea0701e221e46 drivers/net/wireless/mwifiex/cmdevt.c         Yogesh Ashok Powar 2012-03-13  218  					(adapter->seq_num,
aea0701e221e46 drivers/net/wireless/mwifiex/cmdevt.c         Yogesh Ashok Powar 2012-03-13  219  					 cmd_node->priv->bss_num,
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  220  					 cmd_node->priv->bss_type));
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  221  
8a7f9fd8a3e09c drivers/net/wireless/marvell/mwifiex/cmdevt.c Brian Norris       2019-06-25  222  	spin_lock_bh(&adapter->mwifiex_cmd_lock);
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  223  	adapter->curr_cmd = cmd_node;
8a7f9fd8a3e09c drivers/net/wireless/marvell/mwifiex/cmdevt.c Brian Norris       2019-06-25  224  	spin_unlock_bh(&adapter->mwifiex_cmd_lock);
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  225  
da25186fc605af drivers/net/wireless/mwifiex/cmdevt.c         Stone Piao         2012-08-22  226  	/* Adjust skb length */
da25186fc605af drivers/net/wireless/mwifiex/cmdevt.c         Stone Piao         2012-08-22  227  	if (cmd_node->cmd_skb->len > cmd_size)
da25186fc605af drivers/net/wireless/mwifiex/cmdevt.c         Stone Piao         2012-08-22  228  		/*
da25186fc605af drivers/net/wireless/mwifiex/cmdevt.c         Stone Piao         2012-08-22  229  		 * cmd_size is less than sizeof(struct host_cmd_ds_command).
da25186fc605af drivers/net/wireless/mwifiex/cmdevt.c         Stone Piao         2012-08-22  230  		 * Trim off the unused portion.
da25186fc605af drivers/net/wireless/mwifiex/cmdevt.c         Stone Piao         2012-08-22  231  		 */
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  232  		skb_trim(cmd_node->cmd_skb, cmd_size);
da25186fc605af drivers/net/wireless/mwifiex/cmdevt.c         Stone Piao         2012-08-22  233  	else if (cmd_node->cmd_skb->len < cmd_size)
da25186fc605af drivers/net/wireless/mwifiex/cmdevt.c         Stone Piao         2012-08-22  234  		/*
da25186fc605af drivers/net/wireless/mwifiex/cmdevt.c         Stone Piao         2012-08-22  235  		 * cmd_size is larger than sizeof(struct host_cmd_ds_command)
da25186fc605af drivers/net/wireless/mwifiex/cmdevt.c         Stone Piao         2012-08-22  236  		 * because we have appended custom IE TLV. Increase skb length
da25186fc605af drivers/net/wireless/mwifiex/cmdevt.c         Stone Piao         2012-08-22  237  		 * accordingly.
da25186fc605af drivers/net/wireless/mwifiex/cmdevt.c         Stone Piao         2012-08-22  238  		 */
da25186fc605af drivers/net/wireless/mwifiex/cmdevt.c         Stone Piao         2012-08-22  239  		skb_put(cmd_node->cmd_skb, cmd_size - cmd_node->cmd_skb->len);
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  240  
acebe8c10a6eab drivers/net/wireless/mwifiex/cmdevt.c         Zhaoyang Liu       2015-05-12  241  	mwifiex_dbg(adapter, CMD,
acebe8c10a6eab drivers/net/wireless/mwifiex/cmdevt.c         Zhaoyang Liu       2015-05-12  242  		    "cmd: DNLD_CMD: %#x, act %#x, len %d, seqno %#x\n",
acebe8c10a6eab drivers/net/wireless/mwifiex/cmdevt.c         Zhaoyang Liu       2015-05-12  243  		    cmd_code,
92c70a958b0b6b drivers/net/wireless/marvell/mwifiex/cmdevt.c Devidas Puranik    2017-03-09  244  		    get_unaligned_le16((u8 *)host_cmd + S_DS_GEN),
acebe8c10a6eab drivers/net/wireless/mwifiex/cmdevt.c         Zhaoyang Liu       2015-05-12  245  		    cmd_size, le16_to_cpu(host_cmd->seq_num));
868093a9df7580 drivers/net/wireless/mwifiex/cmdevt.c         Zhaoyang Liu       2015-05-12  246  	mwifiex_dbg_dump(adapter, CMD_D, "cmd buffer:", host_cmd, cmd_size);
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  247  
4daffe35436674 drivers/net/wireless/mwifiex/cmdevt.c         Amitkumar Karwar   2012-04-18  248  	if (adapter->iface_type == MWIFIEX_USB) {
4daffe35436674 drivers/net/wireless/mwifiex/cmdevt.c         Amitkumar Karwar   2012-04-18  249  		skb_push(cmd_node->cmd_skb, MWIFIEX_TYPE_LEN);
317049204cd3df drivers/net/wireless/marvell/mwifiex/cmdevt.c Himanshu Jha       2017-10-06  250  		put_unaligned_le32(MWIFIEX_USB_TYPE_CMD,
317049204cd3df drivers/net/wireless/marvell/mwifiex/cmdevt.c Himanshu Jha       2017-10-06  251  				   cmd_node->cmd_skb->data);
4daffe35436674 drivers/net/wireless/mwifiex/cmdevt.c         Amitkumar Karwar   2012-04-18  252  		adapter->cmd_sent = true;
4daffe35436674 drivers/net/wireless/mwifiex/cmdevt.c         Amitkumar Karwar   2012-04-18  253  		ret = adapter->if_ops.host_to_card(adapter,
4daffe35436674 drivers/net/wireless/mwifiex/cmdevt.c         Amitkumar Karwar   2012-04-18  254  						   MWIFIEX_USB_EP_CMD_EVENT,
4daffe35436674 drivers/net/wireless/mwifiex/cmdevt.c         Amitkumar Karwar   2012-04-18  255  						   cmd_node->cmd_skb, NULL);
4daffe35436674 drivers/net/wireless/mwifiex/cmdevt.c         Amitkumar Karwar   2012-04-18  256  		skb_pull(cmd_node->cmd_skb, MWIFIEX_TYPE_LEN);
4daffe35436674 drivers/net/wireless/mwifiex/cmdevt.c         Amitkumar Karwar   2012-04-18  257  		if (ret == -EBUSY)
4daffe35436674 drivers/net/wireless/mwifiex/cmdevt.c         Amitkumar Karwar   2012-04-18  258  			cmd_node->cmd_skb = NULL;
4daffe35436674 drivers/net/wireless/mwifiex/cmdevt.c         Amitkumar Karwar   2012-04-18  259  	} else {
f4c5d5991590c4 drivers/net/wireless/marvell/mwifiex/cmdevt.c Xinming Hu         2017-05-23  260  		skb_push(cmd_node->cmd_skb, adapter->intf_hdr_len);
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  261  		ret = adapter->if_ops.host_to_card(adapter, MWIFIEX_TYPE_CMD,
d930faee141bd0 drivers/net/wireless/mwifiex/cmdevt.c         Amitkumar Karwar   2011-10-11  262  						   cmd_node->cmd_skb, NULL);
f4c5d5991590c4 drivers/net/wireless/marvell/mwifiex/cmdevt.c Xinming Hu         2017-05-23  263  		skb_pull(cmd_node->cmd_skb, adapter->intf_hdr_len);
4daffe35436674 drivers/net/wireless/mwifiex/cmdevt.c         Amitkumar Karwar   2012-04-18  264  	}
18bf965702058f drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-04-06  265  
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  266  	if (ret == -1) {
acebe8c10a6eab drivers/net/wireless/mwifiex/cmdevt.c         Zhaoyang Liu       2015-05-12  267  		mwifiex_dbg(adapter, ERROR,
acebe8c10a6eab drivers/net/wireless/mwifiex/cmdevt.c         Zhaoyang Liu       2015-05-12  268  			    "DNLD_CMD: host to card failed\n");
4daffe35436674 drivers/net/wireless/mwifiex/cmdevt.c         Amitkumar Karwar   2012-04-18  269  		if (adapter->iface_type == MWIFIEX_USB)
4daffe35436674 drivers/net/wireless/mwifiex/cmdevt.c         Amitkumar Karwar   2012-04-18  270  			adapter->cmd_sent = false;
600f5d909a54a8 drivers/net/wireless/mwifiex/cmdevt.c         Amitkumar Karwar   2011-04-13  271  		if (cmd_node->wait_q_enabled)
600f5d909a54a8 drivers/net/wireless/mwifiex/cmdevt.c         Amitkumar Karwar   2011-04-13  272  			adapter->cmd_wait_q.status = -1;
9908b07465556d drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2013-04-01  273  		mwifiex_recycle_cmd_node(adapter, adapter->curr_cmd);
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  274  
8a7f9fd8a3e09c drivers/net/wireless/marvell/mwifiex/cmdevt.c Brian Norris       2019-06-25  275  		spin_lock_bh(&adapter->mwifiex_cmd_lock);
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  276  		adapter->curr_cmd = NULL;
8a7f9fd8a3e09c drivers/net/wireless/marvell/mwifiex/cmdevt.c Brian Norris       2019-06-25  277  		spin_unlock_bh(&adapter->mwifiex_cmd_lock);
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  278  
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  279  		adapter->dbg.num_cmd_host_to_card_failure++;
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  280  		return -1;
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  281  	}
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  282  
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  283  	/* Save the last command id and action to debug log */
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  284  	adapter->dbg.last_cmd_index =
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  285  			(adapter->dbg.last_cmd_index + 1) % DBG_CMD_NUM;
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  286  	adapter->dbg.last_cmd_id[adapter->dbg.last_cmd_index] = cmd_code;
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  287  	adapter->dbg.last_cmd_act[adapter->dbg.last_cmd_index] =
92c70a958b0b6b drivers/net/wireless/marvell/mwifiex/cmdevt.c Devidas Puranik    2017-03-09  288  			get_unaligned_le16((u8 *)host_cmd + S_DS_GEN);
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  289  
18d60501335756 drivers/net/wireless/marvell/mwifiex/cmdevt.c Xinming Hu         2017-12-12  290  	/* Setup the timer after transmit command, except that specific
18d60501335756 drivers/net/wireless/marvell/mwifiex/cmdevt.c Xinming Hu         2017-12-12  291  	 * command might not have command response.
18d60501335756 drivers/net/wireless/marvell/mwifiex/cmdevt.c Xinming Hu         2017-12-12  292  	 */
18d60501335756 drivers/net/wireless/marvell/mwifiex/cmdevt.c Xinming Hu         2017-12-12  293  	if (cmd_code != HostCmd_CMD_FW_DUMP_EVENT)
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  294  		mod_timer(&adapter->cmd_timer,
4587eea5b787b8 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2013-04-19  295  			  jiffies + msecs_to_jiffies(MWIFIEX_TIMER_10S));
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  296  
18d60501335756 drivers/net/wireless/marvell/mwifiex/cmdevt.c Xinming Hu         2017-12-12  297  	/* Clear BSS_NO_BITS from HostCmd */
18d60501335756 drivers/net/wireless/marvell/mwifiex/cmdevt.c Xinming Hu         2017-12-12  298  	cmd_code &= HostCmd_CMD_ID_MASK;
18d60501335756 drivers/net/wireless/marvell/mwifiex/cmdevt.c Xinming Hu         2017-12-12  299  
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  300  	return 0;
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  301  }
5e6e3a92b9a4c9 drivers/net/wireless/mwifiex/cmdevt.c         Bing Zhao          2011-03-21  302  

:::::: The code at line 217 was first introduced by commit
:::::: 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e wireless: mwifiex: initial commit for Marvell mwifiex driver

:::::: TO: Bing Zhao <bzhao@marvell.com>
:::::: CC: John W. Linville <linville@tuxdriver.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27748 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-25 12:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-25 12:06 [linux-stable-rc:linux-5.4.y 1142/1473] drivers/net/wireless/marvell/mwifiex/cmdevt.c:217:22: warning: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).