Netdev Archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Srujana Challa <schalla@marvell.com>
Cc: oe-kbuild-all@lists.linux.dev, kvm@vger.kernel.org,
	virtualization@lists.linux-foundation.org,
	netdev@vger.kernel.org, "Michael S. Tsirkin" <mst@redhat.com>,
	Vamsi Attunuru <vattunuru@marvell.com>,
	Shijith Thotton <sthotton@marvell.com>,
	Nithin Dabilpuram <ndabilpuram@marvell.com>
Subject: [mst-vhost:vhost 54/54] drivers/vdpa/octeon_ep/octep_vdpa_main.c:538:25: error: implicit declaration of function 'readq'; did you mean 'readl'?
Date: Sun, 12 May 2024 06:55:58 +0800	[thread overview]
Message-ID: <202405120615.TTwouGSU-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost
head:   0a0b17725dd921ed0364cd217a100ed0ed85c8c1
commit: 0a0b17725dd921ed0364cd217a100ed0ed85c8c1 [54/54] virtio: vdpa: vDPA driver for Marvell OCTEON DPU devices
config: mips-allmodconfig (https://download.01.org/0day-ci/archive/20240512/202405120615.TTwouGSU-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240512/202405120615.TTwouGSU-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405120615.TTwouGSU-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   drivers/vdpa/octeon_ep/octep_vdpa_main.c: In function 'get_device_ready_status':
>> drivers/vdpa/octeon_ep/octep_vdpa_main.c:538:25: error: implicit declaration of function 'readq'; did you mean 'readl'? [-Werror=implicit-function-declaration]
     538 |         u64 signature = readq(addr + OCTEP_VF_MBOX_DATA(0));
         |                         ^~~~~
         |                         readl
>> drivers/vdpa/octeon_ep/octep_vdpa_main.c:541:17: error: implicit declaration of function 'writeq'; did you mean 'writel'? [-Werror=implicit-function-declaration]
     541 |                 writeq(0, addr + OCTEP_VF_MBOX_DATA(0));
         |                 ^~~~~~
         |                 writel
   cc1: some warnings being treated as errors
--
   In file included from include/linux/device.h:15,
                    from include/linux/pci.h:37,
                    from drivers/vdpa/octeon_ep/octep_vdpa.h:7,
                    from drivers/vdpa/octeon_ep/octep_vdpa_hw.c:6:
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c: In function 'octep_hw_caps_read':
>> drivers/vdpa/octeon_ep/octep_vdpa_hw.c:478:60: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     478 |         dev_info(dev, "common cfg mapped at: 0x%016llx\n", (u64)oct_hw->common_cfg);
         |                                                            ^
   include/linux/dev_printk.h:110:37: note: in definition of macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                                     ^~~~~~~~~~~
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c:478:9: note: in expansion of macro 'dev_info'
     478 |         dev_info(dev, "common cfg mapped at: 0x%016llx\n", (u64)oct_hw->common_cfg);
         |         ^~~~~~~~
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c:479:60: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     479 |         dev_info(dev, "device cfg mapped at: 0x%016llx\n", (u64)oct_hw->dev_cfg);
         |                                                            ^
   include/linux/dev_printk.h:110:37: note: in definition of macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                                     ^~~~~~~~~~~
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c:479:9: note: in expansion of macro 'dev_info'
     479 |         dev_info(dev, "device cfg mapped at: 0x%016llx\n", (u64)oct_hw->dev_cfg);
         |         ^~~~~~~~
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c:480:57: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     480 |         dev_info(dev, "isr cfg mapped at: 0x%016llx\n", (u64)oct_hw->isr);
         |                                                         ^
   include/linux/dev_printk.h:110:37: note: in definition of macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                                     ^~~~~~~~~~~
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c:480:9: note: in expansion of macro 'dev_info'
     480 |         dev_info(dev, "isr cfg mapped at: 0x%016llx\n", (u64)oct_hw->isr);
         |         ^~~~~~~~
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c:482:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     482 |                  (u64)oct_hw->notify_base, oct_hw->notify_off_multiplier);
         |                  ^
   include/linux/dev_printk.h:110:37: note: in definition of macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                                     ^~~~~~~~~~~
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c:481:9: note: in expansion of macro 'dev_info'
     481 |         dev_info(dev, "notify base: 0x%016llx, notify off multiplier: %u\n",
         |         ^~~~~~~~
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c:514:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     514 |         dev_info(dev, "mbox mapped at: 0x%016llx\n", (u64)mbox);
         |                                                      ^
   include/linux/dev_printk.h:110:37: note: in definition of macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                                     ^~~~~~~~~~~
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c:514:9: note: in expansion of macro 'dev_info'
     514 |         dev_info(dev, "mbox mapped at: 0x%016llx\n", (u64)mbox);
         |         ^~~~~~~~


vim +538 drivers/vdpa/octeon_ep/octep_vdpa_main.c

   535	
   536	static bool get_device_ready_status(u8 __iomem *addr)
   537	{
 > 538		u64 signature = readq(addr + OCTEP_VF_MBOX_DATA(0));
   539	
   540		if (signature == OCTEP_DEV_READY_SIGNATURE) {
 > 541			writeq(0, addr + OCTEP_VF_MBOX_DATA(0));
   542			return true;
   543		}
   544	
   545		return false;
   546	}
   547	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-05-11 22:56 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=202405120615.TTwouGSU-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=ndabilpuram@marvell.com \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=schalla@marvell.com \
    --cc=sthotton@marvell.com \
    --cc=vattunuru@marvell.com \
    --cc=virtualization@lists.linux-foundation.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).