From patchwork Fri Dec 11 19:32:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 11971505 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05397C1B0D8 for ; Mon, 14 Dec 2020 08:18:45 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id A3086207A5 for ; Mon, 14 Dec 2020 08:18:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A3086207A5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 23B586E0E8; Mon, 14 Dec 2020 08:17:55 +0000 (UTC) Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 834C76E9FE; Fri, 11 Dec 2020 19:32:58 +0000 (UTC) Received: by mail-pf1-x444.google.com with SMTP id i3so7603564pfd.6; Fri, 11 Dec 2020 11:32:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=yscUIRHphl57WTyf7pGrRDrrRirSs+LIMlStQDJD4h4=; b=kib8ptgiRi9Rpdv6SG90FgWZNGMv+QBwMSyvNZEOI+E3xw4yMRam/Hkhl7jak8VM72 lb1F9B1ldb8e7tWPyBs12wNTH0gBXWoFF/yigXwSKKZ/AKcfSjcn5zjh/9/rZHn9H+Zy AY4x4Gq6kAP1fW1GVteqh7TPmL44K2LUkTwIhGOXkxKqi2tytAJaquScpcjqbcZ9d6cA +hX0zfxK5QWFfeiqaHZ7IDXNF4N0TGPBBWp82y9AtqO3OZek9Y9LzqfO3dZLhOLWo6cL fvwXPjSTGhr7f9KQhBPCljyMCuxs1IeXYDrP6ZcAKRFvmyBLUDgMl+/MOpcVR6EnLKF5 st0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=yscUIRHphl57WTyf7pGrRDrrRirSs+LIMlStQDJD4h4=; b=njvaFRNnLMJDGcMhUxEXw7IM3SbnfMdRqWYjsCg3waNrPpTMRfWfOPyegjWFDJP3mG 0xvbEishlYdltgUOlrGbSG+KkdgO5wr0X9+KgJkm6BwTgmCTKrkf4YnShOllNw/iaL28 NJHWS8WnckjW19iljNIPNMpSvAMF+kMzGSV8uKArTa6bV8uk50CSFEAO/U8B0cF4584F kDyxLHEfB2zUD/dHCxxI8ab3r/vEAp0oKEslzLsCPpJq3D1Dkko6lTBseYoaxVj2mADb qXXlgkT5Wdv9bBXjf/zFhMX95D5ueMqDNhGa5C1RogirqN7iF67jrc7+oUXUAw2EGxyA uigg== X-Gm-Message-State: AOAM5333GpA3K1NuiK1YFiAKSmVR3mVPiMfXeiYX6Le5G/bbgCT/sREn L6IrqX+Omh30xBdiabDRGG8= X-Google-Smtp-Source: ABdhPJwNoprX3DSMJJo2m05JcKw/NAnRSHHEbiQfyblS4U00fTfoqZ+1MngiJ6ryWSsX0IcYHDITLA== X-Received: by 2002:a63:e849:: with SMTP id a9mr13179684pgk.300.1607715178001; Fri, 11 Dec 2020 11:32:58 -0800 (PST) Received: from jordon-HP-15-Notebook-PC.domain.name ([122.179.87.107]) by smtp.gmail.com with ESMTPSA id z126sm10934993pfz.120.2020.12.11.11.32.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Dec 2020 11:32:57 -0800 (PST) From: Souptick Joarder To: harry.wentland@amd.com, sunpeng.li@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, airlied@linux.ie, daniel@ffwll.ch, nicholas.kazlauskas@amd.com, Rodrigo.Siqueira@amd.com, aurabindo.pillai@amd.com, stylon.wang@amd.com, eryk.brol@amd.com, hersenxs.wu@amd.com Subject: [PATCH] drm/amd/display: Fixed kernel test robot warning Date: Sat, 12 Dec 2020 01:02:36 +0530 Message-Id: <1607715156-4258-1-git-send-email-jrdr.linux@gmail.com> X-Mailer: git-send-email 1.9.1 X-Mailman-Approved-At: Mon, 14 Dec 2020 08:17:40 +0000 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: Souptick Joarder , dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Kernel test robot throws below warning -> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5349:5: warning: no previous prototype for 'amdgpu_dm_crtc_atomic_set_property' [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5349:5: warning: no previous prototype for function 'amdgpu_dm_crtc_atomic_set_property' [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5373:5: warning: no previous prototype for 'amdgpu_dm_crtc_atomic_get_property' [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5373:5: warning: no previous prototype for function 'amdgpu_dm_crtc_atomic_get_property' [-Wmissing-prototypes] As these functions are only used inside amdgpu_dm.c, these can be made static. Reported-by: kernel test robot Signed-off-by: Souptick Joarder --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 313501c..e6d069d 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -5328,7 +5328,7 @@ static void dm_crtc_reset_state(struct drm_crtc *crtc) } #ifdef CONFIG_DEBUG_FS -int amdgpu_dm_crtc_atomic_set_property(struct drm_crtc *crtc, +static int amdgpu_dm_crtc_atomic_set_property(struct drm_crtc *crtc, struct drm_crtc_state *crtc_state, struct drm_property *property, uint64_t val) @@ -5352,7 +5352,7 @@ int amdgpu_dm_crtc_atomic_set_property(struct drm_crtc *crtc, return 0; } -int amdgpu_dm_crtc_atomic_get_property(struct drm_crtc *crtc, +static int amdgpu_dm_crtc_atomic_get_property(struct drm_crtc *crtc, const struct drm_crtc_state *state, struct drm_property *property, uint64_t *val)