[staging:staging-testing 445/445] drivers/staging//rtlwifi/halmac/rtl_halmac.c:405:5: error: implicit declaration of function 'rtl_mfree'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing
head:   59b5306d1db0b53e39a676643b9781ba35813bb4
commit: 59b5306d1db0b53e39a676643b9781ba35813bb4 [445/445] staging: r8822be: Fix typo for CONFIG_RTLWIFI_DEBUG
config: ia64-allyesconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 59b5306d1db0b53e39a676643b9781ba35813bb4
        # save the attached .config to linux build tree
        make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

   drivers/staging//rtlwifi/halmac/rtl_halmac.c: In function 'deinit_priv':
>> drivers/staging//rtlwifi/halmac/rtl_halmac.c:395:22: error: 'struct rtl_halmac_indicator' has no member named 'sctx'
        if (!indicator[i].sctx)
                         ^
   In file included from drivers/staging//rtlwifi/halmac/../wifi.h:38:0,
                    from drivers/staging//rtlwifi/halmac/halmac_2_platform.h:28,
                    from drivers/staging//rtlwifi/halmac/halmac_api.h:38,
                    from drivers/staging//rtlwifi/halmac/rtl_halmac.c:26:
>> drivers/staging//rtlwifi/halmac/rtl_halmac.c:399:6: error: 'rtlpriv' undeclared (first use in this function)
         rtlpriv, COMP_HALMAC, DBG_LOUD,
         ^
   drivers/staging//rtlwifi/halmac/../debug.h:185:17: note: in definition of macro 'RT_TRACE'
     _rtl_dbg_trace(rtlpriv, comp, level,    \
                    ^~~~~~~
   drivers/staging//rtlwifi/halmac/rtl_halmac.c:399:6: note: each undeclared identifier is reported only once for each function it appears in
         rtlpriv, COMP_HALMAC, DBG_LOUD,
         ^
   drivers/staging//rtlwifi/halmac/../debug.h:185:17: note: in definition of macro 'RT_TRACE'
     _rtl_dbg_trace(rtlpriv, comp, level,    \
                    ^~~~~~~
   drivers/staging//rtlwifi/halmac/rtl_halmac.c:403:24: error: 'struct rtl_halmac_indicator' has no member named 'sctx'
        sctx = indicator[i].sctx;
                           ^
   drivers/staging//rtlwifi/halmac/rtl_halmac.c:404:17: error: 'struct rtl_halmac_indicator' has no member named 'sctx'
        indicator[i].sctx = NULL;
                    ^
>> drivers/staging//rtlwifi/halmac/rtl_halmac.c:405:5: error: implicit declaration of function 'rtl_mfree' [-Werror=implicit-function-declaration]
        rtl_mfree((u8 *)sctx, sizeof(*sctx));
        ^~~~~~~~~
>> drivers/staging//rtlwifi/halmac/rtl_halmac.c:405:34: error: dereferencing pointer to incomplete type 'struct submit_ctx'
        rtl_mfree((u8 *)sctx, sizeof(*sctx));
                                     ^~~~~
   cc1: some warnings being treated as errors

vim +/rtl_mfree +405 drivers/staging//rtlwifi/halmac/rtl_halmac.c

938a0447 Ping-Ke Shih    2017-08-17  378  
938a0447 Ping-Ke Shih    2017-08-17  379  static void deinit_priv(struct rtl_halmac *halmac)
938a0447 Ping-Ke Shih    2017-08-17  380  {
938a0447 Ping-Ke Shih    2017-08-17  381  	struct rtl_halmac_indicator *indicator;
938a0447 Ping-Ke Shih    2017-08-17  382  
938a0447 Ping-Ke Shih    2017-08-17  383  	indicator = halmac->indicator;
938a0447 Ping-Ke Shih    2017-08-17  384  	halmac->indicator = NULL;
938a0447 Ping-Ke Shih    2017-08-17  385  	if (indicator) {
938a0447 Ping-Ke Shih    2017-08-17  386  		u32 count, size;
938a0447 Ping-Ke Shih    2017-08-17  387  
938a0447 Ping-Ke Shih    2017-08-17  388  		count = HALMAC_FEATURE_ALL + 1;
59b5306d Andreas Ziegler 2017-08-29  389  #ifdef CONFIG_RTLWIFI_DEBUG
938a0447 Ping-Ke Shih    2017-08-17  390  		{
938a0447 Ping-Ke Shih    2017-08-17  391  			struct submit_ctx *sctx;
938a0447 Ping-Ke Shih    2017-08-17  392  			u32 i;
938a0447 Ping-Ke Shih    2017-08-17  393  
938a0447 Ping-Ke Shih    2017-08-17  394  			for (i = 0; i < count; i++) {
938a0447 Ping-Ke Shih    2017-08-17 @395  				if (!indicator[i].sctx)
938a0447 Ping-Ke Shih    2017-08-17  396  					continue;
938a0447 Ping-Ke Shih    2017-08-17  397  
938a0447 Ping-Ke Shih    2017-08-17  398  				RT_TRACE(
938a0447 Ping-Ke Shih    2017-08-17 @399  					rtlpriv, COMP_HALMAC, DBG_LOUD,
938a0447 Ping-Ke Shih    2017-08-17  400  					"%s: <WARN> %s id(%d) sctx still exist!!\n",
938a0447 Ping-Ke Shih    2017-08-17  401  					__func__, RTL_HALMAC_FEATURE_NAME[i],
938a0447 Ping-Ke Shih    2017-08-17  402  					i);
938a0447 Ping-Ke Shih    2017-08-17 @403  				sctx = indicator[i].sctx;
938a0447 Ping-Ke Shih    2017-08-17  404  				indicator[i].sctx = NULL;
938a0447 Ping-Ke Shih    2017-08-17 @405  				rtl_mfree((u8 *)sctx, sizeof(*sctx));
938a0447 Ping-Ke Shih    2017-08-17  406  			}
938a0447 Ping-Ke Shih    2017-08-17  407  		}
59b5306d Andreas Ziegler 2017-08-29  408  #endif /* !CONFIG_RTLWIFI_DEBUG */
938a0447 Ping-Ke Shih    2017-08-17  409  		size = sizeof(*indicator) * count;
938a0447 Ping-Ke Shih    2017-08-17  410  		kfree((u8 *)indicator);
938a0447 Ping-Ke Shih    2017-08-17  411  	}
938a0447 Ping-Ke Shih    2017-08-17  412  }
938a0447 Ping-Ke Shih    2017-08-17  413  

:::::: The code at line 405 was first introduced by commit
:::::: 938a0447f094233e269f7f5ded474b13f3de8d80 staging: r8822be: Add code for halmac sub-driver

:::::: TO: Ping-Ke Shih <pkshih@xxxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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