All of lore.kernel.org
 help / color / mirror / Atom feed
* [alibaba-cloud:linux-next 11000/12717] drivers/virtio/virtio_balloon.c:163:5: warning: no previous prototype for function 'virtballoon_free_page_report'
@ 2021-01-21 23:57 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-21 23:57 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/alibaba/cloud-kernel.git linux-next
head:   6c43359f63779e4bdad4ae3c5ba0e329b6e3bfcf
commit: 671b4f344c85141b26aefca5aa012a58e8f729d1 [11000/12717] virtio-balloon: add support for providing free page reports to host
config: x86_64-randconfig-a014-20210121 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 22b68440e1647e16b5ee24b924986207173c02d1)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/alibaba/cloud-kernel/commit/671b4f344c85141b26aefca5aa012a58e8f729d1
        git remote add alibaba-cloud https://github.com/alibaba/cloud-kernel.git
        git fetch --no-tags alibaba-cloud linux-next
        git checkout 671b4f344c85141b26aefca5aa012a58e8f729d1
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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/virtio/virtio_balloon.c:163:5: warning: no previous prototype for function 'virtballoon_free_page_report' [-Wmissing-prototypes]
   int virtballoon_free_page_report(struct page_reporting_dev_info *pr_dev_info,
       ^
   drivers/virtio/virtio_balloon.c:163:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int virtballoon_free_page_report(struct page_reporting_dev_info *pr_dev_info,
   ^
   static 
   1 warning generated.
   drivers/virtio/virtio_balloon.o: warning: objtool: asan.module_ctor()+0xc: call without frame pointer save/setup
   drivers/virtio/virtio_balloon.o: warning: objtool: asan.module_dtor()+0xc: call without frame pointer save/setup


vim +/virtballoon_free_page_report +163 drivers/virtio/virtio_balloon.c

   162	
 > 163	int virtballoon_free_page_report(struct page_reporting_dev_info *pr_dev_info,
   164					   struct scatterlist *sg, unsigned int nents)
   165	{
   166		struct virtio_balloon *vb =
   167			container_of(pr_dev_info, struct virtio_balloon, pr_dev_info);
   168		struct virtqueue *vq = vb->reporting_vq;
   169		unsigned int unused, err;
   170	
   171		/* We should always be able to add these buffers to an empty queue. */
   172		err = virtqueue_add_inbuf(vq, sg, nents, vb, GFP_NOWAIT | __GFP_NOWARN);
   173	
   174		/*
   175		 * In the extremely unlikely case that something has occurred and we
   176		 * are able to trigger an error we will simply display a warning
   177		 * and exit without actually processing the pages.
   178		 */
   179		if (WARN_ON_ONCE(err))
   180			return err;
   181	
   182		virtqueue_kick(vq);
   183	
   184		/* When host has read buffer, this completes via balloon_ack */
   185		wait_event(vb->acked, virtqueue_get_buf(vq, &unused));
   186	
   187		return 0;
   188	}
   189	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 30427 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-21 23:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-21 23:57 [alibaba-cloud:linux-next 11000/12717] drivers/virtio/virtio_balloon.c:163:5: warning: no previous prototype for function 'virtballoon_free_page_report' 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.