Message ID | 20230314162523.631652-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1859897wrd; Tue, 14 Mar 2023 09:35:47 -0700 (PDT) X-Google-Smtp-Source: AK7set+OEeXSbSr2wI4Z0TZijUeEc+WHYnWKqU12wKFg3jInXjW7nB4U7QK8XhTPjr9SAP0exe4N X-Received: by 2002:a05:6a20:6699:b0:cb:6f9c:166d with SMTP id o25-20020a056a20669900b000cb6f9c166dmr36545906pzh.43.1678811747137; Tue, 14 Mar 2023 09:35:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678811747; cv=none; d=google.com; s=arc-20160816; b=wcgbHg6n88nCfN+oxHQ+YXhywZIUsmDtbsOdkKwbBaV6/2QVPlkQMum+EbvosIbB+I bf/+6+JyTbCH6xw1luCznmO+11AdFAMdS1zAA2tfXnQoG9QOithxccA8rRih8nxxAjBy l3TZxpExcTwzSTekD+PIY/NYd4FfvOUQfLABDqgUFuw4MysvlsImMsFWyLIRmU2m8CpN eEUuVaxdeBVxZkYIvFHkcx1wcXO5lsb4/QOec74T4WxcTiD0xKZrsZtKY9IkWzjusZ6a pvVYxIqiYlfb1QY+VzVBE3P+kd5F2hukvX9lNiMq+Gf5P0CumnLYrRGpm4Kpct0hul9g LrQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=k/ZOwUqM8SDZ0sl0yvzLZwch9a9i12E0J+ddSTWwQTU=; b=aoUvZbVTHiMyLHDOAUouUlsd+Gfornok2H0DTOpcXSHXDkYRC6W/WeqpaJuapLVZSb 3yHIVaeqYeVvdQToMKlZICyJQiicXJEUvp+rphr0lQpSGKnzCpZqwKohjTRDNpqEynIH QkmJcVInf0Ov9z1Tmk0gZ48yKpKvtpFdkjV7h8slrS3+GlJUjD8EVBziYcV0zFj7IIbl qDpN9xb+Zy7GxUBetzA6GBy4fBaxYeq4m//gUjzt1t/gR0L5EWH7bc5U2PN9Al3kxQEo oJZfaOBqFo3mATIQVSHNXxlQJO/Axq1O3xLtLxcqskO2VEbM9+7GSlgddFvDRU19Vd++ xstg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PECFkUwV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a63d809000000b00477a32da0a9si2461615pgh.455.2023.03.14.09.35.34; Tue, 14 Mar 2023 09:35:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PECFkUwV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231324AbjCNQ0K (ORCPT <rfc822;realc9580@gmail.com> + 99 others); Tue, 14 Mar 2023 12:26:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229730AbjCNQZx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 14 Mar 2023 12:25:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72CC0211F3 for <linux-kernel@vger.kernel.org>; Tue, 14 Mar 2023 09:25:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BD7836182E for <linux-kernel@vger.kernel.org>; Tue, 14 Mar 2023 16:25:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70FAEC433D2; Tue, 14 Mar 2023 16:25:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678811130; bh=8ETbXH3HFRhnrmoJeOc1AT/DX/Eah23kheU2y3YZMo0=; h=From:To:Cc:Subject:Date:From; b=PECFkUwV2Ep2p0qVUg63V6DKWrMXMyZlGOZv4TaWkdfT4K32sstERsij1UHwLjkVH 0VNeQJKLBEO6nD5AbKWHZAPz7uQ3dVIFdXDzbXixTovR6+6jXvqp3RNSuPiDqpqHCg nfvmOH0guBqmee0MqDPz6JPHy7vTlLqs19yvq7aQJDuZu/uLYwZMug8A01zoq2555L Ild06qHasXF534xPGGZSXSwaY+uTIpuYYRM4tDMtnHStlKCMap5Od4vUeBKBi1fXwD tWEKJN3pCGX/RGg/pYQ1lL3UOYg35CK1gOvOQnxvpvyk7gD0q0WbfatJ68KZasBFeL Rd9ioyHIfpyBQ== From: Arnd Bergmann <arnd@kernel.org> To: Jani Nikula <jani.nikula@linux.intel.com>, Joonas Lahtinen <joonas.lahtinen@linux.intel.com>, Rodrigo Vivi <rodrigo.vivi@intel.com>, Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Imre Deak <imre.deak@intel.com> Cc: Arnd Bergmann <arnd@arndb.de>, =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= <ville.syrjala@linux.intel.com>, =?utf-8?q?Jouni_H=C3=B6gander?= <jouni.hogander@intel.com>, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/i915/opregion: add missing intel_opregion_cleanup() dummy Date: Tue, 14 Mar 2023 17:25:18 +0100 Message-Id: <20230314162523.631652-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760361706527618721?= X-GMAIL-MSGID: =?utf-8?q?1760361706527618721?= |
Series |
drm/i915/opregion: add missing intel_opregion_cleanup() dummy
|
|
Commit Message
Arnd Bergmann
March 14, 2023, 4:25 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> When ACPI is disabled, i915 fails to build because of a missing declaration: drivers/gpu/drm/i915/i915_driver.c: In function 'i915_driver_hw_probe': drivers/gpu/drm/i915/i915_driver.c:556:9: error: implicit declaration of function 'intel_opregion_cleanup'; did you mean 'intel_opregion_setup'? [-Werror=implicit-function-declaration] 556 | intel_opregion_cleanup(dev_priv); Add another empty dummy helper next to intel_opregion_setup(). Fixes: 3e226e4a2180 ("drm/i915/opregion: Cleanup opregion after errors during driver loading") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/gpu/drm/i915/display/intel_opregion.h | 4 ++++ 1 file changed, 4 insertions(+)
Comments
On Tue, Mar 14, 2023 at 05:25:18PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > When ACPI is disabled, i915 fails to build because of a missing > declaration: Hi Arnd, thanks for catching this, I sent the same after the lkp note about the build failure: https://lore.kernel.org/intel-gfx/3238742c-0c57-b8cf-11fe-fd4a57979049@linux.intel.com/T/#me164308b49e975efb8d760e07a5ec9f4489916b9 --Imre > > drivers/gpu/drm/i915/i915_driver.c: In function 'i915_driver_hw_probe': > drivers/gpu/drm/i915/i915_driver.c:556:9: error: implicit declaration of function 'intel_opregion_cleanup'; did you mean 'intel_opregion_setup'? [-Werror=implicit-function-declaration] > 556 | intel_opregion_cleanup(dev_priv); > > Add another empty dummy helper next to intel_opregion_setup(). > > Fixes: 3e226e4a2180 ("drm/i915/opregion: Cleanup opregion after errors during driver loading") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- > drivers/gpu/drm/i915/display/intel_opregion.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/i915/display/intel_opregion.h b/drivers/gpu/drm/i915/display/intel_opregion.h > index 181eb3e9abbf..fd2ea8ef0fa2 100644 > --- a/drivers/gpu/drm/i915/display/intel_opregion.h > +++ b/drivers/gpu/drm/i915/display/intel_opregion.h > @@ -86,6 +86,10 @@ static inline int intel_opregion_setup(struct drm_i915_private *dev_priv) > return 0; > } > > +static inline void intel_opregion_cleanup(struct drm_i915_private *i915) > +{ > +} > + > static inline void intel_opregion_register(struct drm_i915_private *dev_priv) > { > } > -- > 2.39.2 >
diff --git a/drivers/gpu/drm/i915/display/intel_opregion.h b/drivers/gpu/drm/i915/display/intel_opregion.h index 181eb3e9abbf..fd2ea8ef0fa2 100644 --- a/drivers/gpu/drm/i915/display/intel_opregion.h +++ b/drivers/gpu/drm/i915/display/intel_opregion.h @@ -86,6 +86,10 @@ static inline int intel_opregion_setup(struct drm_i915_private *dev_priv) return 0; } +static inline void intel_opregion_cleanup(struct drm_i915_private *i915) +{ +} + static inline void intel_opregion_register(struct drm_i915_private *dev_priv) { }