From patchwork Thu Oct 13 14:39:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9375053 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 616FE60839 for ; Thu, 13 Oct 2016 14:41:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5229E2857E for ; Thu, 13 Oct 2016 14:41:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4664229FE1; Thu, 13 Oct 2016 14:41:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1C272857E for ; Thu, 13 Oct 2016 14:41:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754381AbcJMOkg (ORCPT ); Thu, 13 Oct 2016 10:40:36 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:63327 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751598AbcJMOk3 (ORCPT ); Thu, 13 Oct 2016 10:40:29 -0400 Received: from wuerfel.lan. ([78.43.20.153]) by mrelayeu.kundenserver.de (mreue002) with ESMTPA (Nemesis) id 0LbUhX-1b9Z2M2jX9-00lFNs; Thu, 13 Oct 2016 16:39:41 +0200 From: Arnd Bergmann To: Mauro Carvalho Chehab Cc: Marek Szyprowski , Sylwester Nawrocki , Arnd Bergmann , Greg Kroah-Hartman , Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [media] s5p-cec: mark PM functions as __maybe_unused again Date: Thu, 13 Oct 2016 16:39:04 +0200 Message-Id: <20161013143939.3977105-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 MIME-Version: 1.0 X-Provags-ID: V03:K0:CovZHYe02rk9dsKRlOAgDJM/T7P3LxvZE3b2wNWYGb0w6sLNx7D vmj/fQ89op3+OrlG0I+Q4lDS/txaoGG/QLAF1KVXueWGapcmXYBOr/9xh9LrK2J+RlnYAdA Vx3fNQGUX7u5xsXWZP/XhK1Oc8J5IQo0iNwRPB/YuFhV08Ckz158pdTqDD8vgJ9yKXUwmyX NpYxENfmGYVPeN2bah8AQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:adqR40ATKyw=:28Br+Uk4Hsu9p0QafrtcXB eRUECH6H9WM4NhYbnxL/0DyPCdW32A/LmsuBksQszjNmoW531GVtphn/Gwk675GUasZw1S8NO 2s1B3IWjm8XMMFf6UhcRHqT4Qa6J+yUK3k2VRaxjKuVYt0mgOcsEHUmigN6B8Yjup+uC1p/BK jzZgKnFSa7lethG5dIN+Dh4EYZKbnzQXw/CsnXaOwTI7pghjnW2P4NTIHU4rtwhb/qZ+dZ/gw Fg0VC5S3SZ7Cl7lRUbdoE6K8tZXrdDU9Py9I4WT3DGPrfT+kLvG4rifKMbBUODVhPzsNN9MKp GV1+9xntRXusHvNtJYIHif0oua8WQVqOOcZ93ZcxvvllitqoAUjxAwhf1vF9qd5n2Gj2ACF8M ZGUFQxC6oWuOU0fxNMd9VZk/9u1ljKYggOnogtSs5Q+QIx/88JJLjsIqBhriywyaYh9yDoAFY 0QvtxCHUZGnahZ2aQyKiHQADCix7FvLkaqrfboUmywQsEY+jyjLx4020CYrgL/ddZ2taiMOSC H74QTSgIfyTyf5idNEcICAILjAT7AU8RDE04ZX6RaiYK1y/lcaSkqsBt9SwJE0QYI11QVuQqg DuEP+Zzdg5ZMXDsrhoqV31VGJFVsOM9ys79djmhsn32JwBfP78Q+HOuJTZy9QAVT/Jl6ZAqPm csqUIzae9L6G2ivFRYIljbY++xM+WxqaI3JakCDr2PPyHP3hzNwxgd3kXdHiqDr/6ni7FW3rU 25FDQj2UfWUIrVOW Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A bugfix removed the two callers of s5p_cec_runtime_suspend and s5p_cec_runtime_resume, leading to the return of a harmless warning that I had previously fixed in commit aee8937089b1 ("[media] s5p_cec: mark suspend/resume as __maybe_unused"): staging/media/s5p-cec/s5p_cec.c:234:12: error: ‘s5p_cec_runtime_suspend’ defined but not used [-Werror=unused-function] staging/media/s5p-cec/s5p_cec.c:242:12: error: ‘s5p_cec_runtime_resume’ defined but not used [-Werror=unused-function] This adds the __maybe_unused annotations to the function that were not removed and that are now unused when CONFIG_PM is disabled. Fixes: 57b978ada073 ("[media] s5p-cec: fix system and runtime PM integration") Signed-off-by: Arnd Bergmann --- drivers/staging/media/s5p-cec/s5p_cec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/s5p-cec/s5p_cec.c b/drivers/staging/media/s5p-cec/s5p_cec.c index 1780a08b73c9..58d756231136 100644 --- a/drivers/staging/media/s5p-cec/s5p_cec.c +++ b/drivers/staging/media/s5p-cec/s5p_cec.c @@ -231,7 +231,7 @@ static int s5p_cec_remove(struct platform_device *pdev) return 0; } -static int s5p_cec_runtime_suspend(struct device *dev) +static int __maybe_unused s5p_cec_runtime_suspend(struct device *dev) { struct s5p_cec_dev *cec = dev_get_drvdata(dev); @@ -239,7 +239,7 @@ static int s5p_cec_runtime_suspend(struct device *dev) return 0; } -static int s5p_cec_runtime_resume(struct device *dev) +static int __maybe_unused s5p_cec_runtime_resume(struct device *dev) { struct s5p_cec_dev *cec = dev_get_drvdata(dev); int ret;