From patchwork Tue Jan 12 19:57:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 12016075 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=ham 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 09217C433E0 for ; Wed, 13 Jan 2021 08:22:02 +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 9E944235FF for ; Wed, 13 Jan 2021 08:22:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9E944235FF 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 41FA26E0F7; Wed, 13 Jan 2021 08:21:30 +0000 (UTC) Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7322D89C19; Tue, 12 Jan 2021 19:57:32 +0000 (UTC) Received: by mail-pf1-x430.google.com with SMTP id w2so2011231pfc.13; Tue, 12 Jan 2021 11:57:32 -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=8dVFyFiyF8C+YWyOq836m8QU0axjla2SznTviLPhcFk=; b=KhkahF+Q+s5CL6PHq2P1p5hNDDOSnWQVZeJHVkiJzQhVDLAvJhxj8n1E9aK1rgLP+i D+GyyNExLtp5vqHuX6XcII2nR2HAhVZ8lkxZwd4reXmQg3exTBn6wTnseA41PObhqgKI X5Jnnx7uSDTirc71GLq0F9EZXxJZqur5wErdPlF/qs4NtCir6SGBgne1wRnQjWCib11j MvYDBmNdZlu7oLX/ViQbbPVfWB0NVLfcAMTRTy66FUwgs67AVQR+uKE0fMB3TMxEoAOJ ZhgSJlPdp1tiT7pk4YaB/179iyH8zmCvUlG4DSvhXQiplw8sE2Ob4oeBhvKbW0TvnMVW T1lg== 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=8dVFyFiyF8C+YWyOq836m8QU0axjla2SznTviLPhcFk=; b=rxFsGU/mTp6us8EEyqCk8xRm1tJYq9ebiyfA5wWn8fqDcGZpm0ANv5obL5pcX4Ddkx MfVfeCz5/UJKjkSlgnjOUAeglC572ZvMzYRJemYx+nVgl8ha5tXkxWgy9Swf/xZnpo8S KMukreeLGNoHVPlPbhPk6hEi3I7gh376cgLw4Tu6pMR8lNVCukB1e4KAwZI7341wFulQ SmOw6Th05o9D588xQQ+lvxjfFS71kGR0DdP/ZZZKG+y8HEGz/5kefiAluxfu6EFbQ6P0 0zF1qw35hkVUgMo9KtkHxB8kodAhwQc6ArxPMdQjnMDOxALN2AQHLzXf/eSVO3LBPfAp ryag== X-Gm-Message-State: AOAM5316pZygyRwGUBRYgcXXsTJt/uIgXxSr1DKYprReVIGL0Rq/4BWs tRK0OMGFPcwWaMX8Tb1dNlE= X-Google-Smtp-Source: ABdhPJxWZJ0yiE0hSvXxmHZNYo4sSoW3/0CiG7pxMwVjn8U2zFJvSb5sR5sDJhAAPd+z95PzYX+sEg== X-Received: by 2002:aa7:9a07:0:b029:1a6:5f93:a19f with SMTP id w7-20020aa79a070000b02901a65f93a19fmr865506pfj.21.1610481451911; Tue, 12 Jan 2021 11:57:31 -0800 (PST) Received: from jordon-HP-15-Notebook-PC.domain.name ([122.179.121.136]) by smtp.gmail.com with ESMTPSA id 11sm4759328pgz.22.2021.01.12.11.57.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jan 2021 11:57:31 -0800 (PST) From: Souptick Joarder To: alexander.deucher@amd.com, christian.koenig@amd.com, airlied@linux.ie, daniel@ffwll.ch, Xiaojian.Du@amd.com, ray.huang@amd.com, evan.quan@amd.com, lijo.lazar@amd.com, Jinzhou.Su@amd.com, Xiaomeng.Hou@amd.com Subject: [PATCH] drm: amdgpu: pm: Mark vangogh_clk_dpm_is_enabled() as static Date: Wed, 13 Jan 2021 01:27:22 +0530 Message-Id: <1610481442-6606-1-git-send-email-jrdr.linux@gmail.com> X-Mailer: git-send-email 1.9.1 X-Mailman-Approved-At: Wed, 13 Jan 2021 08:21:20 +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 warnings -> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:594:6: warning: no previous prototype for 'vangogh_clk_dpm_is_enabled' [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:594:6: warning: no previous prototype for function 'vangogh_clk_dpm_is_enabled' [-Wmissing-prototypes] Mark vangogh_clk_dpm_is_enabled() as static. Reported-by: kernel test robot Signed-off-by: Souptick Joarder --- drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c index 75ddcad..3ffe56e 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c @@ -610,7 +610,7 @@ static int vangogh_get_profiling_clk_mask(struct smu_context *smu, return 0; } -bool vangogh_clk_dpm_is_enabled(struct smu_context *smu, +static bool vangogh_clk_dpm_is_enabled(struct smu_context *smu, enum smu_clk_type clk_type) { enum smu_feature_mask feature_id = 0;