Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1839144ybl; Thu, 19 Dec 2019 03:59:20 -0800 (PST) X-Google-Smtp-Source: APXvYqzWX5MyMeKLQinsj/TZEbzbWKOWXEGleyqCpDvOGhd1UnFqd7UaQDyNLJwRkKx4d2gjA0Da X-Received: by 2002:a9d:70d2:: with SMTP id w18mr8907460otj.48.1576756760770; Thu, 19 Dec 2019 03:59:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576756760; cv=none; d=google.com; s=arc-20160816; b=udO9cDOho+Yp8TEsArU1G02+7LrieNz/cGXBZYxXtp5Vw9W79OEQIjI0BUxwa32E2C u+dgKNW/ocEeOL5ADutTjybNYvQXayAHmzTEc3XxvveYEl5GHsxIG2nJahtWod65ulfn THqznBTJu6Cd3p4RHc7XGMGFLEyl04G8hPJAq/ncRR4DFssJDDxr6oDGiakQ9KnJLNPE RIdlKG1tTjeP43ScrZyU8Y0bwVLDrwb/IIGBeGH9PlYFF1Xza+9a6p5yR5ITUFLYBjwd PDY3G+D4L4aAsIOyjQR/SErVyFXZwINK+9v+IHppHitQV56sjIINeUPOUjLzN78XPplv +BvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=5l0duWbaYBHXs1niaf+E1m8kUrYLsBRtn94zB/2BAY0=; b=ezmTiLfcfxROuWJsdMKzujVB3wKGX3NV//ElI6Z/48dLAt+7rmlS8gkbfNUNIf5gqs PJYiHFBpeerxPKGLhHnrQ+ZqMxdmHkJ3v9OPxP2KzB9IzzK3syZxQlkkNo/zHSjeQWwf wc80Zx4SAMs/KAbptHzdLOjCPpHfFZbUOt6onPiGBdmru98ed7yHw5IapPIjhqmyVjFZ rSee+zj/W9kfu0Jy21tz8HuOqVI6Pe1FW+Njc7mGVRy05TAGpU5obmwAFE0EuesLuGFj qF49CHo/p/VeoSiXGbR99YdrfYk0fqO26hCNkbH6nguhuV4lA9BreY502PPmn5Rt2HnM cV+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z14si3240534oth.15.2019.12.19.03.59.07; Thu, 19 Dec 2019 03:59:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726708AbfLSL6T (ORCPT + 99 others); Thu, 19 Dec 2019 06:58:19 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:8153 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726668AbfLSL6T (ORCPT ); Thu, 19 Dec 2019 06:58:19 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 58D1A847682FDD26398B; Thu, 19 Dec 2019 19:58:17 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.439.0; Thu, 19 Dec 2019 19:58:10 +0800 From: Chen Zhou To: , , CC: , , Subject: [PATCH next] drm/amd/display: make non-global functions static Date: Thu, 19 Dec 2019 19:55:00 +0800 Message-ID: <20191219115500.2047-1-chenzhou10@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warning: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:964:5: warning: symbol 'shift_border_left_to_dst' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:975:6: warning: symbol 'restore_border_left_from_dst' was not declared. Should it be static? Fixes: 89d07b662f5e (drm/amd/display: fix 270 degree rotation for mixed-SLS mode) Reported-by: Hulk Robot Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c index 64a0e08f..5843c16 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c @@ -961,7 +961,7 @@ static void calculate_inits_and_adj_vp(struct pipe_ctx *pipe_ctx) * We also need to make sure pipe_ctx->plane_res.scl_data.h_active uses the * original h_border_left value in its calculation. */ -int shift_border_left_to_dst(struct pipe_ctx *pipe_ctx) +static int shift_border_left_to_dst(struct pipe_ctx *pipe_ctx) { int store_h_border_left = pipe_ctx->stream->timing.h_border_left; @@ -972,7 +972,7 @@ int shift_border_left_to_dst(struct pipe_ctx *pipe_ctx) return store_h_border_left; } -void restore_border_left_from_dst(struct pipe_ctx *pipe_ctx, +static void restore_border_left_from_dst(struct pipe_ctx *pipe_ctx, int store_h_border_left) { pipe_ctx->stream->dst.x -= store_h_border_left; -- 2.7.4