From patchwork Thu May 13 04:59:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Yingliang X-Patchwork-Id: 12255157 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=-16.7 required=3.0 tests=BAYES_00, 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 99FB3C433ED for ; Thu, 13 May 2021 04:56:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 657A7613D6 for ; Thu, 13 May 2021 04:56:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230260AbhEME6F (ORCPT ); Thu, 13 May 2021 00:58:05 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3739 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230176AbhEME6F (ORCPT ); Thu, 13 May 2021 00:58:05 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FgfSB6FQ9zpdqc; Thu, 13 May 2021 12:53:30 +0800 (CST) Received: from huawei.com (10.175.103.91) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.498.0; Thu, 13 May 2021 12:56:52 +0800 From: Yang Yingliang To: , CC: Subject: [PATCH -next] fbdev: chipsfb: chips_init() can be static Date: Thu, 13 May 2021 12:59:17 +0800 Message-ID: <20210513045917.622849-1-yangyingliang@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.175.103.91] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org chips_init() only used within this file. It should be static. Signed-off-by: Yang Yingliang --- drivers/video/fbdev/chipsfb.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/video/fbdev/chipsfb.c b/drivers/video/fbdev/chipsfb.c index 998067b701fa..81198faf8159 100644 --- a/drivers/video/fbdev/chipsfb.c +++ b/drivers/video/fbdev/chipsfb.c @@ -66,11 +66,6 @@ inb(0x3da); read_ind(num, var, 0x3c0, 0x3c1); \ } while (0) -/* - * Exported functions - */ -int chips_init(void); - static int chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *); static int chipsfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info); @@ -498,7 +493,7 @@ static struct pci_driver chipsfb_driver = { #endif }; -int __init chips_init(void) +static int __init chips_init(void) { if (fb_get_options("chipsfb", NULL)) return -ENODEV;