From patchwork Thu Oct 27 08:46:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bo Liu X-Patchwork-Id: 13021820 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2F7C9C67871 for ; Thu, 27 Oct 2022 08:46:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 269B010E391; Thu, 27 Oct 2022 08:46:48 +0000 (UTC) Received: from ssh248.corpemail.net (ssh248.corpemail.net [210.51.61.248]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2E49010E391 for ; Thu, 27 Oct 2022 08:46:42 +0000 (UTC) Received: from ([60.208.111.195]) by ssh248.corpemail.net ((D)) with ASMTP (SSL) id WKW00033; Thu, 27 Oct 2022 16:46:33 +0800 Received: from localhost.localdomain (10.200.104.97) by jtjnmail201605.home.langchao.com (10.100.2.5) with Microsoft SMTP Server id 15.1.2507.12; Thu, 27 Oct 2022 16:46:34 +0800 From: Bo Liu To: , , , , Subject: [PATCH] drm: Include missing header Date: Thu, 27 Oct 2022 04:46:25 -0400 Message-ID: <20221027084625.2505-1-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 X-Originating-IP: [10.200.104.97] tUid: 202210271646332f5d602ca8eb02dc5222562c63677094 X-Abuse-Reports-To: service@corp-email.com Abuse-Reports-To: service@corp-email.com X-Complaints-To: service@corp-email.com X-Report-Abuse-To: service@corp-email.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bo Liu , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The file drm_nomodeset.c missed the header drm_drv.h, which resulted on the following warning: drivers/gpu/drm/drm_nomodeset.c:8:6: warning: no previous prototype for 'drm_firmware_drivers_only' [-Wmissing-prototypes] Signed-off-by: Bo Liu --- drivers/gpu/drm/drm_nomodeset.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/drm_nomodeset.c b/drivers/gpu/drm/drm_nomodeset.c index f3978d5bd3a1..9402deb4985f 100644 --- a/drivers/gpu/drm/drm_nomodeset.c +++ b/drivers/gpu/drm/drm_nomodeset.c @@ -2,6 +2,7 @@ #include #include +#include static bool drm_nomodeset;