From patchwork Tue May 8 07:38:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 135133 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp4069710lji; Tue, 8 May 2018 00:39:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqTrJ0a0e5xgEgrQhMOchqdqpieWWLZGTrXt4tc2JCo4ARXrkt6b/ONMyczos6NyDKx6IpP X-Received: by 2002:a17:902:2826:: with SMTP id e35-v6mr14928657plb.348.1525765145040; Tue, 08 May 2018 00:39:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525765145; cv=none; d=google.com; s=arc-20160816; b=heIGyt9dHNLqx6fvTlCBsQZ4e4K8trrG+WCxQT2ba/lWrQJILHDPFjyf58xxwEOgH4 C1lQrsZdCsqs710nhfl7DC9e3aQ48JlQ3MQLAceqx4nS7+dZkAjGxGtL0p1w9yXenaNY aHeF74cuf2og1+JxiQgPqjbLYcfp1aoCfUiBG0snhCkIFEuLY1sY73FuoirgvQ1OyWEI itZv9NizLkzNeSf2MWfbjVyF8T/NBv97UwB+I5vZnL0Ik2ZwzdknQEcTiPeARvEf6e8w egpw5+IOwAZSSpKKZ+6cSXqQkQ6T8syp7gLCt8miL5HYOMLwXWTs7bFNyZ2haRR1FWMa X+8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=fWhsrlJ1MogoI8fFQ06lS1VXI3Ulk5ZHfdkeiXhW7rE=; b=sUSWn4IiCU2Yu738ceKPF/ZQzJ/P88U3PQL4rq2d+zvld2m/pybUNtktC9yOLkex5T 4fUCdt0dbMEjMIWQNmk7AdVKWW13T2E9ojkc9LVJlDrLqHZkmkYPabDXF8LxHsbSHv5J bAF6SVUdLWnCka1GMz4VHaJiX8LjhrVA5hQfs3iVJKEbv43P/TWpYnpCR3G/ECxSPoou rRzvFgN+1krEaA300bRhgcaBXrzu/F+voHq9AGAOY4gK2CAdqLixVBXmPsXR+TNV5IEY 6KIsCZ5/Ef5hM5q8Ob2bpSRQ/9YN2D1iTLR6lIjhI+P+b8VzrltWuaoKaGCMgglI8pR2 V6YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YaHg32gY; 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 sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l16-v6si18462311pgc.177.2018.05.08.00.39.04; Tue, 08 May 2018 00:39:05 -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 header.s=google header.b=YaHg32gY; 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 sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754730AbeEHHjB (ORCPT + 29 others); Tue, 8 May 2018 03:39:01 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:39718 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754492AbeEHHjA (ORCPT ); Tue, 8 May 2018 03:39:00 -0400 Received: by mail-lf0-f67.google.com with SMTP id j193-v6so44376636lfg.6 for ; Tue, 08 May 2018 00:38:59 -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:mime-version :content-transfer-encoding; bh=fWhsrlJ1MogoI8fFQ06lS1VXI3Ulk5ZHfdkeiXhW7rE=; b=YaHg32gYotlfcejEJ42G0XWO6mfVDgw7ZsnhLSDkNchwBk/vGPMd1ZyVohCFE5fTFq 53h+IU3j4hRm6A9plrnyEEd1NHNTU4RH5Y/aEttALbC++9ienqmaIUWZ2Bci2ghOwL+5 4Mpz9gT7LpUBeKcm/EIDNOpjUP6Bh8+UnBkFo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fWhsrlJ1MogoI8fFQ06lS1VXI3Ulk5ZHfdkeiXhW7rE=; b=S9hALKDjMqS1m8+AZoch986QEM+8B3YSd/a6jDwWhFQ56lhkHYHEYJfNVyaDuGkyNi Mmd3LbniAwDPAFerpmiHmBhIlK1VY00sv8Dgm5+mCO4Nq7k1EMWvWmUZsvLjlwt26Lza IyvYy9Kg1A21T5JtGIauO8mPKIJ3XikBuf45UJQvU2trgDcF05yODQM8VriS/COKo9Ji uj4aX/OjMPbFQYJ+ExfbENwGKdoN9/vvctY+YwgUK3KS+vY8ffxTSzvu+vmCUSZLfC7d XCpxIzre65tR4odY4X1l0RleLT1qLdQ8lWAi1pLay9BHnPU6JUd8r0y4ocrPhr5zYJGM xKbQ== X-Gm-Message-State: ALQs6tC5drOUJXqYg/68OJt9ufQVxDKephb7A61VDzptFbkcoMzgBN3E b1mlFDeY5slqmXJ6UEpl7ZBQ0g== X-Received: by 2002:a2e:888b:: with SMTP id k11-v6mr7370854lji.54.1525765138673; Tue, 08 May 2018 00:38:58 -0700 (PDT) Received: from localhost (c-2c3d70d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id i14-v6sm791996lfh.29.2018.05.08.00.38.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 May 2018 00:38:57 -0700 (PDT) From: Anders Roxell To: jdelvare@suse.com Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] i2c: i801: mark PM functions as __maybe_unused Date: Tue, 8 May 2018 09:38:52 +0200 Message-Id: <20180508073852.16840-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With CONFIG_PM, we get a harmless build warning: drivers/i2c/busses/i2c-i801.c:1723:12: warning: ‘i801_resume’ defined but not used [-Wunused-function] static int i801_resume(struct device *dev) ^~~~~~~~~~~ drivers/i2c/busses/i2c-i801.c:1714:12: warning: ‘i801_suspend’ defined but not used [-Wunused-function] static int i801_suspend(struct device *dev) ^~~~~~~~~~~~ This marks the affected functions as __maybe_unused. Fixes: a9c8088c7988 ("i2c: i801: Don't restore config registers on runtime PM") Signed-off-by: Anders Roxell --- drivers/i2c/busses/i2c-i801.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.0 diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index ed07f9002710..ff18c6ed2bec 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c @@ -1711,7 +1711,7 @@ static void i801_shutdown(struct pci_dev *dev) } #ifdef CONFIG_PM -static int i801_suspend(struct device *dev) +static int __maybe_unused i801_suspend(struct device *dev) { struct pci_dev *pci_dev = to_pci_dev(dev); struct i801_priv *priv = pci_get_drvdata(pci_dev); @@ -1720,7 +1720,7 @@ static int i801_suspend(struct device *dev) return 0; } -static int i801_resume(struct device *dev) +static int __maybe_unused i801_resume(struct device *dev) { struct pci_dev *pci_dev = to_pci_dev(dev); struct i801_priv *priv = pci_get_drvdata(pci_dev);