Received: by 10.192.165.148 with SMTP id m20csp3991696imm; Tue, 8 May 2018 00:39:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo/9n7eaS9VUC+HU4nN3U97rvqFzSTIwbBvlUg7jSmSmnubDS7lC9VaRnDtGY3YB+hO45P4 X-Received: by 2002:a63:824a:: with SMTP id w71-v6mr774827pgd.37.1525765164545; Tue, 08 May 2018 00:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525765164; cv=none; d=google.com; s=arc-20160816; b=b8Uzi6z5ym24oaBmoDPkJEutbc3D4DvMsIUTVUBESeYdEAuPPguAJqHvdiLPnDvB76 2NtLD8K4plN2EVMCUCX3eloAWH0J+dXPdBreCmJ66EBsvDv2le/5mBwHh+LnNuVr150v t1hhlnVPQDtiCnxBmFj5f+9yCjXsVjWTPBmmmqGVjj2/OyfbQsaG47xlv3SjpTTnwkAU Sez3knluv6R+i7rsVF8DyFIuktn4dX4jpr79srCsfB+y8m0m/guu0ajtA6ipGOnHMcnl lxIoqOpwZdwAfS4tbaWqeUNU6JSl5hzRZfdI7l96YWQZt1+k+EPXGhaFceoE5Y9sTqbj Iq1g== 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 d9-v6si24020987pls.334.2018.05.08.00.39.10; Tue, 08 May 2018 00:39:24 -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 S1754718AbeEHHjB (ORCPT + 99 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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(-) 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); -- 2.17.0