From patchwork Sat Aug 9 17:07:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 4703081 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 614F39F377 for ; Sat, 9 Aug 2014 17:07:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A60B12015E for ; Sat, 9 Aug 2014 17:07:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 298522015D for ; Sat, 9 Aug 2014 17:07:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751752AbaHIRHQ (ORCPT ); Sat, 9 Aug 2014 13:07:16 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:55468 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751779AbaHIRHP (ORCPT ); Sat, 9 Aug 2014 13:07:15 -0400 Received: by mail-wi0-f177.google.com with SMTP id ho1so2381256wib.4 for ; Sat, 09 Aug 2014 10:07:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=i8VzTUJbOx5baHGQnvYYAFmbqlMAQXnFs91NNPEnyXA=; b=GXvM5/vdENwmd30Afty1FF4PdjqmaJutlzjCvRXRAV/LAex7Nyf9a4Xabn9Mq7R4dR ZOeZDRSeKWEXeLbrNFQiH9olY37X2K8+4ToeBVGyUeTsBLtejJAt9enm0tgsJg7FWuqS W8MYzdxFDS2Or/1KfQmcm8DQw4AINKzljMNvvjpALOLNbDAcWCEp8eW1Pr1UJxMFQr0H /oxYvWwhhAvRMFxtuNUVNGfMIt6gbwW9/1Lf9Q6xeJvg8laBLZsRlLqmkYQpoBvnleIS kowSvqXMJaK8lKOPzF3wUtZ8Y9yezyvuiup2gTzTtm1+BIfCmpwyIu2qJjvU258VQG9E yNxA== X-Received: by 10.180.12.79 with SMTP id w15mr12118384wib.35.1407604033691; Sat, 09 Aug 2014 10:07:13 -0700 (PDT) Received: from ramsan.of.borg (d54C154A7.access.telenet.be. [84.193.84.167]) by mx.google.com with ESMTPSA id do6sm20906316wib.22.2014.08.09.10.07.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 09 Aug 2014 10:07:12 -0700 (PDT) From: Geert Uytterhoeven To: Jiri Kosina Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] Input: wacom - Fix compiler warning if !CONFIG_PM Date: Sat, 9 Aug 2014 19:07:03 +0200 Message-Id: <1407604023-7429-1-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP If CONFIG_PM is not set: drivers/hid/wacom_sys.c:1436: warning: ‘wacom_reset_resume’ defined but not used Protect the unused functions by #ifdef CONFIG_PM to fix this. Signed-off-by: Geert Uytterhoeven Reviewed-by: Benjamin Tissoires --- drivers/hid/wacom_sys.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c index 3e388ec31da8..f0db7eca9023 100644 --- a/drivers/hid/wacom_sys.c +++ b/drivers/hid/wacom_sys.c @@ -1416,6 +1416,7 @@ static void wacom_remove(struct hid_device *hdev) kfree(wacom); } +#ifdef CONFIG_PM static int wacom_resume(struct hid_device *hdev) { struct wacom *wacom = hid_get_drvdata(hdev); @@ -1436,6 +1437,7 @@ static int wacom_reset_resume(struct hid_device *hdev) { return wacom_resume(hdev); } +#endif /* CONFIG_PM */ static struct hid_driver wacom_driver = { .name = "wacom",