mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Vasanthakumar Thiagarajan <quic_vthiagar@quicinc.com>
Cc: kbuild-all@lists.01.org, GNU/Weeb Mailing List <gwml@gnuweeb.org>,
	linux-kernel@vger.kernel.org, Kalle Valo <quic_kvalo@quicinc.com>,
	Bhagavathi Perumal S <quic_bperumal@quicinc.com>,
	Karthikeyan Periyasamy <quic_periyasa@quicinc.com>,
	Pradeep Kumar Chitrapu <quic_pradeepc@quicinc.com>,
	P Praneesh <quic_ppranees@quicinc.com>,
	Ramya Gnanasekar <quic_rgnanase@quicinc.com>,
	Sriram R <quic_srirrama@quicinc.com>
Subject: [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
Date: Wed, 2 Feb 2022 08:47:08 +0800	[thread overview]
Message-ID: <202202020835.JgAG7kJa-lkp@intel.com> (raw)

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

                 reply	other threads:[~2022-02-02  0:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202202020835.JgAG7kJa-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=gwml@gnuweeb.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=quic_bperumal@quicinc.com \
    --cc=quic_kvalo@quicinc.com \
    --cc=quic_periyasa@quicinc.com \
    --cc=quic_ppranees@quicinc.com \
    --cc=quic_pradeepc@quicinc.com \
    --cc=quic_rgnanase@quicinc.com \
    --cc=quic_srirrama@quicinc.com \
    --cc=quic_vthiagar@quicinc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®