Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932417AbbFWKqW (ORCPT ); Tue, 23 Jun 2015 06:46:22 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:34824 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752034AbbFWKqP convert rfc822-to-8bit (ORCPT ); Tue, 23 Jun 2015 06:46:15 -0400 From: Fabio Coatti To: Daniel Vetter Cc: Daniel Stone , David Airlie , dri-devel , kernel list Subject: Re: Linux 4.1 WARNING in drm_ioctl.c Date: Tue, 23 Jun 2015 12:46:09 +0200 Message-ID: <3759620.yiBZ6BaR05@calvin> User-Agent: KMail/4.14.8 (Linux/4.1.0; KDE/4.14.9; x86_64; ; ) In-Reply-To: <20150623094847.GR25769@phenom.ffwll.local> References: <34169093.qYXxFR1FLt@calvin> <20150623094847.GR25769@phenom.ffwll.local> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1489 Lines: 48 In data martedì 23 giugno 2015 11:48:47, Daniel Vetter ha scritto: > On Tue, Jun 23, 2015 at 08:27:13AM +0100, Daniel Stone wrote: > > Hi, > > > > On 23 June 2015 at 07:39, Daniel Vetter wrote: > > > Which drm driver are you using? I didn't spot anything in your module > > > list > > > but might have missed it. Booting with drm.debug=0xe and grabbing dmesg > > > will tell us for sure. > > > > That'd be vgem. > > If so then the below diff should help. > -Daniel > diff --git a/drivers/gpu/drm/vgem/vgem_drv.c > b/drivers/gpu/drm/vgem/vgem_drv.c index 7a207ca547be..b491fb32cddb 100644 > --- a/drivers/gpu/drm/vgem/vgem_drv.c > +++ b/drivers/gpu/drm/vgem/vgem_drv.c > @@ -328,6 +328,8 @@ static int __init vgem_init(void) > goto out; > } > > + drm_dev_set_unique(drm, "vgem"); > + > ret = drm_dev_register(vgem_device, 0); > > if (ret) Not really sure about "drm" in drm_dev_set_unique(): CHK include/generated/compile.h GZIP kernel/config_data.gz CHK kernel/config_data.h CC drivers/gpu/drm/vgem/vgem_drv.o drivers/gpu/drm/vgem/vgem_drv.c: In function ‘vgem_init’: drivers/gpu/drm/vgem/vgem_drv.c:331:21: error: ‘drm’ undeclared (first use in this function) -- Fabio -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/