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: 75038 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp214097qga; Wed, 31 Aug 2016 01:38:31 -0700 (PDT) X-Received: by 10.66.181.16 with SMTP id ds16mr14826761pac.102.1472632711881; Wed, 31 Aug 2016 01:38:31 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id eg8si49773708pac.40.2016.08.31.01.38.31; Wed, 31 Aug 2016 01:38:31 -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; dkim=pass header.i=@linaro.org; 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; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759692AbcHaIiO (ORCPT + 27 others); Wed, 31 Aug 2016 04:38:14 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:34409 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759656AbcHaIiL (ORCPT ); Wed, 31 Aug 2016 04:38:11 -0400 Received: by mail-pa0-f49.google.com with SMTP id fi15so16499878pac.1 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=KAiFvlcHjswKO3jUzUJkf9l4jPkK2fAaMBNmFjTQi4aLwUSCcb/qx3RcDgA09uNotY YoMCnjcoa5i+8HU2kc1mg+ARZjBH7x1Bl+3FqmCPmLv+E7rRpqGHrecefs39lqGRnqqn /gh8M20c8Gx+VsEg4YVurKEglfYCkgg0NHGymoplcKXUopJlTVkW3AwGGON1vOpIAgVb rh1V4MJZCvf4a38B1egArqsYHYjAKLiB1rpEDdy8cK/zILkUSD9/MluAwO8Qvf3qt8oW IurvLBEkiS00JN4v9y4DX7gBKugjME53CLivetkjLUPt3XWpcwwccwVneaj1MrhKPod4 2Qzg== X-Gm-Message-State: AE9vXwMsvKyrfEOTBMQuilgNIFNZ3BaF62U28snG24ZVtEWnsY2I96lW0KPxNW9iywDIoz31 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/input/mouse/focaltech.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 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 */ }