From patchwork Mon Dec 10 20:53:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 153349 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4000507ljp; Mon, 10 Dec 2018 12:54:09 -0800 (PST) X-Google-Smtp-Source: AFSGD/VumAR3+BTdTtY2CYe1n98r4Cvq0Ts8XJZc59KUiV1FnQb55611p/whLc+GSFfIVb3Elm14 X-Received: by 2002:a17:902:583:: with SMTP id f3mr13885259plf.202.1544475249685; Mon, 10 Dec 2018 12:54:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544475249; cv=none; d=google.com; s=arc-20160816; b=zcUepPGnjm5CeZqty71uueE8USZlTH1ThBE47RdkGJSsCPuSMqWZu0jzu+OkcC12q/ kn59KyOJPgByB1+q2YgjFMLJB8d+ui0O5EMXSN9tNm9QNqHI1ErGOPOZHUoGS7kJ0CL+ xon6uC7NhrfnfYbCXkObB8meWcqo2o6aJBFwJqQBfLj25mqlmVFzJ9kCRHRziWCLfY7N ZYw8sWFRsoDKEBmdCLUu8NfnXwJypWhLI7f4d7G0PN7ktTGZY4U7+UR8IaQswyaHluN4 /M0VjfbdtkofYQJ0JPHHzy/B5VJFWKpVMJY+LcOHX00BuPIaPDmfOObG+vWP58InX4Pa CVFQ== 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; bh=/cJ+3b/cRvcmmvHMLZ/8OrrihnHCi9363vM43b+bSD4=; b=Ukn1juVkgZyUUhojY3h0j2BPtwkANLzuvu990bnfd+20OoXDCWxjnG7dUMSZbSgerH On7gIrZlljO7LJXgV29JAgmfMv7NkRXI+sBmz1gBQUP+matMWYnT8TE9KmDdJfOxFkEi qLYiD793T0OPnmt20zJGw2v/0R/wJC7jsH2kexjNj4B8S1KzYQszPSNBxtxAZ8jRvr8W 7ZN6evSoFsH8oeh1GwrxwueCJGSCI366v6Cwl0oH9WtNud+RBHMGSZSJgY3chZvj6hiI N9HPW6czwnqEfvq2z3iCFKq29jUuAl81JodHcF8pUCzc4JViJg/aoHDJq1d0L9JawREn 8sow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p189si11419276pfb.0.2018.12.10.12.54.09; Mon, 10 Dec 2018 12:54:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727778AbeLJUyI (ORCPT + 2 others); Mon, 10 Dec 2018 15:54:08 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:59053 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727632AbeLJUyI (ORCPT ); Mon, 10 Dec 2018 15:54:08 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.129]) with ESMTPA (Nemesis) id 1M3UhO-1gVuKd2gpG-000dPp; Mon, 10 Dec 2018 21:53:57 +0100 From: Arnd Bergmann To: Ajay Gupta Cc: Arnd Bergmann , Wolfram Sang , Andy Shevchenko , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] i2c: nvidia-gpu: mark resume function as __maybe_unused Date: Mon, 10 Dec 2018 21:53:45 +0100 Message-Id: <20181210205356.2846843-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:CW+VANAtXIQWNcjOIY2sMeZksNODDoahiQkGAfk66JxUMkQimGA kIfAvvUthrNtlOyOrtdDG9aVQu4UH+QJJVA46A+nyN8MJpFgzWiTkUl6Pt6qfsQzbKTHd/F g0MtgtdjF7Xyi6vGs7LTH7ihBQk0Ro1vrLfEGCkROCYP+Sx/mKanYx0BRSQCbiFsClGROyF UjaKr/zkKamJN/+ecAxuQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:XNgpvOIInRw=:qNWIII9vjbt321CDM8kL49 5qS/ajGqVA1mBDIEl6UAPvZUB0DrcBHw546djLqQnGSjFbBPeOsJsTrjqMFAl1OpKZlLWFN21 jG0ZWDssc8WbDFWhuDRrKDctsGSYiLD8RtP4p5nqmXh103T2LPazxDnEx33AlKYsnDPVaFe3y uS/XBfgh+6/RanRvhmpvDD1RLfmfxPzYRu4aCbcHO6gJu0wdedGA0citB04DlKRgQN+wzcGk+ 7T3uR1EH5c4zOkIcynWSt1kT6de9BwbwsNXHhFXil/nHTNry8lWrIIhcc61w/LxWa3EiKGU/r b7q/4I03vyxhFgV3IAu4MBvFbKFwiP8SkU/nELlmJbedC5/TF9lusI88oQR11YAan1QjyPfwh MGdPl64WZAGaqwT6Q9YykdTTU0MAcVWVbTi9lnjsxGTgR4ZU2b7TyAc7malp1Za82S6YCPgZh 98PBf/Xyizep9naiguEiNuB4MzJAPZbU4nkETN+7sPcvXFBTDQjhLMp1VyHISzV0zx84o3iJ5 9doB33bwkV2cFIywxJKwontLM4UuxJ+RAWCDi7kCt72WWcZVQICazYiomY4snkjWGJn7cLhOQ GFc2vm4B2TGNZtixmNp9N/B17PG2NQSIo8mAYVTSg7NAngduxk8n0YvxnOBj5F61qEBCeEH4l d5HMNJOBcaVRW3I6pt+XszRXRFoyH0i916Jfa5ZKPGARQnIXgctY7VFlBBvb5Cqp3SipAtDPf mbmqTP7h7CuslLjQWpnXqtuS57IYENOEOj6pKg== Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org When CONFIG_PM is disabled, this is needed to avoid a harmless unused-function warning: drivers/i2c/busses/i2c-nvidia-gpu.c:345:12: error: 'gpu_i2c_resume' defined but not used [-Werror=unused-function] Fixes: c71bcdcb42a7 ("i2c: add i2c bus driver for NVIDIA GPU") Signed-off-by: Arnd Bergmann --- drivers/i2c/busses/i2c-nvidia-gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 Reviewed-by: Andy Shevchenko diff --git a/drivers/i2c/busses/i2c-nvidia-gpu.c b/drivers/i2c/busses/i2c-nvidia-gpu.c index e99c3bb58351..4e67d5ed480e 100644 --- a/drivers/i2c/busses/i2c-nvidia-gpu.c +++ b/drivers/i2c/busses/i2c-nvidia-gpu.c @@ -342,7 +342,7 @@ static void gpu_i2c_remove(struct pci_dev *pdev) pci_free_irq_vectors(pdev); } -static int gpu_i2c_resume(struct device *dev) +static __maybe_unused int gpu_i2c_resume(struct device *dev) { struct gpu_i2c_dev *i2cd = dev_get_drvdata(dev);