From patchwork Wed Sep 21 15:14:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9343723 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A67536077A for ; Wed, 21 Sep 2016 15:15:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F5CE2A708 for ; Wed, 21 Sep 2016 15:15:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 932E22A75A; Wed, 21 Sep 2016 15:15:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92F782A708 for ; Wed, 21 Sep 2016 15:15:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933941AbcIUPPH (ORCPT ); Wed, 21 Sep 2016 11:15:07 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36087 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933395AbcIUPPH (ORCPT ); Wed, 21 Sep 2016 11:15:07 -0400 Received: by mail-pf0-f193.google.com with SMTP id n24so2509224pfb.3 for ; Wed, 21 Sep 2016 08:15:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yUbUOmeZ+lnsVvWWSFB0s5fA7gB9ZVasauMJGSurruQ=; b=JrrBASPlMyGNEAOXjzkFdUFzr6v0ABUefSZhZdBhxGTcTlxMniUUR4T7SkMTvTtnB+ Ad1yr6LLA+DzjJvuA4Ilx3XY5JlXawX/45IVxGN5xYLcEKi+9vHQXQ+bKJyPtwOf6OYa D69m536c4mwVmmdJyLGaB2ClHBNjRiR5qj0YaK0pdjwBeSjvP206QJPw2ePOeQZGtpr9 BOOUPiv0M311eLwUvOfjLZFkEH8TVUKtqRfNLNKiod1ZefFCruUGF4G5OL7onWYu6DiF vhXJgnYMB1CtZirk4+r4FdjjzaK6Tz1C3hAqjGVgn6NVF4wMWs9o55ZUIZ7jlYMhL9W/ Edzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yUbUOmeZ+lnsVvWWSFB0s5fA7gB9ZVasauMJGSurruQ=; b=knmd20/xmm7NSlCjQ3Tee0Zy8Umua286I3MwfuoyWtLcn3hD4X6jG1PfIThwu1Ecyx As/NTCEzNGRNFBuqWszWNURT68hj1jA73AfSQOtkwa5+02nGwc0JnhcUg5uAl1y/TZzw mdkwiMZSuJvOiSdsjNPjlf2WPji0APwWmfAUREMBk585vlIclwMW30Sfw4GTbNAyOWs/ xk7AmG3TPDcr1Iaeij+wAFYc6T8XBAtBM2rw0z5dWdk6PnvlKQAm7uoMp+2/dUZx+izc 48LU2G/1u6DyvhIDMMhxOsPDLHo0l8nJ9eMqx/9a98aOvDtghJDWOe4EvUFUits8KSYq BXqw== X-Gm-Message-State: AE9vXwNtU3GhOMHT+D5+06wmF/0ShlqsbeP8eTmdID/pBwZyfeT6EX9oM/VnaYZVqhWBrQ== X-Received: by 10.98.34.66 with SMTP id i63mr66184162pfi.130.1474470906443; Wed, 21 Sep 2016 08:15:06 -0700 (PDT) Received: from 192.168.0.37 (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id m12sm26193353pfg.30.2016.09.21.08.15.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Sep 2016 08:15:05 -0700 (PDT) From: Wei Yongjun To: Dmitry Torokhov , Hans Verkuil , Nick Dyer , Mauro Carvalho Chehab Cc: Wei Yongjun , linux-input@vger.kernel.org Subject: [PATCH -next] Input: rmi_f54 - fix non static symbol warning Date: Wed, 21 Sep 2016 15:14:58 +0000 Message-Id: <1474470898-8747-1-git-send-email-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fixes the following sparse warning: drivers/input/rmi4/rmi_f54.c:79:12: warning: symbol 'rmi_f54_report_type_names' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/input/rmi4/rmi_f54.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/input/rmi4/rmi_f54.c b/drivers/input/rmi4/rmi_f54.c index cf805b9..65ac9d9 100644 --- a/drivers/input/rmi4/rmi_f54.c +++ b/drivers/input/rmi4/rmi_f54.c @@ -76,7 +76,7 @@ enum rmi_f54_report_type { F54_MAX_REPORT_TYPE, }; -const char *rmi_f54_report_type_names[] = { +static const char * const rmi_f54_report_type_names[] = { [F54_REPORT_NONE] = "Unknown", [F54_8BIT_IMAGE] = "Normalized 8-Bit Image", [F54_16BIT_IMAGE] = "Normalized 16-Bit Image",