From patchwork Fri Oct 13 09:25:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 115719 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp509854qgn; Fri, 13 Oct 2017 02:26:02 -0700 (PDT) X-Google-Smtp-Source: AOwi7QD78ekXIYzIVcRPnzFPzjY+l0Nr7ycp/P8MfSE5VjEwjy8yBsBA619kPZgvf+vfQIHhSyYD X-Received: by 10.84.193.3 with SMTP id e3mr844260pld.300.1507886762173; Fri, 13 Oct 2017 02:26:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507886762; cv=none; d=google.com; s=arc-20160816; b=RJTC0+2iKT2u66l6vrY9uClPNq7BDsTOoMOUpbtYxGM2yQ0hjh3wXXsaORwnc2FHj/ uaYdRExONZtzOrwDePWE+OgWX4N+ZT6VCb+79Jg12n0rVcJvVhlHgJpH37BLVDMop0aO OlqfUJ+3/1m63rxJHb3JtQhBOYhkqM/COgu6e+VY8XCv3w+zqMfAEPBfxWkugjy4eS/L q3qm651k1pHRoiI19fsopSX7w6BrmIiOVetAlGntUCYZB79lV6uLEwcw3jQeVzAulGzL LccCT2ZLMPX6Qfb2AEazd/iTPtQflaWaW0pkO0gFav0uZgVSKBf8DFICX9V2CXHmXFd1 ki6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=GpAFcRPTQck152ah8O5cJWd5u+bA+sYk8rjDBw803rI=; b=eLiGEiNoYNoR1trUiyx4BTpwExfgCpHui3S1lJ3EipaPXQKZuhAY5KhxoD2WCFB7lK gvRA0Gaf9aXj3cQPjeJ+IP3//FTQSC/ctbxavnxEGn4snvH5Y4J+1mFMPOKgnSwMCezU 5h2ErfMhcVFaaacEeo6D13eKIRzzV236rOFsFjnY3PmvLgKIoz7rxCYzpFuHyShA2Nte gK4qxyti1Q/vg3j24AcE+6J0oOKwHM2enuvRLuZgAqs1bdQ9k3KvQoZLylaBU97e5quz oHny/pO9Hp13U0AdLsK3TjYUbfaComSXI+IHs1SR4gF5IbvSNC7Db5+1igtsZx9OZdjU b/eg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a92si378265pla.462.2017.10.13.02.26.01; Fri, 13 Oct 2017 02:26:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756760AbdJMJZ7 (ORCPT + 27 others); Fri, 13 Oct 2017 05:25:59 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:51988 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751611AbdJMJZ6 (ORCPT ); Fri, 13 Oct 2017 05:25:58 -0400 Received: from wuerfel.lan ([46.223.139.202]) by mrelayeu.kundenserver.de (mreue006 [212.227.15.129]) with ESMTPA (Nemesis) id 0MVFaD-1dkdkv1piH-00YTmS; Fri, 13 Oct 2017 11:25:56 +0200 From: Arnd Bergmann To: Tony Lindgren Cc: Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH] bus: ti-sysc: mark PM functions as __maybe_unused Date: Fri, 13 Oct 2017 11:25:32 +0200 Message-Id: <20171013092554.531186-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:71/vGjKNIwHp7VcgYT2JnNvsNDLnVmavW9cRpOostjP0FkwyCKp O7ANnFJCww3Pqa0YyXrNDQtuDbLohdoq5YJG86LzqeNyCN0X9oawkZw9AvLjgpHba58jbxJ +TuUJdLDHRlwclSK2NIDWCQnhwdRgcDqI4FAzrjAvwd16c11QcdfIdhOkDJJomHPYhMT+JS qZqjT9TGA8KBbImYRSzkA== X-UI-Out-Filterresults: notjunk:1; V01:K0:IBrDM/IoJJ8=:INgzAvzNPBmzpUJL6/bbWj ayfm2ry2jqY1cFZqCwzXd8aKPsLNXE2JxqUBAwCwZJB5PbirBhKVrPAwKIOUMksVWDvlZMp+I T9DSwuF7saeNbSIKMF7gRkdc0Ru/LS/lKZqndtxw+BgIYeUkg3BLpotnwz8WWI7J1+a43gXOC hpXgWDF6ZzALSSr34hgS7CoO2i4jQxy7BH8TBRSNSaP1QR1TEaxDWc+RQGapfsXeT1qXIZvcY vBPPCzbYPkfgO1vrjPdIxu+ImkO0tK0pIMqMrCryQzXGoX8iu8UbJFcgDP3lINhs9MO9p1oY5 D5N+RhvRcp89zGh35IkyGjI1nWgDsRQLL/8v0MDpNLl/tFlb2NBkiqkv+sJ98U9F11AGRX5J7 ikG1ImAhg1gzlzYAP7sTta3uLqdy8g8D+dFnmZv1cp6sovVbbomFxFm3Km/blEk85gTYwO+xX D88L65QDeFlz0jettKJpUGRB3nHG/tFUZYpP8zZ9nwf3LgEtdKbDrQf80eitfNNPslDsF1o1c VK96o7v1W7MU4RAJ6U1VeX8GwUL8p/yjfNB6qHKQ/LUz56QndHwu46uyxb2ch2aptD03tZN7O t331ZCro4ncMp61sz1YpAz+g4/6SEk4DO84xZyWkUhYXPMwn/1hdsoE6hUVf7lUVyep8yMeLL AninweyqdnI2n4DxCdPXdndEhJpJ+NJFx7Y41xUtNF8ujYL/RZgZmfhY0kx0WROLHpMhYfmFr 3Pnn/FEQnNxG+3/E6OYVgAyADndVH7RFEu01+Q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The new bus driver causes a harmless compile-time warning when CONFIG_PM is disabled: drivers/bus/ti-sysc.c:440:12: error: 'sysc_runtime_resume' defined but not used [-Werror=unused-function] static int sysc_runtime_resume(struct device *dev) ^~~~~~~~~~~~~~~~~~~ drivers/bus/ti-sysc.c:421:12: error: 'sysc_runtime_suspend' defined but not used [-Werror=unused-function] static int sysc_runtime_suspend(struct device *dev) ^~~~~~~~~~~~~~~~~~~~ This marks the two unused functions as __maybe_unused to shut up that warning. Fixes: 0eecc636e5a2 ("bus: ti-sysc: Add minimal TI sysc interconnect target driver") Signed-off-by: Arnd Bergmann --- drivers/bus/ti-sysc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c index 9b3cb278ce41..8b95d0f0c319 100644 --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -418,7 +418,7 @@ static void sysc_show_registers(struct sysc *ddata) buf); } -static int sysc_runtime_suspend(struct device *dev) +static int __maybe_unused sysc_runtime_suspend(struct device *dev) { struct sysc *ddata; int i; @@ -437,7 +437,7 @@ static int sysc_runtime_suspend(struct device *dev) return 0; } -static int sysc_runtime_resume(struct device *dev) +static int __maybe_unused sysc_runtime_resume(struct device *dev) { struct sysc *ddata; int i, error;