Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp614332ybl; Wed, 8 Jan 2020 03:01:51 -0800 (PST) X-Google-Smtp-Source: APXvYqx7XMnJGuOaOcaPm06Ml8aDyXqV4bErZ5mIosslzket2AgK/Q4Qe+GENEnYHdIZXUs0Vhks X-Received: by 2002:a05:6830:4a7:: with SMTP id l7mr3509364otd.372.1578481310936; Wed, 08 Jan 2020 03:01:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578481310; cv=pass; d=google.com; s=arc-20160816; b=0MnPqTSr5ojsJgsfTUlC3H/fHmlM8vUn5Jk/23ecw6NHpp7RZk85RZ4zuvkAi0/RGD EqUD6S/ZHALhFb2/Hl2PUCWz00kNZkzQ1Yfb4XiDs+OKsWkxViuHTTMkg7lBAvPhg3TE 8a3Gb5KOE+b6bcYDjIoQseoUum15dsZpw+XfNI08ZuNeP1GNNrcHLI70Aq45Db/glTdg E9ZqP+ZB7tSinI364uU3dd6YPq4LtNXmI8NVCQTjWRBh90PKVGaYobKMCyKVd08vl575 AGQHNskrOCnLvregEoFoqxE6yp2vG7wGGbwGOSy/SbMBxa8trull/C/QROP5vCOtw+3a 8EwA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:original-authentication-results :mime-version:content-transfer-encoding:content-id:nodisclaimer :authentication-results-original:user-agent:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:dkim-signature; bh=P+w71O1B8I/FLxgtZh0WW0nnu8m6HWiI043KF8ePzeM=; b=Xtue2nTYt6zzfnLCc2EbH4YzHE8wU1GrO6rPbZ44wZ1AEjNE3QAO/8mnip7cXMhnjF Kwp4RT9mx9q5xwRtcnAfUeUSH1vLkRh8814zpcSovvxu4pz0Zr75m2zIMvSOOISTGsYv 0lFzVrmqnxpaXjKxjqrm/iMLV7n66KiO/1IYIDg6ebfWeecZZWGccXdb5FPmxSQ6OyiE OGEwjFznB37kc60m9VzenflftqIEisVy/BI84fOcCHbd/7wqS9AEYnIk7DwR1rhkknVW 2wjTP4lqc0H+C0/vMTEpUJJdOAy0oC3Kvb+HZbEGq+1/tO3hAroVXtW/Ipka8kp4+ktU USzA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=UuAjNeiP; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=UuAjNeiP; arc=pass (i=1 spf=pass spfdomain=arm.com dkim=pass dkdomain=arm.com dmarc=pass fromdomain=arm.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 v67si1741325oia.26.2020.01.08.03.01.37; Wed, 08 Jan 2020 03:01:50 -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; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=UuAjNeiP; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=UuAjNeiP; arc=pass (i=1 spf=pass spfdomain=arm.com dkim=pass dkdomain=arm.com dmarc=pass fromdomain=arm.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 S1727380AbgAHJ4d (ORCPT + 99 others); Wed, 8 Jan 2020 04:56:33 -0500 Received: from mail-eopbgr20084.outbound.protection.outlook.com ([40.107.2.84]:61510 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726368AbgAHJ4c (ORCPT ); Wed, 8 Jan 2020 04:56:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=P+w71O1B8I/FLxgtZh0WW0nnu8m6HWiI043KF8ePzeM=; b=UuAjNeiP++fnDhdYh9EspoOZyxeqR7eCcb9YW126YFIGJxRbhgcE1pDJ4GUKKSH3MYUmPpWh7a1Gj54TQD3Me5k55eLLelWt+6lvbx1u+z+kb0RGt6TefGXqMpaTiRQqWr/U3WjJqj5xzv3bc/68a3WvokZdoyFEaKYkrmFuhCg= Received: from HE1PR08CA0069.eurprd08.prod.outlook.com (2603:10a6:7:2a::40) by VI1PR0801MB1904.eurprd08.prod.outlook.com (2603:10a6:800:81::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.12; Wed, 8 Jan 2020 09:56:26 +0000 Received: from VE1EUR03FT048.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::207) by HE1PR08CA0069.outlook.office365.com (2603:10a6:7:2a::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.8 via Frontend Transport; Wed, 8 Jan 2020 09:56:26 +0000 Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; vger.kernel.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;vger.kernel.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT048.mail.protection.outlook.com (10.152.19.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Wed, 8 Jan 2020 09:56:25 +0000 Received: ("Tessian outbound ba41a0333779:v40"); Wed, 08 Jan 2020 09:56:25 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 0f1338ad4cc7e510 X-CR-MTA-TID: 64aa7808 Received: from 5817b7abe1fc.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 58417BD4-60EF-4857-9F2B-D2060D145412.1; Wed, 08 Jan 2020 09:56:19 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 5817b7abe1fc.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 08 Jan 2020 09:56:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WYLkg5Sxok6EmdjKMrAAWJN10ddHhmAJNDug2BRD4jHmOXg5d0Z/IuoxHUptUjyP27+jK7v0Vnx+zAM1XcIVqGkaoHRaWpwbt2VDnSGZqV3V5KmpjVH2yDsiz0SITHVGY047VYmizeyskEbcYDRyvTSj/zR9FCVPozFj97Ck0t/h+j95FFCqQvzu12ldFD7KP6vQWvATMlZL4lig5USOCXOsk/uSWQt2UvCbt2DzVljP4PaaM2WV/2xNcpiou5ZZISzb3ZBZpbJ7Mc2VRQWEMswZyEoi54zod7NEJdWyoo0FFrJwp8ZS8oQn6H/5Gx4LMEKSGt8K3PtftCJo+mXv3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=P+w71O1B8I/FLxgtZh0WW0nnu8m6HWiI043KF8ePzeM=; b=jUgWw4X2nljniLEx/621j4gWD3SWV4U6YB4aagxKi8RUIhIr/wgjoiMaYIULb2cKQONYeGKk/gmLoghXtqTyJ0gHrYqAsJ5JoHyWQTOWWPvKAnhKEJJTllWfFcOB2OwnspTGPc56t/D8WVLNxt0jN81D/6X8uiFOZ9lNysYhrATboiEWH4ktgCXzhCEztTet04rf/5f8zHnSMwRrDTJXm+m6IDm1yWbRedehdJNHnJ7KicAOGhemEUtLyfWbexkk7VWABgqQB3u3AB7C3Zsl6BN/oyi8P8iQb+9JBSGuSoU653bP0+7MGz0o+lmXWNk1Ll/aF5MKbv7/6NpcCMhf2g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=P+w71O1B8I/FLxgtZh0WW0nnu8m6HWiI043KF8ePzeM=; b=UuAjNeiP++fnDhdYh9EspoOZyxeqR7eCcb9YW126YFIGJxRbhgcE1pDJ4GUKKSH3MYUmPpWh7a1Gj54TQD3Me5k55eLLelWt+6lvbx1u+z+kb0RGt6TefGXqMpaTiRQqWr/U3WjJqj5xzv3bc/68a3WvokZdoyFEaKYkrmFuhCg= Received: from VE1PR08MB5006.eurprd08.prod.outlook.com (10.255.159.31) by VE1PR08MB4638.eurprd08.prod.outlook.com (10.255.27.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.12; Wed, 8 Jan 2020 09:56:17 +0000 Received: from VE1PR08MB5006.eurprd08.prod.outlook.com ([fe80::5865:5862:26bf:84f0]) by VE1PR08MB5006.eurprd08.prod.outlook.com ([fe80::5865:5862:26bf:84f0%7]) with mapi id 15.20.2623.008; Wed, 8 Jan 2020 09:56:17 +0000 Received: from localhost (113.29.88.7) by SN4PR0401CA0035.namprd04.prod.outlook.com (2603:10b6:803:2a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.9 via Frontend Transport; Wed, 8 Jan 2020 09:56:16 +0000 From: james qian wang To: Arnd Bergmann CC: Liviu Dudau , Mihail Atanassov , Brian Starkey , David Airlie , Daniel Vetter , Nathan Chancellor , Lowry Li , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , nd Subject: Re: [PATCH] drm/komeda: mark PM functions as __maybe_unused Thread-Topic: [PATCH] drm/komeda: mark PM functions as __maybe_unused Thread-Index: AQHVxaTpM196drNzoU+K8km25bMwD6fgiGmA Date: Wed, 8 Jan 2020 09:56:17 +0000 Message-ID: <20200108095609.GA23558@jamwan02-TSP300> References: <20200107215327.1579195-1-arnd@arndb.de> In-Reply-To: <20200107215327.1579195-1-arnd@arndb.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mutt/1.10.1 (2018-07-13) x-originating-ip: [113.29.88.7] x-clientproxiedby: SN4PR0401CA0035.namprd04.prod.outlook.com (2603:10b6:803:2a::21) To VE1PR08MB5006.eurprd08.prod.outlook.com (2603:10a6:803:113::31) Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=james.qian.wang@arm.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 4bc5c1d5-7d02-434e-043f-08d79421067d X-MS-TrafficTypeDiagnostic: VE1PR08MB4638:|VE1PR08MB4638:|VI1PR0801MB1904: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: True x-ms-oob-tlc-oobclassifiers: OLM:8273;OLM:8273; x-forefront-prvs: 02760F0D1C X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009020)(4636009)(7916004)(366004)(376002)(136003)(39860400002)(396003)(346002)(189003)(199004)(8936002)(9686003)(478600001)(5660300002)(956004)(6916009)(64756008)(6486002)(81166006)(2906002)(81156014)(8676002)(86362001)(4326008)(6496006)(52116002)(66446008)(55236004)(186003)(16526019)(1076003)(66946007)(66476007)(71200400001)(26005)(33716001)(54906003)(66556008)(33656002)(316002);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR08MB4638;H:VE1PR08MB5006.eurprd08.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: o7UR8rvTMYKozy4v4+ufH7yQJ9j29c9WkVxXtlzuML6KPUH4ML2XSI9kpwnHc6jIa9GGVc0fQSSHFEkkz7Jj792jfhqceykT19LehQeNlbRELbO2qBdJAtUBo8i0HNwTprz5kpLAyyCSUSYZ6ccv5lTaCon42prXpuIMrIs4FnhkO2zpErDHHF1zqApPL+0rDK0blr65XemtDOb2HXQNlqhU3UC4+04I0U54sJfrN4JI8jGzdM6OEAymJPaep2BbQk0tFmHCiasKBMvIGfIiM1F0ynvpE6bZ6mrBMg18VIDR8p7yVmmBvnGZisNDH6y/HX3pn18Mq65iBnOi+pSE+VkXZBGEd3jFLHaAO11wFlUzPIBuBYKihVelLY7BpNsCw4NaKma0Szmt/2nry617hhOQ6mYBhWXcM0aSaEjKbqUDeyyZnvONt0XtEgUjobs7 Content-Type: text/plain; charset="us-ascii" Content-ID: <610660CE5AAB6A4D8861041D6FE3465B@eurprd08.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4638 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=james.qian.wang@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT048.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123;IPV:CAL;SCL:-1;CTRY:IE;EFV:NLI;SFV:NSPM;SFS:(10009020)(7916004)(4636009)(396003)(39860400002)(136003)(346002)(376002)(199004)(189003)(956004)(26826003)(6486002)(336012)(70206006)(186003)(70586007)(5660300002)(33716001)(54906003)(478600001)(33656002)(16526019)(9686003)(8676002)(81156014)(26005)(356004)(86362001)(316002)(4326008)(81166006)(36906005)(2906002)(6862004)(1076003)(8936002)(6496006);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0801MB1904;H:64aa7808-outbound-1.mta.getcheckrecipient.com;FPR:;SPF:Pass;LANG:en;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;A:1;MX:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: 5440e4fa-c649-4d27-972d-08d79421013b X-Forefront-PRVS: 02760F0D1C X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: V0MC5rxMwIU9qYBsQQ5TqdnLQYMSTecuHXgv5/HdyegG17jbhIBu8jIx+8W6nFHTzG3gdsDbgCipc4NuYZ+NNAS4XOoC7AjvDuAOwPsroo6L7aMnkD3/YM0w3k8UT/JAG+05u3o0OMW9bWg+r3VOgirmCaMCqa/R1TwDQUPC7GTrX8IZb+9yAG3lmp3MGOtqC76SijZWeaZP0z2oAjc8v+95CcjxgUTJS5xaAewzTL7DXDqQGuBfBzPp9EeRp14zzGVFNK6Fv/9mmfo8Di/auJlgejyN0Cu6wbkPjpgO4+zIK4qBzhjtNVAVbRt4J11Kqn21YUu9NJFNJQIRQ+US7g2P0yL/GnFR34KtOCjrrqQdm9Al1KyG7dSqTncRiltWkjeqdAUO7ksPWmDm4LnP4uzlQXF2xlp+d243y/pmTK4SHcQZ5luhrC2lmjO0erfL X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2020 09:56:25.8821 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4bc5c1d5-7d02-434e-043f-08d79421067d X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1904 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 07, 2020 at 10:53:19PM +0100, Arnd Bergmann wrote: > Without this, we get a couple of warnings when CONFIG_PM > is disabled: >=20 > drivers/gpu/drm/arm/display/komeda/komeda_drv.c:156:12: error: 'komeda_rt= _pm_resume' defined but not used [-Werror=3Dunused-function] > static int komeda_rt_pm_resume(struct device *dev) > ^~~~~~~~~~~~~~~~~~~ > drivers/gpu/drm/arm/display/komeda/komeda_drv.c:149:12: error: 'komeda_rt= _pm_suspend' defined but not used [-Werror=3Dunused-function] > static int komeda_rt_pm_suspend(struct device *dev) > ^~~~~~~~~~~~~~~~~~~~ >=20 > Fixes: efb465088518 ("drm/komeda: Add runtime_pm support") > Signed-off-by: Arnd Bergmann > --- > drivers/gpu/drm/arm/display/komeda/komeda_drv.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c b/drivers/gp= u/drm/arm/display/komeda/komeda_drv.c > index ea5cd1e17304..e7933930a657 100644 > --- a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c > +++ b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c > @@ -146,14 +146,14 @@ static const struct of_device_id komeda_of_match[] = =3D { > =20 > MODULE_DEVICE_TABLE(of, komeda_of_match); > =20 > -static int komeda_rt_pm_suspend(struct device *dev) > +static int __maybe_unused komeda_rt_pm_suspend(struct device *dev) > { > struct komeda_drv *mdrv =3D dev_get_drvdata(dev); > =20 > return komeda_dev_suspend(mdrv->mdev); > } > =20 > -static int komeda_rt_pm_resume(struct device *dev) > +static int __maybe_unused komeda_rt_pm_resume(struct device *dev) > { > struct komeda_drv *mdrv =3D dev_get_drvdata(dev); > Hi Arnd: Thank you for the patch. Reviewed-by: James Qian Wang (Arm Technology China) James > --=20 > 2.20.0