lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202104200243.sUgm8Pz8-lkp@intel.com>
Date:   Tue, 20 Apr 2021 02:57:29 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Fabio M. De Francesco" <fmdefrancesco@...il.com>,
        Greg KH <greg@...ah.com>, outreachy-kernel@...glegroups.com,
        linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Cc:     kbuild-all@...ts.01.org,
        "Fabio M. De Francesco" <fmdefrancesco@...il.com>
Subject: Re: [Outreachy kernel] [PATCH] staging: rtl8192u: Remove function

Hi "Fabio,

Thank you for the patch! Yet something to improve:

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

url:    https://github.com/0day-ci/linux/commits/Fabio-M-De-Francesco/staging-rtl8192u-Remove-function/20210412-024938
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 1b9e18de8d43bf798622cc365f99b41f180b446f
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/499674dec8e01774889806d098bf9a12731930ee
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Fabio-M-De-Francesco/staging-rtl8192u-Remove-function/20210412-024938
        git checkout 499674dec8e01774889806d098bf9a12731930ee
        # save the attached .config to linux build tree
        make W=1 W=1 ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   drivers/staging/rtl8192u/r819xU_cmdpkt.c: In function 'cmpk_message_handle_rx':
>> drivers/staging/rtl8192u/r819xU_cmdpkt.c:477:4: error: implicit declaration of function 'cmpk_handle_query_config_rx' [-Werror=implicit-function-declaration]
     477 |    cmpk_handle_query_config_rx(dev, pcmd_buff);
         |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/cmpk_handle_query_config_rx +477 drivers/staging/rtl8192u/r819xU_cmdpkt.c

8fc8598e61f6f3 Jerry Chuang      2009-11-03  409  
8fc8598e61f6f3 Jerry Chuang      2009-11-03  410  /*-----------------------------------------------------------------------------
8fc8598e61f6f3 Jerry Chuang      2009-11-03  411   * Function:    cmpk_message_handle_rx()
8fc8598e61f6f3 Jerry Chuang      2009-11-03  412   *
8fc8598e61f6f3 Jerry Chuang      2009-11-03  413   * Overview:    In the function, we will capture different RX command packet
8fc8598e61f6f3 Jerry Chuang      2009-11-03  414   *		info. Every RX command packet element has different message
8fc8598e61f6f3 Jerry Chuang      2009-11-03  415   *		length and meaning in content. We only support three type of RX
8fc8598e61f6f3 Jerry Chuang      2009-11-03  416   *		command packet now. Please refer to document
8fc8598e61f6f3 Jerry Chuang      2009-11-03  417   *		ws-06-0063-rtl8190-command-packet-specification.
8fc8598e61f6f3 Jerry Chuang      2009-11-03  418   *
8fc8598e61f6f3 Jerry Chuang      2009-11-03  419   * Input:       NONE
8fc8598e61f6f3 Jerry Chuang      2009-11-03  420   *
8fc8598e61f6f3 Jerry Chuang      2009-11-03  421   * Output:      NONE
8fc8598e61f6f3 Jerry Chuang      2009-11-03  422   *
8fc8598e61f6f3 Jerry Chuang      2009-11-03  423   * Return:      NONE
8fc8598e61f6f3 Jerry Chuang      2009-11-03  424   *
8fc8598e61f6f3 Jerry Chuang      2009-11-03  425   * Revised History:
8fc8598e61f6f3 Jerry Chuang      2009-11-03  426   *  When		Who	Remark
8fc8598e61f6f3 Jerry Chuang      2009-11-03  427   *  05/06/2008		amy	Create Version 0 porting from windows code.
8fc8598e61f6f3 Jerry Chuang      2009-11-03  428   *
70cd55d6755ee8 Derek Robson      2017-02-16  429   *---------------------------------------------------------------------------
70cd55d6755ee8 Derek Robson      2017-02-16  430   */
a115ee4175c3eb Teodora Baluta    2013-10-16  431  u32 cmpk_message_handle_rx(struct net_device *dev,
8fc8598e61f6f3 Jerry Chuang      2009-11-03  432  			   struct ieee80211_rx_stats *pstats)
8fc8598e61f6f3 Jerry Chuang      2009-11-03  433  {
8fc8598e61f6f3 Jerry Chuang      2009-11-03  434  	int			total_length;
8fc8598e61f6f3 Jerry Chuang      2009-11-03  435  	u8			cmd_length, exe_cnt = 0;
8fc8598e61f6f3 Jerry Chuang      2009-11-03  436  	u8			element_id;
8fc8598e61f6f3 Jerry Chuang      2009-11-03  437  	u8			*pcmd_buff;
8fc8598e61f6f3 Jerry Chuang      2009-11-03  438  
dc109dc597d7f4 simran singhal    2017-03-04  439  	/* 0. Check inpt arguments. It is a command queue message or
70cd55d6755ee8 Derek Robson      2017-02-16  440  	 * pointer is null.
70cd55d6755ee8 Derek Robson      2017-02-16  441  	 */
d6628e8cbe2047 Michael Straube   2020-09-19  442  	if (!pstats)
8fc8598e61f6f3 Jerry Chuang      2009-11-03  443  		return 0;	/* This is not a command packet. */
8fc8598e61f6f3 Jerry Chuang      2009-11-03  444  
8fc8598e61f6f3 Jerry Chuang      2009-11-03  445  	/* 1. Read received command packet message length from RFD. */
8fc8598e61f6f3 Jerry Chuang      2009-11-03  446  	total_length = pstats->Length;
8fc8598e61f6f3 Jerry Chuang      2009-11-03  447  
8fc8598e61f6f3 Jerry Chuang      2009-11-03  448  	/* 2. Read virtual address from RFD. */
8fc8598e61f6f3 Jerry Chuang      2009-11-03  449  	pcmd_buff = pstats->virtual_address;
8fc8598e61f6f3 Jerry Chuang      2009-11-03  450  
589b3d06fd1597 Justin P. Mattock 2012-04-30  451  	/* 3. Read command packet element id and length. */
8fc8598e61f6f3 Jerry Chuang      2009-11-03  452  	element_id = pcmd_buff[0];
8fc8598e61f6f3 Jerry Chuang      2009-11-03  453  
589b3d06fd1597 Justin P. Mattock 2012-04-30  454  	/* 4. Check every received command packet content according to different
70cd55d6755ee8 Derek Robson      2017-02-16  455  	 *    element type. Because FW may aggregate RX command packet to
70cd55d6755ee8 Derek Robson      2017-02-16  456  	 *    minimize transmit time between DRV and FW.
70cd55d6755ee8 Derek Robson      2017-02-16  457  	 */
6df9f669de3da5 Xenia Ragiadakou  2013-06-26  458  	/* Add a counter to prevent the lock in the loop from being held too
70cd55d6755ee8 Derek Robson      2017-02-16  459  	 * long
70cd55d6755ee8 Derek Robson      2017-02-16  460  	 */
05cdf47ac3374f Xenia Ragiadakou  2013-06-26  461  	while (total_length > 0 && exe_cnt++ < 100) {
6df9f669de3da5 Xenia Ragiadakou  2013-06-26  462  		/* We support aggregation of different cmd in the same packet */
8fc8598e61f6f3 Jerry Chuang      2009-11-03  463  		element_id = pcmd_buff[0];
8fc8598e61f6f3 Jerry Chuang      2009-11-03  464  
05cdf47ac3374f Xenia Ragiadakou  2013-06-26  465  		switch (element_id) {
8fc8598e61f6f3 Jerry Chuang      2009-11-03  466  		case RX_TX_FEEDBACK:
8fc8598e61f6f3 Jerry Chuang      2009-11-03  467  			cmpk_handle_tx_feedback(dev, pcmd_buff);
8fc8598e61f6f3 Jerry Chuang      2009-11-03  468  			cmd_length = CMPK_RX_TX_FB_SIZE;
8fc8598e61f6f3 Jerry Chuang      2009-11-03  469  			break;
8fc8598e61f6f3 Jerry Chuang      2009-11-03  470  
8fc8598e61f6f3 Jerry Chuang      2009-11-03  471  		case RX_INTERRUPT_STATUS:
8fc8598e61f6f3 Jerry Chuang      2009-11-03  472  			cmpk_handle_interrupt_status(dev, pcmd_buff);
17a16b769466e2 John Whitmore     2018-07-29  473  			cmd_length = sizeof(struct cmd_pkt_interrupt_status);
8fc8598e61f6f3 Jerry Chuang      2009-11-03  474  			break;
8fc8598e61f6f3 Jerry Chuang      2009-11-03  475  
8fc8598e61f6f3 Jerry Chuang      2009-11-03  476  		case BOTH_QUERY_CONFIG:
8fc8598e61f6f3 Jerry Chuang      2009-11-03 @477  			cmpk_handle_query_config_rx(dev, pcmd_buff);

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

Download attachment ".config.gz" of type "application/gzip" (65051 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ