From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============2798181422822131412==" MIME-Version: 1.0 From: kbuild test robot To: kbuild-all@lists.01.org Subject: [kraxel:drm-virtio-buffers 3/3] drivers/gpu/drm/virtio/virtio-buffers.c:48:21: sparse: sparse: restricted __le32 degrades to integer Date: Sun, 19 Jan 2020 08:12:12 +0800 Message-ID: <202001190846.tUgdhmjs%lkp@intel.com> List-Id: --===============2798181422822131412== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: git://git.kraxel.org/linux drm-virtio-buffers head: 45c447e91f0c14344e0552dd72a65201673ff19b commit: 45c447e91f0c14344e0552dd72a65201673ff19b [3/3] [wip] virtio-buffers= : guest driver reproduce: # apt-get install sparse # sparse version: v0.6.1-131-g22978b6b-dirty git checkout 45c447e91f0c14344e0552dd72a65201673ff19b make ARCH=3Dx86_64 allmodconfig make C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> drivers/gpu/drm/virtio/virtio-buffers.c:48:21: sparse: sparse: restricte= d __le32 degrades to integer >> drivers/gpu/drm/virtio/virtio-buffers.c:41:6: sparse: sparse: symbol 'vi= rtbufs_ctrl_ack' was not declared. Should it be static? Please review and possibly fold the followup patch. vim +48 drivers/gpu/drm/virtio/virtio-buffers.c 40 = > 41 void virtbufs_ctrl_ack(struct virtqueue *vq) 42 { 43 // struct virtbufs_device *vb =3D vq->vdev->priv; 44 struct virtbufs_request *req; 45 int length; 46 = 47 req =3D virtqueue_get_buf(vq, &length); > 48 if (req->rsp.response !=3D VIRTIO_BUFFERS_RSP_OK) 49 DRM_ERROR("command 0x%04x -> error 0x%4x\n", 50 req->cmd.command, req->rsp.response); 51 kfree(req); 52 } 53 = --- 0-DAY kernel test infrastructure Open Source Technology Cen= ter https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corpor= ation --===============2798181422822131412==--