Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1865027pxb; Thu, 4 Nov 2021 09:45:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWgUygfUvr26Rxi1J/UzXHzocZoHMqDZ8ThyjZ6Y+M8P0w3kZW9B6BKY7WMLsNjTwsnkYl X-Received: by 2002:a5d:9b86:: with SMTP id r6mr38078402iom.50.1636044349659; Thu, 04 Nov 2021 09:45:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636044349; cv=none; d=google.com; s=arc-20160816; b=i7jD5fbisyCJacbDkRxhoxH+tZyUZD4rgnQoGBvSCgKCyqItLWM3/mRAbRQnTUdXT/ a1NcY7nVlbeN8P07NMi1252CZyoawbSJRsJjLT0D1pOKbmYi4JNa/lum0L8FI6ynct03 e0DVNf24D0P0w3ErXy6DX+Wt4QpIF+k+lPGBRsYQ9Kl/Q/P9znVNSk24/bmpT0ikB0o6 pxeQvzt1gRSd6tmz59gOrg/3pRna6T4SrvZLv2VSnZVHLM3hmAM9V305lIfbo40rlMiw QfWO2HhTmK7TgwUgQSyLOjkgXp5Z4SglWWW+uYFYXDnH96TBX5+9oIAoefJwwxxkyW/Q w1mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=GBeSNSo+VR936LBuXFto2HVzfx/uW1FgtYIk1y3q3ig=; b=hmBBSbSm9/PumTgh3Rrlpt6rkM7JcddfL9HK+xJso3srmuZltgUVihsu4/lkc2JhpJ OxKNfii3pDGo6bTOpcpvLN4EuUD9bdKaec5Tv6Mv2oJQCXmcn50OC71/98yaBgP9irR8 /ONi0DL7wBSrO1pKnl21VYr9drCMuwjvse5wpK1wqVc/zJXLYOiOun/jX9fKa1/SMmjd cLIXQ24ilHecRQ3o0R9Bi29kpbYpnrs3fM3dH3KVeHVLOxG35hrqjvF4px/HsszdmBIJ brHPTbCMJMf7DnsZdanVS3NL1Vw20/suCCZDUDaQsFppP0/J6C77o2UyMrcoIoa2CnQf o8ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CBVY3wAo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si9271016ilu.91.2021.11.04.09.45.34; Thu, 04 Nov 2021 09:45:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CBVY3wAo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231543AbhKDQqw (ORCPT + 99 others); Thu, 4 Nov 2021 12:46:52 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:52906 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230345AbhKDQqv (ORCPT ); Thu, 4 Nov 2021 12:46:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1636044253; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GBeSNSo+VR936LBuXFto2HVzfx/uW1FgtYIk1y3q3ig=; b=CBVY3wAoy78upQNbKAT1HVlHDBpW4oEl0NbOHqlw8hz+XAM45IIsqMx9wT6FBTHERDHg6I h207V7GgFIdF5o0vj424y1hfbUtdxmpIm3EE1+0uJwpm1eT+0mXEEd/T7hq/7E1t++v9zk HkSLJ2SgiK0VMUli6JbyzWmnaRWXtWQ= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-30-Rb_6Xot1PQm4Yf9NA2Bl7g-1; Thu, 04 Nov 2021 12:44:11 -0400 X-MC-Unique: Rb_6Xot1PQm4Yf9NA2Bl7g-1 Received: by mail-wr1-f71.google.com with SMTP id d13-20020adf9b8d000000b00160a94c235aso1216810wrc.2 for ; Thu, 04 Nov 2021 09:44:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=GBeSNSo+VR936LBuXFto2HVzfx/uW1FgtYIk1y3q3ig=; b=tyX2VGI+yMmoT6TVzSnDslK42vm/4SFyjmbwWxR7lc5r5U+7Gad7CJfw5GgUXBh39g kfgZ3P/dy1z83MZ0TfCXluosNtykUq8lwUhuILc3FsxPzV0NTT9MUiKm5nyTTw+jaEqz jGJxe34uioUo4l901HAAR/ziy5WEJJEH4r25bhu27aLFq1yZm3XmcrovhVh2ykjERkGr OY+eInSSFKjR34YrLWZv3NXPG5MiRCMnub5abbPfB+h8eWk5PnKF3r1aoZoML+Sf5ebb gVItvBR1Tg6Kn2Jnsm0XEIndpNu/y9Hr3bcz+9xU8SlAatUdYarfZFXcgcoAJXchGnFD xwAg== X-Gm-Message-State: AOAM530aSN68q9L1KE6g2pmCt+XiZXhjnEopK7w9UvWjxSkL2uYBPTvE HrPtdS1V4Rx+nrbRPN3ipC5EFJztVm3XTZppmvbaNs55fxno6FA71qk0zGQsOBibjrPTYmapuAx yd287+3/TPKU8F1juKX3ORehr X-Received: by 2002:a5d:4e52:: with SMTP id r18mr39525097wrt.224.1636044250772; Thu, 04 Nov 2021 09:44:10 -0700 (PDT) X-Received: by 2002:a5d:4e52:: with SMTP id r18mr39525075wrt.224.1636044250590; Thu, 04 Nov 2021 09:44:10 -0700 (PDT) Received: from [192.168.1.128] ([92.176.231.106]) by smtp.gmail.com with ESMTPSA id o4sm6636216wry.80.2021.11.04.09.44.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Nov 2021 09:44:10 -0700 (PDT) Message-ID: <3ff9fe95-9bc7-a043-78c6-d52d0ff02e23@redhat.com> Date: Thu, 4 Nov 2021 17:44:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH v2 1/2] drm: Add a drm_drv_enabled() to check if drivers should be enabled Content-Language: en-US To: Jani Nikula , linux-kernel@vger.kernel.org Cc: =?UTF-8?Q?Michel_D=c3=a4nzer?= , Thomas Zimmermann , Daniel Vetter , Peter Robinson , Pekka Paalanen , Alex Deucher , Ben Skeggs , Chia-I Wu , =?UTF-8?Q?Christian_K=c3=b6nig?= , Daniel Vetter , Dave Airlie , David Airlie , Gerd Hoffmann , Gurchetan Singh , Hans de Goede , Joonas Lahtinen , Maarten Lankhorst , Maxime Ripard , "Pan, Xinhui" , Rodrigo Vivi , VMware Graphics , Zack Rusin , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, nouveau@lists.freedesktop.org, spice-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org References: <20211104160707.1407052-1-javierm@redhat.com> <20211104160707.1407052-2-javierm@redhat.com> <87zgqjanz2.fsf@intel.com> From: Javier Martinez Canillas In-Reply-To: <87zgqjanz2.fsf@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/4/21 17:24, Jani Nikula wrote: [snip] >> index ab2295dd4500..45cb3e540eff 100644 >> --- a/drivers/gpu/drm/i915/i915_module.c >> +++ b/drivers/gpu/drm/i915/i915_module.c >> @@ -18,9 +18,12 @@ >> #include "i915_selftest.h" >> #include "i915_vma.h" >> >> +static const struct drm_driver driver; >> + > > No, this makes absolutely no sense, and will also oops on nomodeset. > Ups, sorry about that. For some reason I thought that it was defined in the same compilation unit, but I noticed now that it is in i915_drv.c. > BR, > Jani. > Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat