From patchwork Tue Nov 10 19:31:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322880 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500758ils; Tue, 10 Nov 2020 11:32:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxhdrBzA+SgaWXTaLv2cAiV0Iv+x1v7SuG5nVxcJgU3BL74D73MfcdYeF2oMWEnTQiPxXzV X-Received: by 2002:a17:902:c411:b029:d7:dd6e:60b4 with SMTP id k17-20020a170902c411b02900d7dd6e60b4mr11285224plk.66.1605036732974; Tue, 10 Nov 2020 11:32:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036732; cv=none; d=google.com; s=arc-20160816; b=YOfkHaSpzWmVI05zsIBDbfZVGTTdC2UGyyjtjmAZp13uH/AGrQTgsf2IARIOkmR4Yt mvAIboJCKmEdyN4ym3+smIDAILIi6nmlFpW4EUxYelBz06S2rn27GPGvdBPzLKxt03T4 KUeZJheqiuNHxp3ENVG/ahwlXip1BZUxobSAfS1xPrakUOEwJQAlO+Ot+2XQEnSLFz18 xcaRmeDhPKt9hVqc15qWkwmrEjjqBmntbG+AyZngY39qbXnAF+hG2b8kglJcMAN0ab0s KmpSrsRDiJ1qPft/qmTsem3sk8uBpxbVcKVoJgT/mf72tJVt38xt3qriMsqClxRl682C 84AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=BC/Wjww9zikRbIiaCG3cfBHpEwu74P10qv/dUNReNMo=; b=UrXwpSc3wsS3UNdq6JN+Gv/yhSHbLJxISm8HnpVoXamZilj8XWQb7vVIrUVu2oBfTW rhqYyJZKDs604JoCNQz4i5HmivQAGRTK5JQLyPfSErslkB0PI8XqoSLqs3fDDCJO/3NT Ccc56sARnipDMZBIchdR7RNKDEKK0xG0+OjjNxrMaoeD+dtjqayisGmmAErA0+YeFGun FYpU0GSl4vzMDKy7xFLPcTSME+c+sjPovjPQGWm9qoK6+gJEtR5nfihgwGlFWUh1RHhl 2SzUxOazswyHjo82zfgaw/IQHEVAKGETfh/YplySBL9ZNVgVE0DyngNoA4Wx1Q+XNNog alrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CZrD24nh; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id 11si11619358pgt.99.2020.11.10.11.32.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:32:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CZrD24nh; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6D77389C59; Tue, 10 Nov 2020 19:32:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id C102389C0D for ; Tue, 10 Nov 2020 19:31:48 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id j7so6754708wrp.3 for ; Tue, 10 Nov 2020 11:31:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4Sm/diM1ysLxo1VzfvufUrkgqFPpDL8/DuxdgOjGpqk=; b=CZrD24nhvG2iKoj4noUsAlrwucBSgxTDbkGLYlEEUgSDr2Zy+HeJpNOHnLGyxd2YyB ZJQ6UXdgUfIMAhCAJ024R0H2Way6kwLlIHcQePC+l7iMTF0CV6X8kZDDmPGuaemhUSp8 800pFOG3yycgu2nI36yUiLjHgtWG5tpiOGBqQpcARNijHSmCokrGz9nmDIu6zJ6tg/z5 FCRP6rRBQCoRr3UUGixrgmzUVA8rkV0jAqYjmFjNigFQNMg0VIghzCyxk1PB5/rtlmmL wo5Jr7Q/LM8kPqSrNKHMXufrbqKBkDSEpL7HRj0P0JoHjIVks/WOc6vhahHnS895KRw/ wI/w== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=4Sm/diM1ysLxo1VzfvufUrkgqFPpDL8/DuxdgOjGpqk=; b=jK4suq+3i5bqniqbmz+FSdbCltjbIa8MbT8HseE0fIvpQQlaPGULODTUZMurzATE/m XQygvE5dZK9Ql6ihS2YdUoKvx4j4NNm+P21ZCGB47hX0HTWt8eVvX3Vn3Q3UR1DCi8Ki brfd+xBv0dVRQ/601zrMPR0ztXWvuUFBIci9eplrFySXs8TVqt+sIa8hXZr/noixThWV YslO5XywPkJhuwTjQ4JStanGNVAQ6bwE5JM+wbU4Y/pSDsogE56r84nAdFud4th0+J+t J3Zx8dLWLmhXQQIJr81OejKtOFxWQnH+KoEk/Z6Lo73CKPESAhK4Qpb/sG9cgIW/QSna J++g== X-Gm-Message-State: AOAM532Kz/TvPS3QPkFi6OHQ7BpU4PTHF4nRwrV78FU2fG2vawMPg6i5 a5xcQYdmrB+s0z58DUCfelB4TQ== X-Received: by 2002:a5d:46c6:: with SMTP id g6mr8139860wrs.170.1605036707394; Tue, 10 Nov 2020 11:31:47 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:46 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 25/30] drm/radeon/sumo_dpm: Move 'sumo_get_pi()'s prototype into shared header Date: Tue, 10 Nov 2020 19:31:07 +0000 Message-Id: <20201110193112.988999-26-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/sumo_dpm.c:81:25: warning: no previous prototype for ‘sumo_get_pi’ [-Wmissing-prototypes] 81 | struct sumo_power_info *sumo_get_pi(struct radeon_device *rdev) | ^~~~~~~~~~~ Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/sumo_dpm.h | 1 + drivers/gpu/drm/radeon/sumo_smc.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/sumo_dpm.h b/drivers/gpu/drm/radeon/sumo_dpm.h index f1651135a47ab..db29d37ae2703 100644 --- a/drivers/gpu/drm/radeon/sumo_dpm.h +++ b/drivers/gpu/drm/radeon/sumo_dpm.h @@ -207,6 +207,7 @@ u32 sumo_get_sleep_divider_from_id(u32 id); u32 sumo_get_sleep_divider_id_from_clock(struct radeon_device *rdev, u32 sclk, u32 min_sclk_in_sr); +struct sumo_power_info *sumo_get_pi(struct radeon_device *rdev); /* sumo_smc.c */ void sumo_initialize_m3_arb(struct radeon_device *rdev); diff --git a/drivers/gpu/drm/radeon/sumo_smc.c b/drivers/gpu/drm/radeon/sumo_smc.c index d781407057366..78d8716067318 100644 --- a/drivers/gpu/drm/radeon/sumo_smc.c +++ b/drivers/gpu/drm/radeon/sumo_smc.c @@ -30,8 +30,6 @@ #define SUMO_SMU_SERVICE_ROUTINE_ALTVDDNB_NOTIFY 27 #define SUMO_SMU_SERVICE_ROUTINE_GFX_SRV_ID_20 20 -struct sumo_power_info *sumo_get_pi(struct radeon_device *rdev); - static void sumo_send_msg_to_smu(struct radeon_device *rdev, u32 id) { u32 gfx_int_req;