Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3267842yba; Tue, 16 Apr 2019 08:01:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0W7/rHWVXHiQ2UBK/EoP/QKS/tgiEagSApFqgSEGjonFihyDr2UPYv+NqgzuEgmbHobKI X-Received: by 2002:aa7:9389:: with SMTP id t9mr84283200pfe.60.1555426877968; Tue, 16 Apr 2019 08:01:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555426877; cv=none; d=google.com; s=arc-20160816; b=iROBdlvD1i7ic0LIAdryEMs+TZuEJ2ccMqIdX2iULcBv7SpAZu+L8TG1IJ5Fp5lp/j R4BkAUgOIjUgJohFX/96OKwHNS9z1HKlzCZq/Pf6by6erBa+yMEQYXtIysYYT3rxCutl yymPaQ4DoZSS5ZWBtcBJ/1i1QpbOv3XgVgsrRk8wevpyPWmLHcKoH83DRs15kod+TnCO caSUhUSXDIDI6RgQ6WcD0ILoZo2V91s5SWNt4A4VYivWPJdGvvnYxGbASHSy9JrwbnUz VLTuKIVFTydDjvz/xR2bK8H0PYhQ83huutLUxmhPDeX469sqP2Gxthdf9M9uHG5gaDrM FMog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=ujC+z/t6gghToAZENbWa/E56slKsxJ/MFXjLkriFGdI=; b=iq/XnQa8TjKZzghK1raowqWY7H1p5DAYCjvzIkY0UHWUQ83BCU4O+Twtak0Xp+MLM7 uU1MkjCoFIvjN5nyCr6z62Zlg8lPATL3EC9XuhgGGV4VJljAk+57KtkpsNzsaYw3qkdD Io/UIOw93U1vHU2lwI5aLeKCPCE+S2t5C/kfvbJW4rERFY8+XtfuF5eUJIKhcNJxul0e jqQJNmPZGZcEE//QGJ2RZLCbsEHwkCtFlMwhptcsXh7bIGmqGqHQf93gRqGxPBpGu+Cp xparPrnu/sVyFaHXUv0R7zR2WlDvj1bjFZLO52o/o0kUyk4L8WGLzUXv9hYMP8H3n2HS /sFQ== 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 m5si40085899pgc.12.2019.04.16.08.01.01; Tue, 16 Apr 2019 08:01:17 -0700 (PDT) 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 S1729859AbfDPO7n (ORCPT + 99 others); Tue, 16 Apr 2019 10:59:43 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:37800 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729785AbfDPO7l (ORCPT ); Tue, 16 Apr 2019 10:59:41 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id B70F135278DF6EE9B4A2; Tue, 16 Apr 2019 22:59:35 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.408.0; Tue, 16 Apr 2019 22:59:29 +0800 From: Yue Haibing To: , , , CC: , , , YueHaibing Subject: [PATCH -next] drm/sun4i: Make some symbols static Date: Tue, 16 Apr 2019 22:58:55 +0800 Message-ID: <20190416145855.20852-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing Fix sparse warnings: drivers/gpu/drm/sun4i/sun8i_tcon_top.c:271:36: warning: symbol 'sun8i_r40_tcon_top_quirks' was not declared. Should it be static? drivers/gpu/drm/sun4i/sun8i_tcon_top.c:276:36: warning: symbol 'sun50i_h6_tcon_top_quirks' was not declared. Should it be static? drivers/gpu/drm/sun4i/sun4i_tcon.c:239:6: warning: symbol 'sun4i_tcon_set_mux' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 4 ++-- drivers/gpu/drm/sun4i/sun8i_tcon_top.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c index fa92e99..9d8d812 100644 --- a/drivers/gpu/drm/sun4i/sun4i_tcon.c +++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c @@ -236,8 +236,8 @@ static struct sun4i_tcon *sun4i_get_tcon0(struct drm_device *drm) return NULL; } -void sun4i_tcon_set_mux(struct sun4i_tcon *tcon, int channel, - const struct drm_encoder *encoder) +static void sun4i_tcon_set_mux(struct sun4i_tcon *tcon, int channel, + const struct drm_encoder *encoder) { int ret = -ENOTSUPP; diff --git a/drivers/gpu/drm/sun4i/sun8i_tcon_top.c b/drivers/gpu/drm/sun4i/sun8i_tcon_top.c index b1e7c76..3267d0f 100644 --- a/drivers/gpu/drm/sun4i/sun8i_tcon_top.c +++ b/drivers/gpu/drm/sun4i/sun8i_tcon_top.c @@ -269,12 +269,12 @@ static int sun8i_tcon_top_remove(struct platform_device *pdev) return 0; } -const struct sun8i_tcon_top_quirks sun8i_r40_tcon_top_quirks = { +static const struct sun8i_tcon_top_quirks sun8i_r40_tcon_top_quirks = { .has_tcon_tv1 = true, .has_dsi = true, }; -const struct sun8i_tcon_top_quirks sun50i_h6_tcon_top_quirks = { +static const struct sun8i_tcon_top_quirks sun50i_h6_tcon_top_quirks = { /* Nothing special */ }; -- 2.7.4