From patchwork Mon Apr 17 21:03:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 84471 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2411561vqo; Mon, 17 Apr 2023 14:27:00 -0700 (PDT) X-Google-Smtp-Source: AKy350YNMCs3p+g6esYgZIFTmoXSrxLJpWZ+8Yc7+2jmo/w1kIOqj5ZEvhTZRIs9yWFaF4M0SjDo X-Received: by 2002:a17:902:e5c9:b0:1a0:5349:6606 with SMTP id u9-20020a170902e5c900b001a053496606mr243053plf.56.1681766819756; Mon, 17 Apr 2023 14:26:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681766819; cv=none; d=google.com; s=arc-20160816; b=llSg7tMGKJF6AJ9TCHiVnKV1/Mo4/fhcsjPlXMiHcJTSAteYszOGveAVdw1zuAKa6u 3frzoOCn1QT0n/syx0glEwrWS844oqQ86kTEX6SwIZtOJw/vw6s9E5Hu2Iw9PUtJb5C5 77I8gRg7u4a+GepS2RPatO3uqaXZHZQJ3YwyUH1b/kSAF8UG28cnuxIHff4eJRq7MZDj u7IicPD3ZIju5tBRhv+fHTJLSNRigIRQuYTctjRm34rh1Uhy8UDyjZsprf/k9oEfkMsk UXDiwSX3wO2nUnVFp1CS8/5Bld/zobogV5I0Zd8GHhwRcA1VCDi1dO0SNgBeyv8IU6dn iCig== 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=H2Ltjdcu4ijlX9CjwHEYnAydhHiDKvztMLB2axq6aIc=; b=E/8w/Tlid38VFrtLQjvFRcraE8AzDjWCWLbcZOXpA9HbuzefSOMw4bOYtq2fx+grv+ v2SBAjwrVb+9cgXnPnr17Dj9/+yEsmsdfKTFdOkqCCHRSVv6AUlDsOz3H+IIzgrxZACE J6YN3GFWIG5sLblM3FOEPEJTRNEnPGJGpiLdA8qQqdA4NvciY8xeyBBe/UmMEwboCLB4 IojrTGiTfAECKzmvEGRMRer/kmFW+JwWW6LZ04JrSFFrKhhJy+yt8wDXMCIpbC21H4BI +2b9esWwKkCkHbSPr+7lsYs3PrPWjoJmFYL+FzMDP2Ghr1EAO1Wt6QaiYh018Z0Eeqmm 306w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L9k78zW6; 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 b11-20020a170903228b00b001a1e4051da5si13781788plh.498.2023.04.17.14.26.46; Mon, 17 Apr 2023 14:26:59 -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=L9k78zW6; 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 S229854AbjDQVDj (ORCPT + 99 others); Mon, 17 Apr 2023 17:03:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjDQVDg (ORCPT ); Mon, 17 Apr 2023 17:03:36 -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 239A5D2 for ; Mon, 17 Apr 2023 14:03:36 -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 B3CC362203 for ; Mon, 17 Apr 2023 21:03:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8945AC433D2; Mon, 17 Apr 2023 21:03:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681765415; bh=gogdJk9IwdJmU/4O0CfzvIr5faBCNTXnnyqgTDbDnEQ=; h=From:To:Cc:Subject:Date:From; b=L9k78zW6bp/+0gKaf+zI2V7sM8f5vbcCdNMSIaG/vw1yKpclaAd+swwvkijbpGXii kMWNDQpqC2yeyoNdzrhwiNufp/TJf27oWWk/GJCqC877ocah9+oPqRS2bHY4ePf4UC r/dNyfPcNreSohJYevJwIGjl6VqyMsKF9GeGriPZ7tHrguHk9WXRM0WPhchY6LYEPK a3gf2KBQ+Qhn9t3hjNNF2+im/rx0X4IfXIXzn+Ze1Sw6/NUxPU2Wo7WXLooCujjjJ6 1uoGRqF+Cai/AxwIvgULiCfJiCPFt4EcEzFjgGXvvJWHG07l3KZCORSYKAmnO7CCie 7SLuaedzsZ5Lg== From: Arnd Bergmann To: Ben Skeggs , Karol Herbst , Lyude Paul , David Airlie , Daniel Vetter Cc: Arnd Bergmann , Jani Nikula , Dave Airlie , Thomas Zimmermann , dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/nouveau: dispnv50: fix missing-prototypes warning Date: Mon, 17 Apr 2023 23:03:23 +0200 Message-Id: <20230417210329.2469722-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 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,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763460324784153580?= X-GMAIL-MSGID: =?utf-8?q?1763460324784153580?= From: Arnd Bergmann nv50_display_create() is declared in another header, along with a couple of declarations that are now outdated: drivers/gpu/drm/nouveau/dispnv50/disp.c:2517:1: error: no previous prototype for 'nv50_display_create' Fixes: ba801ef068c1 ("drm/nouveau/kms: display destroy/init/fini hooks can be static") Signed-off-by: Arnd Bergmann Reviewed-by: Karol Herbst --- drivers/gpu/drm/nouveau/dispnv50/disp.c | 1 + drivers/gpu/drm/nouveau/nv50_display.h | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c index 5bb777ff1313..9b6824f6b9e4 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c @@ -64,6 +64,7 @@ #include "nouveau_connector.h" #include "nouveau_encoder.h" #include "nouveau_fence.h" +#include "nv50_display.h" #include diff --git a/drivers/gpu/drm/nouveau/nv50_display.h b/drivers/gpu/drm/nouveau/nv50_display.h index fbd3b15583bc..60f77766766e 100644 --- a/drivers/gpu/drm/nouveau/nv50_display.h +++ b/drivers/gpu/drm/nouveau/nv50_display.h @@ -31,7 +31,5 @@ #include "nouveau_reg.h" int nv50_display_create(struct drm_device *); -void nv50_display_destroy(struct drm_device *); -int nv50_display_init(struct drm_device *); -void nv50_display_fini(struct drm_device *); + #endif /* __NV50_DISPLAY_H__ */