From: kernel test robot <lkp@intel.com>
To: qiang4.zhang@linux.intel.com,
"Michael S. Tsirkin" <mst@redhat.com>,
"Jason Wang" <jasowang@redhat.com>,
"Xuan Zhuo" <xuanzhuo@linux.alibaba.com>,
"Eugenio Pérez" <eperezma@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Stefan Hajnoczi" <stefanha@redhat.com>,
"Jens Axboe" <axboe@kernel.dk>,
"Olivia Mackall" <olivia@selenic.com>,
"Herbert Xu" <herbert@gondor.apana.org.au>,
"Amit Shah" <amit@kernel.org>, "Arnd Bergmann" <arnd@arndb.de>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
Gonglei <arei.gonglei@huawei.com>,
"David S. Miller" <davem@davemloft.net>,
"Viresh Kumar" <viresh.kumar@linaro.org>,
"Chen, Jian Jun" <jian.jun.chen@intel.com>,
"Andi Shyti" <andi.shyti@kernel.org>,
"Andrew Lunn" <andrew+netdev@lunn.ch>,
"Eric Dumazet" <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
"James E.J. Bottomley" <James.Bottomley@hansenpartnership.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
"David Hildenbrand" <david@redhat.com>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Anton Yakovlev" <anton.yakovlev@opensynergy.com>,
"Jaroslav Kysela" <perex@perex.cz>,
"Takashi Iwai" <tiwai@suse.com>
Cc: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org,
Qiang Zhang <qiang4.zhang@intel.com>
Subject: Re: [PATCH] virtio: only reset device and restore status if needed in device resume
Date: Thu, 31 Oct 2024 22:01:56 +0800 [thread overview]
Message-ID: <202410312148.w44ttwk7-lkp@intel.com> (raw)
In-Reply-To: <20241031030847.3253873-1-qiang4.zhang@linux.intel.com>
Hi,
kernel test robot noticed the following build errors:
[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on char-misc/char-misc-next char-misc/char-misc-linus mst-vhost/linux-next axboe-block/for-next herbert-cryptodev-2.6/master andi-shyti/i2c/i2c-host mkp-scsi/for-next jejb-scsi/for-next tiwai-sound/for-next tiwai-sound/for-linus linus/master v6.12-rc5 next-20241031]
[cannot apply to herbert-crypto-2.6/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/qiang4-zhang-linux-intel-com/virtio-only-reset-device-and-restore-status-if-needed-in-device-resume/20241031-111315
base: char-misc/char-misc-testing
patch link: https://lore.kernel.org/r/20241031030847.3253873-1-qiang4.zhang%40linux.intel.com
patch subject: [PATCH] virtio: only reset device and restore status if needed in device resume
config: arc-randconfig-002-20241031 (https://download.01.org/0day-ci/archive/20241031/202410312148.w44ttwk7-lkp@intel.com/config)
compiler: arc-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241031/202410312148.w44ttwk7-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/202410312148.w44ttwk7-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/char/hw_random/virtio-rng.c: In function 'virtrng_restore':
>> drivers/char/hw_random/virtio-rng.c:221:15: error: implicit declaration of function 'virtio_device_reset_and_restore_status' [-Werror=implicit-function-declaration]
221 | err = virtio_device_reset_and_restore_status(vdev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
drivers/i2c/busses/i2c-virtio.c: In function 'virtio_i2c_restore':
>> drivers/i2c/busses/i2c-virtio.c:256:15: error: implicit declaration of function 'virtio_device_reset_and_restore_status' [-Werror=implicit-function-declaration]
256 | ret = virtio_device_reset_and_restore_status(vdev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for GET_FREE_REGION
Depends on [n]: SPARSEMEM [=n]
Selected by [y]:
- RESOURCE_KUNIT_TEST [=y] && RUNTIME_TESTING_MENU [=y] && KUNIT [=y]
vim +/virtio_device_reset_and_restore_status +221 drivers/char/hw_random/virtio-rng.c
216
217 static int virtrng_restore(struct virtio_device *vdev)
218 {
219 int err;
220
> 221 err = virtio_device_reset_and_restore_status(vdev);
222 if (err)
223 return err;
224
225 err = probe_common(vdev);
226 if (!err) {
227 struct virtrng_info *vi = vdev->priv;
228
229 /*
230 * Set hwrng_removed to ensure that virtio_read()
231 * does not block waiting for data before the
232 * registration is complete.
233 */
234 vi->hwrng_removed = true;
235 err = hwrng_register(&vi->hwrng);
236 if (!err) {
237 vi->hwrng_register_done = true;
238 vi->hwrng_removed = false;
239 }
240 }
241
242 return err;
243 }
244
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-10-31 14:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-31 3:08 [PATCH] virtio: only reset device and restore status if needed in device resume qiang4.zhang
2024-10-31 14:01 ` kernel test robot [this message]
2024-10-31 14:12 ` kernel test robot
2024-11-01 1:50 ` [PATCH v2] " qiang4.zhang
2024-11-01 2:11 ` Jason Wang
2024-11-01 5:20 ` Qiang Zhang
2024-11-05 3:09 ` Jason Wang
2024-11-06 9:28 ` Michael S. Tsirkin
2024-11-08 2:53 ` Jason Wang
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=202410312148.w44ttwk7-lkp@intel.com \
--to=lkp@intel.com \
--cc=James.Bottomley@hansenpartnership.com \
--cc=amit@kernel.org \
--cc=andi.shyti@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=anton.yakovlev@opensynergy.com \
--cc=arei.gonglei@huawei.com \
--cc=arnd@arndb.de \
--cc=axboe@kernel.dk \
--cc=davem@davemloft.net \
--cc=david@redhat.com \
--cc=edumazet@google.com \
--cc=eperezma@redhat.com \
--cc=gregkh@linuxfoundation.org \
--cc=herbert@gondor.apana.org.au \
--cc=jasowang@redhat.com \
--cc=jian.jun.chen@intel.com \
--cc=kraxel@redhat.com \
--cc=kuba@kernel.org \
--cc=martin.petersen@oracle.com \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=olivia@selenic.com \
--cc=pabeni@redhat.com \
--cc=pbonzini@redhat.com \
--cc=perex@perex.cz \
--cc=qiang4.zhang@intel.com \
--cc=qiang4.zhang@linux.intel.com \
--cc=stefanha@redhat.com \
--cc=tiwai@suse.com \
--cc=viresh.kumar@linaro.org \
--cc=xuanzhuo@linux.alibaba.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 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.