Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2727669imb; Mon, 4 Mar 2019 12:31:59 -0800 (PST) X-Google-Smtp-Source: AHgI3IbrPArqb2ndK44diPeRGxIJ4fVnTIBASZHVrZo8CbvB6ixo1IH5szfBqHzq1PDkeY2ubfvh X-Received: by 2002:a62:bd09:: with SMTP id a9mr21423370pff.61.1551731518982; Mon, 04 Mar 2019 12:31:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551731518; cv=none; d=google.com; s=arc-20160816; b=SH4Dz5EKA5M9vggQXUGIw4Tt5rs9tRd3OVYkg/yXFEi7GPRUEykwDaQ9MPs1xlnlDM +0heoLGy+/Gfkukz6xRoRkHTPBYS9GMLyjAkNzu+pMYahfcOl+3rXyhP/xCGn0PRkCtb KK1jBGciRWi8t65Z4tsKmd1cLMmdXRLYJrLsm/A9ibnRoDmbfQ8HcCm7i6RhsZUfsoaX +uo8aVNfhexdt3e/MabSrHvdHoA7NwE+Ogh9MMhf5UxxGcZAvx8HgvHEvhPZx17uPa1U ljozXEoDWZOyIxNueAa/0SbZ1oc5RZl+sNFVwEG8TeXrP0kgmQLxIrzvqQ1jUThaFzal znaw== 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=ufLCzqjoNB3IIggv6uYfDqhbGbgqnMixrM00vOpq3sg=; b=Q0rs/eL66ZHdpQK7cROhZIs4gkQ71m0HxAe+/by2tvbl17Fr4MpzoLFaVqRz0W95dW BjeNYCX4rWE+8DPF6+H0rNsMJsHUqxmlP4709sdbCJ4D0rmtujMpl36PxPOoPXvuzYDz 4gpJ9vyKi9a2xNafr6OwkJV3I3RCXRyhkVe5Q5k0FoipR8kOPsXx1dxdw6Wcn7D2MZnh 5wN27FKoPMgpLg1D1iw8UVrqSCy7wm2I0rDgke0ZKJ5fbNaVnzY4DxPeerQDOCW+s3AP rUtYCGQSH4eWXJcrQXslHR8aFhZBAlrdm/KzQ5k/IGuuKMW5jRFizSzOP9Fd79+K0L+o vt6g== 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 h3si6022275pgn.68.2019.03.04.12.31.43; Mon, 04 Mar 2019 12:31:58 -0800 (PST) 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 S1726590AbfCDU3e (ORCPT + 99 others); Mon, 4 Mar 2019 15:29:34 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:33047 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726054AbfCDU3e (ORCPT ); Mon, 4 Mar 2019 15:29:34 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1MfL5v-1hTeGI1x75-00gsto; Mon, 04 Mar 2019 21:29:21 +0100 From: Arnd Bergmann To: Sakari Ailus , Mauro Carvalho Chehab , Greg Kroah-Hartman Cc: Arnd Bergmann , Yong Zhi , Tomasz Figa , Tian Shu Qiu , Bingbu Cao , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: staging/intel-ipu3: mark PM function as __maybe_unused Date: Mon, 4 Mar 2019 21:29:10 +0100 Message-Id: <20190304202920.1845797-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:Oduro/Z8h4f5zL2ki3+FwzaOFf6y8ct9rHJB4s1ikIYed/yz0Sx KyNx1kehdv+RMNHC2Chnl7puMV5q0Z325d9kP+itNV5O7uUYh/px+s6UBM1YpQL83cTNAbN MbcOM+uVYMwkgKveOfkeJ/CwBUY/rRM4BeXqVR3cEQGgCD6ZIW6UNcINFcUnVMnzme/LU0E WO3VPEO9iT4cv7ksFDNIg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:it6ue09fJrc=:xsYpVCAeJEPrGT9Ih0EeyT KGREskLgibWH0MrImXPTPEb8ayfoMN/Ekj5+mk54XxFXJoZUeseub/g3bMNjazi3Q407JqrSM RHfSlRCZby9Xni073jL4vWCQvMbbb51kso6Tp5VUfv3sjUlcc6UDQ2n6avNmzAvYA75eNoqnB Gq9hic5EpjPk7yMwH5GBYAhfvXsqWMcHCVQAT4xBTIZYnOULgyfThX66ETOyN39ZBnuFuTsdt h65vR+DD+DEXjMOy7P3XrGp7CVoQGtOWUoa9ezym+xZzebjstHkPpe7xxyVjO9WBckunq6w6B AQY3dzFRc8mN0KLhO+XAeMxvzIVyLluGXyODgmFqxWFLgPDMpvQljtD1caERTKkWlwE6vREMJ 5eZAfxeWeInEfbIfcS1Od/U00BZTTBHsUqUe8Z4R+KpHFMcn3tlKjpQYTXbzCbaKeUgiLIro7 +SXTTHtzYCHNblZhwUtt9Yuri23kSMiBoB5bGuutlKeES/gfhj0yKIb8wfEwpsPUv2Q6tmGmk ZZ6d9hgkqD5BNq/QZwbuOOQtW2AQTcRbeM6xsthkLm4U3BMB3XEzRAqYs5ZA2hZRmKBG41D/s UQwN1K0C/qplcRVeRrFZ7x7vR2oFdNaMdq3T2MwkENOLANwfL5tS0vtFX+pjHH9sILz/vPYT5 bUInKgmC1dA2r5mTIWZYM68JYPLoR12Zql6v40NQ0+mAsW5ppiOz3r6yWudQg5s4mNhxC89bc If3oaMpdEzL75UNQO76T1L6W63qP5OJHWvaDfA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The imgu_rpm_dummy_cb() looks like an API misuse that is explained in the comment above it. Aside from that, it also causes a warning when power management support is disabled: drivers/staging/media/ipu3/ipu3.c:794:12: error: 'imgu_rpm_dummy_cb' defined but not used [-Werror=unused-function] The warning is at least easy to fix by marking the function as __maybe_unused. Fixes: 7fc7af649ca7 ("media: staging/intel-ipu3: Add imgu top level pci device driver") Signed-off-by: Arnd Bergmann --- drivers/staging/media/ipu3/ipu3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/ipu3/ipu3.c b/drivers/staging/media/ipu3/ipu3.c index d575ac78c8f0..d00d26264c37 100644 --- a/drivers/staging/media/ipu3/ipu3.c +++ b/drivers/staging/media/ipu3/ipu3.c @@ -791,7 +791,7 @@ static int __maybe_unused imgu_resume(struct device *dev) * PCI rpm framework checks the existence of driver rpm callbacks. * Place a dummy callback here to avoid rpm going into error state. */ -static int imgu_rpm_dummy_cb(struct device *dev) +static __maybe_unused int imgu_rpm_dummy_cb(struct device *dev) { return 0; } -- 2.20.0