Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2849367imb; Mon, 4 Mar 2019 16:11:28 -0800 (PST) X-Google-Smtp-Source: APXvYqxy3ay72gB2O0ze+cChot3Qs2RwP+7yM4OzRG1xQ7Y+0u4F8bqBScjxzOd09h5OHYJ9XbJ/ X-Received: by 2002:a17:902:31a4:: with SMTP id x33mr22647674plb.198.1551744688626; Mon, 04 Mar 2019 16:11:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551744688; cv=none; d=google.com; s=arc-20160816; b=vEpmHyLRbqJ2RpMW2gxtNxrPU6Y+IjqpgAeixtC2CGXKlZLDdsM2tLEhQns1XPpU2T jLW4BAyL8ro9AJO4oFnwBzqsyozl+0BvV43kqHfnzR59tKWL0MsDElzqZoVdOmvA1GAN 2MT0QPS+MXMysz7PxScjRddd5BwVJH8BN3bg8BILQcE6qmOrQFn9m2HO9C2IrI348rRi LR+q1J5XxfYkvz5GC7pQn/t9gIrvpz2tkQAAQkM0sNS+yQ+xIWRA23rP0pbM7vMEi/SH EirlIKbZ/xl13Zes3lVmlRf4+fLkuPFEiajFcanSWtBrJonwR86duhYu/gNKmEy+r5Rv GyIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=8FcKHi+gragA8tlR39rGIUKXAdafVZnlh4QFjyCGcQA=; b=q+yLrKr1DSfo8+qd5f96qp46TYInLHUJlb7gfmxHCq+84/oELpQjOxrPySybexzFJd WL9yhtU3MBzWpG2fg+NodAy/lTTBpoqSo2c/0VdqlU2DpKlGK8lVI6XvFMZ2ZnGdzHvN eLCwO2/M686OkKwE1ysGJ+iW0WqS66jSiaM+nx0l7Q0nkLYk+bwLyoDuaxVrFbzAHTTW Qib7aPkHHfa8zAHsKH7uaFSYzaysLhdTp5/G/kWDWT/zRIBXqFc05+QKAvFxRnu+C929 wVyNZXppDwUtMp6CgBCKyfnWF1KADGfx0H7KO0nhcbDP1h8BQmv6AqoAzihfK1F4+7ew F4Qw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5si7232347plb.426.2019.03.04.16.11.13; Mon, 04 Mar 2019 16:11:28 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726853AbfCEAJg convert rfc822-to-8bit (ORCPT + 99 others); Mon, 4 Mar 2019 19:09:36 -0500 Received: from mga03.intel.com ([134.134.136.65]:14865 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726683AbfCEAJg (ORCPT ); Mon, 4 Mar 2019 19:09:36 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Mar 2019 16:09:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,441,1544515200"; d="scan'208";a="279738418" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga004.jf.intel.com with ESMTP; 04 Mar 2019 16:09:33 -0800 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 4 Mar 2019 16:09:32 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 4 Mar 2019 16:09:32 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.74]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.26]) with mapi id 14.03.0415.000; Tue, 5 Mar 2019 08:09:30 +0800 From: "Cao, Bingbu" To: Arnd Bergmann , Sakari Ailus , Mauro Carvalho Chehab , Greg Kroah-Hartman CC: "Zhi, Yong" , Tomasz Figa , "Qiu, Tian Shu" , "linux-media@vger.kernel.org" , "devel@driverdev.osuosl.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] media: staging/intel-ipu3: mark PM function as __maybe_unused Thread-Topic: [PATCH] media: staging/intel-ipu3: mark PM function as __maybe_unused Thread-Index: AQHU0skBhQ6EBfjbEE2shBfE7uTelaX8KELA Date: Tue, 5 Mar 2019 00:09:30 +0000 Message-ID: References: <20190304202920.1845797-1-arnd@arndb.de> In-Reply-To: <20190304202920.1845797-1-arnd@arndb.de> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWExOWY4ODEtZjk0MS00M2JhLTk0MWEtZWRjYzQ5MGI4NDk1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoibVZmbFE0S2NGajlkQjVLVXJqWlZhZStBY0Z6ZGlyVGJvZnE4eTA0bVkwMmRPMGhUZWRVejhzQjN6dDhUaUJvWCJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Bergmann, Thanks for your patch. Reviewed-by: Cao, Bingbu __________________________ BRs, Cao, Bingbu > -----Original Message----- > From: Arnd Bergmann [mailto:arnd@arndb.de] > Sent: Tuesday, March 5, 2019 4:29 AM > To: Sakari Ailus ; Mauro Carvalho Chehab > ; Greg Kroah-Hartman > Cc: Arnd Bergmann ; Zhi, Yong ; > Tomasz Figa ; Qiu, Tian Shu > ; Cao, Bingbu ; 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 > > 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