All of lore.kernel.org
 help / color / mirror / Atom feed
* [ammarfaizi2-block:kvalo/ath/ath12k-bringup 275/275] drivers/net/wireless/ath/ath12k/debugfs.c:250:13: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast
@ 2022-02-02  0:47 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-02-02  0:47 UTC (permalink / raw)
  To: Vasanthakumar Thiagarajan
  Cc: kbuild-all, GNU/Weeb Mailing List, linux-kernel, Kalle Valo,
	Bhagavathi Perumal S, Karthikeyan Periyasamy,
	Pradeep Kumar Chitrapu, P Praneesh, Ramya Gnanasekar, Sriram R

tree:   https://github.com/ammarfaizi2/linux-block kvalo/ath/ath12k-bringup
head:   f40abb4788a2a3868606a29d99583421e0874350
commit: f40abb4788a2a3868606a29d99583421e0874350 [275/275] ath12k: New driver for Qualcomm 11be hw family
config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20220202/202202020835.JgAG7kJa-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 11.2.0
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://github.com/ammarfaizi2/linux-block/commit/f40abb4788a2a3868606a29d99583421e0874350
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block kvalo/ath/ath12k-bringup
        git checkout f40abb4788a2a3868606a29d99583421e0874350
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash drivers/net/wireless/ath/ath12k/

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/ath/ath12k/debugfs.c: In function 'ath12k_open_pdev_stats':
   drivers/net/wireless/ath/ath12k/debugfs.c:250:15: error: implicit declaration of function 'vmalloc'; did you mean 'kvmalloc'? [-Werror=implicit-function-declaration]
     250 |         buf = vmalloc(ATH12K_FW_STATS_BUF_SIZE);
         |               ^~~~~~~
         |               kvmalloc
>> drivers/net/wireless/ath/ath12k/debugfs.c:250:13: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     250 |         buf = vmalloc(ATH12K_FW_STATS_BUF_SIZE);
         |             ^
   drivers/net/wireless/ath/ath12k/debugfs.c:275:9: error: implicit declaration of function 'vfree'; did you mean 'kvfree'? [-Werror=implicit-function-declaration]
     275 |         vfree(buf);
         |         ^~~~~
         |         kvfree
   drivers/net/wireless/ath/ath12k/debugfs.c: In function 'ath12k_open_vdev_stats':
   drivers/net/wireless/ath/ath12k/debugfs.c:321:13: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     321 |         buf = vmalloc(ATH12K_FW_STATS_BUF_SIZE);
         |             ^
   drivers/net/wireless/ath/ath12k/debugfs.c: In function 'ath12k_open_bcn_stats':
   drivers/net/wireless/ath/ath12k/debugfs.c:400:13: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     400 |         buf = vmalloc(ATH12K_FW_STATS_BUF_SIZE);
         |             ^
   cc1: some warnings being treated as errors


vim +250 drivers/net/wireless/ath/ath12k/debugfs.c

   234	
   235	static int ath12k_open_pdev_stats(struct inode *inode, struct file *file)
   236	{
   237		struct ath12k *ar = inode->i_private;
   238		struct ath12k_base *ab = ar->ab;
   239		struct stats_request_params req_param;
   240		void *buf = NULL;
   241		int ret;
   242	
   243		mutex_lock(&ar->conf_mutex);
   244	
   245		if (ar->state != ATH12K_STATE_ON) {
   246			ret = -ENETDOWN;
   247			goto err_unlock;
   248		}
   249	
 > 250		buf = vmalloc(ATH12K_FW_STATS_BUF_SIZE);
   251		if (!buf) {
   252			ret = -ENOMEM;
   253			goto err_unlock;
   254		}
   255	
   256		req_param.pdev_id = ar->pdev->pdev_id;
   257		req_param.vdev_id = 0;
   258		req_param.stats_id = WMI_REQUEST_PDEV_STAT;
   259	
   260		ret = ath12k_debugfs_fw_stats_request(ar, &req_param);
   261		if (ret) {
   262			ath12k_warn(ab, "failed to request fw pdev stats: %d\n", ret);
   263			goto err_free;
   264		}
   265	
   266		ath12k_wmi_fw_stats_fill(ar, &ar->debug.fw_stats, req_param.stats_id,
   267					 buf);
   268	
   269		file->private_data = buf;
   270	
   271		mutex_unlock(&ar->conf_mutex);
   272		return 0;
   273	
   274	err_free:
   275		vfree(buf);
   276	
   277	err_unlock:
   278		mutex_unlock(&ar->conf_mutex);
   279		return ret;
   280	}
   281	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ammarfaizi2-block:kvalo/ath/ath12k-bringup 275/275] drivers/net/wireless/ath/ath12k/debugfs.c:250:13: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast
@ 2022-02-02  0:47 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-02-02  0:47 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/ammarfaizi2/linux-block kvalo/ath/ath12k-bringup
head:   f40abb4788a2a3868606a29d99583421e0874350
commit: f40abb4788a2a3868606a29d99583421e0874350 [275/275] ath12k: New driver for Qualcomm 11be hw family
config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20220202/202202020835.JgAG7kJa-lkp(a)intel.com/config)
compiler: mips-linux-gcc (GCC) 11.2.0
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://github.com/ammarfaizi2/linux-block/commit/f40abb4788a2a3868606a29d99583421e0874350
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block kvalo/ath/ath12k-bringup
        git checkout f40abb4788a2a3868606a29d99583421e0874350
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash drivers/net/wireless/ath/ath12k/

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/ath/ath12k/debugfs.c: In function 'ath12k_open_pdev_stats':
   drivers/net/wireless/ath/ath12k/debugfs.c:250:15: error: implicit declaration of function 'vmalloc'; did you mean 'kvmalloc'? [-Werror=implicit-function-declaration]
     250 |         buf = vmalloc(ATH12K_FW_STATS_BUF_SIZE);
         |               ^~~~~~~
         |               kvmalloc
>> drivers/net/wireless/ath/ath12k/debugfs.c:250:13: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     250 |         buf = vmalloc(ATH12K_FW_STATS_BUF_SIZE);
         |             ^
   drivers/net/wireless/ath/ath12k/debugfs.c:275:9: error: implicit declaration of function 'vfree'; did you mean 'kvfree'? [-Werror=implicit-function-declaration]
     275 |         vfree(buf);
         |         ^~~~~
         |         kvfree
   drivers/net/wireless/ath/ath12k/debugfs.c: In function 'ath12k_open_vdev_stats':
   drivers/net/wireless/ath/ath12k/debugfs.c:321:13: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     321 |         buf = vmalloc(ATH12K_FW_STATS_BUF_SIZE);
         |             ^
   drivers/net/wireless/ath/ath12k/debugfs.c: In function 'ath12k_open_bcn_stats':
   drivers/net/wireless/ath/ath12k/debugfs.c:400:13: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     400 |         buf = vmalloc(ATH12K_FW_STATS_BUF_SIZE);
         |             ^
   cc1: some warnings being treated as errors


vim +250 drivers/net/wireless/ath/ath12k/debugfs.c

   234	
   235	static int ath12k_open_pdev_stats(struct inode *inode, struct file *file)
   236	{
   237		struct ath12k *ar = inode->i_private;
   238		struct ath12k_base *ab = ar->ab;
   239		struct stats_request_params req_param;
   240		void *buf = NULL;
   241		int ret;
   242	
   243		mutex_lock(&ar->conf_mutex);
   244	
   245		if (ar->state != ATH12K_STATE_ON) {
   246			ret = -ENETDOWN;
   247			goto err_unlock;
   248		}
   249	
 > 250		buf = vmalloc(ATH12K_FW_STATS_BUF_SIZE);
   251		if (!buf) {
   252			ret = -ENOMEM;
   253			goto err_unlock;
   254		}
   255	
   256		req_param.pdev_id = ar->pdev->pdev_id;
   257		req_param.vdev_id = 0;
   258		req_param.stats_id = WMI_REQUEST_PDEV_STAT;
   259	
   260		ret = ath12k_debugfs_fw_stats_request(ar, &req_param);
   261		if (ret) {
   262			ath12k_warn(ab, "failed to request fw pdev stats: %d\n", ret);
   263			goto err_free;
   264		}
   265	
   266		ath12k_wmi_fw_stats_fill(ar, &ar->debug.fw_stats, req_param.stats_id,
   267					 buf);
   268	
   269		file->private_data = buf;
   270	
   271		mutex_unlock(&ar->conf_mutex);
   272		return 0;
   273	
   274	err_free:
   275		vfree(buf);
   276	
   277	err_unlock:
   278		mutex_unlock(&ar->conf_mutex);
   279		return ret;
   280	}
   281	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-02  0:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-02  0:47 [ammarfaizi2-block:kvalo/ath/ath12k-bringup 275/275] drivers/net/wireless/ath/ath12k/debugfs.c:250:13: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast kernel test robot
2022-02-02  0:47 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.