From patchwork Wed Aug 31 08:37:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 9306629 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 82145601C0 for ; Wed, 31 Aug 2016 08:38:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7481128662 for ; Wed, 31 Aug 2016 08:38:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 68C6D28E53; Wed, 31 Aug 2016 08:38:39 +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=-5.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, HK_RANDOM_FROM, RCVD_IN_DNSWL_HI, 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 5B4DE28662 for ; Wed, 31 Aug 2016 08:38:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759668AbcHaIiN (ORCPT ); Wed, 31 Aug 2016 04:38:13 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:36790 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759655AbcHaIiL (ORCPT ); Wed, 31 Aug 2016 04:38:11 -0400 Received: by mail-pa0-f48.google.com with SMTP id fu3so8719805pad.3 for ; Wed, 31 Aug 2016 01:38:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=HlooDjD3VzNQ1eZ3q+V/PgT4pPMoFWRrxYjr/Dcfbo8=; b=f8jxuZhOf5joR65uG1MEbuVgje1EbaseGgQ4ok9O64O/d8L84Gkm9acHEHL321ohh2 lvtqiUd7i/9PU8ytxxyD5PpZBn6fnTOkAdsDBwhq5ETJKxhKVKQVF0WAxN5ZS+7Rd1w/ FwEmCk8vOY9tmy/eyk99/i50y2KQam/W6yyIE= 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; bh=HlooDjD3VzNQ1eZ3q+V/PgT4pPMoFWRrxYjr/Dcfbo8=; b=kPFpuQ4nz5xUx8Stx5UvGC8pmaHcsXkshuiQyVmhAVwZ3WWMXuzetmWE9rr4VvTo8h GU3qMuxO7aKrUJ6BK64ctk6Jk/A5+VmuIQh5qBfpMeSYVidM542o2A4AwmdBSiart2q9 TXal0WQQLm1CPMqhM5dQRL7zZ7s4J7s/eprQRZAqgHdHToxUorbGQTnvco37F7wVNMP1 M/1Bh+BD77qg/zIAkmGEzuxbs66QTP4g4jFknZl19jr/Uvqj2l/Xn8xb29r6xRH9Rwv0 Hm8pPMoILsU85+MHTx23iQ4NgG3phmK0oma1LuJtaPv+vxA/uiNj8yJQGOMXmAdYgBvk pifQ== X-Gm-Message-State: AE9vXwObgrDpqz1yR3JfEIxJKFyJIjLA+Y2m7VCXUt7plxfSri8f6jzMZusODLQWKZcBkTCF X-Received: by 10.66.229.39 with SMTP id sn7mr14757688pac.80.1472632690573; Wed, 31 Aug 2016 01:38:10 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.37]) by smtp.gmail.com with ESMTPSA id a20sm62967995pfa.27.2016.08.31.01.38.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Aug 2016 01:38:10 -0700 (PDT) From: Baoyou Xie To: dmitry.torokhov@gmail.com Cc: pali.rohar@gmail.com, hdegoede@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] Input: focaltech - mark focaltech_set_resolution() static Date: Wed, 31 Aug 2016 16:37:41 +0800 Message-Id: <1472632661-32159-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 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 We get 1 warning when building kernel with W=1: drivers/input/mouse/focaltech.c:393:6: warning: no previous prototype for 'focaltech_set_resolution' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie Acked-by: Arnd Bergmann --- drivers/input/mouse/focaltech.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/input/mouse/focaltech.c b/drivers/input/mouse/focaltech.c index c8c6a8c..d3ca02a 100644 --- a/drivers/input/mouse/focaltech.c +++ b/drivers/input/mouse/focaltech.c @@ -390,7 +390,8 @@ static int focaltech_read_size(struct psmouse *psmouse) return 0; } -void focaltech_set_resolution(struct psmouse *psmouse, unsigned int resolution) +static void +focaltech_set_resolution(struct psmouse *psmouse, unsigned int resolution) { /* not supported yet */ }