Re: [PATCH v2] drm/hisilicon: fix build error without fbdev emulation

2017-07-26 Thread Daniel Vetter
On Wed, Jul 26, 2017 at 08:58:16AM +0200, Arnd Bergmann wrote: > On Wed, Jul 26, 2017 at 7:55 AM, Daniel Vetter wrote: > > On Tue, Jul 25, 2017 at 8:05 PM, Arnd Bergmann wrote: > >> We cannot reference priv->fbdev outside of the #ifdef: > >> > >> drivers/net/virtio_net.c:1881:12: error: 'virtnet_

Re: [PATCH v2] drm/hisilicon: fix build error without fbdev emulation

2017-07-25 Thread Arnd Bergmann
On Wed, Jul 26, 2017 at 7:55 AM, Daniel Vetter wrote: > On Tue, Jul 25, 2017 at 8:05 PM, Arnd Bergmann wrote: >> We cannot reference priv->fbdev outside of the #ifdef: >> >> drivers/net/virtio_net.c:1881:12: error: 'virtnet_restore_up' defined but >> not used [-Werror=unused-function] >> static

Re: [PATCH v2] drm/hisilicon: fix build error without fbdev emulation

2017-07-25 Thread Daniel Vetter
On Tue, Jul 25, 2017 at 8:05 PM, Arnd Bergmann wrote: > We cannot reference priv->fbdev outside of the #ifdef: > > drivers/net/virtio_net.c:1881:12: error: 'virtnet_restore_up' defined but not > used [-Werror=unused-function] > static int virtnet_restore_up(struct virtio_device *vdev) > drivers/

[PATCH v2] drm/hisilicon: fix build error without fbdev emulation

2017-07-25 Thread Arnd Bergmann
We cannot reference priv->fbdev outside of the #ifdef: drivers/net/virtio_net.c:1881:12: error: 'virtnet_restore_up' defined but not used [-Werror=unused-function] static int virtnet_restore_up(struct virtio_device *vdev) drivers/net/virtio_net.c:1859:13: error: 'virtnet_freeze_down' defined but