Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6409784ybf; Thu, 5 Mar 2020 20:16:35 -0800 (PST) X-Google-Smtp-Source: ADFU+vv3LAgb/h9IsRJ9mjvmZY3eiV9whxY6R10qa7hg/+DfO7KatpVNNU6srSm+c6+A+f52OUve X-Received: by 2002:a05:6808:8d0:: with SMTP id k16mr1309951oij.68.1583468195296; Thu, 05 Mar 2020 20:16:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1583468195; cv=pass; d=google.com; s=arc-20160816; b=HB+gNn2eOoYOAT2sNGsq5LAH5RGk+r5VLjgfFZmlGYnS8qY0TG+wzg+pFq2ZuOIQbw 4PlfNkF51zMmOYJxWH2T6M6QkIdoJZlQKnZoDm3Mrh66oa7jwJWhmJbWS3/o8W56PgRb e+69YOzf51y7kMNnvq62SiUKOuji68R28b9iH9VkFwqTPnr4dLcD8KJcZl1pcgbiDitz d+bNiP1DTRO3gnP1/bVMV6yfOjIKHGVLd5XnrK+sHvtG56+ce9qVFckNabdRaUcUyiwK kjLF+q0jqLuG6ta7FvPd3pj6Is0rcotmjpP3q8GsMbj3wGKElKG2JWYZcnP9M6Mg3LXK /CRA== 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 :nodisclaimer:mime-version:user-agent:in-reply-to :content-transfer-encoding:content-disposition:references:message-id :subject:cc:to:from:date:authentication-results-original :dkim-signature:dkim-signature; bh=wdGZK1M043VUAXFwrt7mZbDAURyW59AfhIAZaK830uE=; b=0v21pkDL1NLt/s6vFrRcqQFqjQxokAMgwsQlOuPqZZRBWEy1lPixTgoEcew2Uvbaxq JsFmFU4jxiHk+cYAlXuZuicJ0+Sm4DWIDJkY6VJH/BiFaCzWCRBpG90d75pguLl+RW4b GA0yuxH8Rwa75Fsx3zkbt4O0pQP9sKPHQUeeH70U0wKfFJFkrB2UvnQZidxlOyjL3ywn 5OqBu7u58C78CLy+vBbsudm626IMPAnB/GKXS//qoBy6SKxMBd0kYMWjozRxlUreMS18 jCqr6SiQV0Z5fgJWkrB+fN7XUoJz85/l0FIaCD4keLxn60IWc/sjCos37G07T4FtEKMh y9lA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=p8Wwl+TR; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=p8Wwl+TR; 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 g22si667676otk.6.2020.03.05.20.16.22; Thu, 05 Mar 2020 20:16:35 -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=p8Wwl+TR; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=p8Wwl+TR; 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 S1727067AbgCFEO0 (ORCPT + 99 others); Thu, 5 Mar 2020 23:14:26 -0500 Received: from mail-am6eur05on2081.outbound.protection.outlook.com ([40.107.22.81]:26081 "EHLO EUR05-AM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726650AbgCFEO0 (ORCPT ); Thu, 5 Mar 2020 23:14:26 -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=wdGZK1M043VUAXFwrt7mZbDAURyW59AfhIAZaK830uE=; b=p8Wwl+TRJTvcA16geSlBiPW9bhZL+omovKjcft8+gGQsGafS6wBD01sNFRZVoiAYlMDF5b5Zqmgd7N0Nq7VV71jpZnjxJaJeBaDBOPAq/7QrssE0BDl9b3R0X7WDmiQ4w9o0ntWpcP7tU/g+jzQVBkid0aVN7MQK2opdhUs80QY= Received: from DB8PR03CA0012.eurprd03.prod.outlook.com (2603:10a6:10:be::25) by DB6PR0802MB2214.eurprd08.prod.outlook.com (2603:10a6:4:82::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.14; Fri, 6 Mar 2020 04:14:20 +0000 Received: from DB5EUR03FT034.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:be:cafe::2b) by DB8PR03CA0012.outlook.office365.com (2603:10a6:10:be::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.15 via Frontend Transport; Fri, 6 Mar 2020 04:14:20 +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 DB5EUR03FT034.mail.protection.outlook.com (10.152.20.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.11 via Frontend Transport; Fri, 6 Mar 2020 04:14:20 +0000 Received: ("Tessian outbound d1ceabc7047e:v42"); Fri, 06 Mar 2020 04:14:20 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: c9dde48dfb3e92a2 X-CR-MTA-TID: 64aa7808 Received: from 11d069585b45.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 18866953-21F0-4712-864C-DD612C9DE2D0.1; Fri, 06 Mar 2020 04:14:15 +0000 Received: from EUR03-AM5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 11d069585b45.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 06 Mar 2020 04:14:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Box0GlS9s13Rh/amg1DXMIUpvZmRJKcnWitU1E70QHRkC5scTho7MT4D3+4XeKh8/mYbJAZDCMvnY0wUkeDW+n1RT/TF6Yi0BjRS54ZXo/pDiRTI/EcxyGOwIV5WwSqTr261Fj2zUNBa4nyBR/mwzlvAbWpvVR2PHFYdbPg6D4ayWy6Fs5UQXPfyP3MF7Tu7EPSvq23BVAAo1oncpiWNcWCQns4o1hVYGJ/+pAaKpqr7vtjlUpEmtLqQFrgwssgnxSnsDHC/pbwDl73xl+l/7fLE3gLwStsv6zwAUM+uCbnxouf/mhTTNX/rIwJv/KRsUA7SE2JJlwgv6FxQLeZn2w== 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=wdGZK1M043VUAXFwrt7mZbDAURyW59AfhIAZaK830uE=; b=XMY7MnSWaAyBMA9qdYWuvghnnhqn1614VoIudmIORPN8OlQp36gydM46Xx1cZgpqcYvfYH+XHDYW8q/hNyU22iaWGvaNlfFe4FDbmqtmwqVkG0TAkLiGKPiBnQsPXmR+55ZTggcgYoQr3eq+VYvs1RyIQUdxLsVa3roWdyOvnPfyOrcUANTisKOS18VECrTyVaFn6YpIXNu5wAQRKEidnWKdaTLc613vFehVw+iPV7YQ09JEOSs6s3cDUKhTkpFi5dW7FMfd3Y4sxjhsk6rGQHZGVe4JoxCxMQPUUFgsGx5LYZBr9P/81qCBAhrdQqOgAvH2BzLlCDvjc+5eHTszMQ== 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=wdGZK1M043VUAXFwrt7mZbDAURyW59AfhIAZaK830uE=; b=p8Wwl+TRJTvcA16geSlBiPW9bhZL+omovKjcft8+gGQsGafS6wBD01sNFRZVoiAYlMDF5b5Zqmgd7N0Nq7VV71jpZnjxJaJeBaDBOPAq/7QrssE0BDl9b3R0X7WDmiQ4w9o0ntWpcP7tU/g+jzQVBkid0aVN7MQK2opdhUs80QY= Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=james.qian.wang@arm.com; Received: from VE1PR08MB5006.eurprd08.prod.outlook.com (10.255.159.31) by VE1PR08MB4640.eurprd08.prod.outlook.com (10.255.27.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.19; Fri, 6 Mar 2020 04:14:13 +0000 Received: from VE1PR08MB5006.eurprd08.prod.outlook.com ([fe80::101d:3c1a:50cd:520]) by VE1PR08MB5006.eurprd08.prod.outlook.com ([fe80::101d:3c1a:50cd:520%7]) with mapi id 15.20.2772.019; Fri, 6 Mar 2020 04:14:13 +0000 Date: Fri, 6 Mar 2020 12:14:07 +0800 From: "james qian wang (Arm Technology China)" To: Liviu Dudau Cc: Vincenzo Frascino , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , Mihail Atanassov , Brian Starkey , David Airlie , Daniel Vetter , nd@arm.com Subject: Re: [PATCH] drm: komeda: Make rt_pm_ops dependent on CONFIG_PM Message-ID: <20200306041407.GA27096@jamwan02-TSP300> References: <20200304145412.33936-1-vincenzo.frascino@arm.com> <20200305184255.GH364558@e110455-lin.cambridge.arm.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200305184255.GH364558@e110455-lin.cambridge.arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-ClientProxiedBy: HK0PR03CA0108.apcprd03.prod.outlook.com (2603:1096:203:b0::24) To VE1PR08MB5006.eurprd08.prod.outlook.com (2603:10a6:803:113::31) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost (113.29.88.7) by HK0PR03CA0108.apcprd03.prod.outlook.com (2603:1096:203:b0::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.11 via Frontend Transport; Fri, 6 Mar 2020 04:14:12 +0000 X-Originating-IP: [113.29.88.7] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 252230e0-c79e-451e-790e-08d7c184d869 X-MS-TrafficTypeDiagnostic: VE1PR08MB4640:|VE1PR08MB4640:|DB6PR0802MB2214: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:277;OLM:277; X-Forefront-PRVS: 0334223192 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009020)(4636009)(7916004)(39860400002)(366004)(136003)(376002)(346002)(396003)(199004)(189003)(66946007)(6666004)(316002)(6636002)(6862004)(4326008)(54906003)(8676002)(66476007)(33656002)(478600001)(66556008)(2906002)(1076003)(33716001)(81156014)(186003)(81166006)(86362001)(956004)(9686003)(52116002)(26005)(6496006)(55236004)(16526019)(6486002)(8936002)(966005)(5660300002);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR08MB4640;H:VE1PR08MB5006.eurprd08.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: vlw2USzsPm7IND3S/XzQ+q3M3r5ayrcw4fj/D+VXVSFH0LXn6jQg1k5r+ysM2HNbuWtklaHy6eebjEZ+Hr1sQESi2WnAKHJryHiOH346oP099RTS63Dot3GLcKimNOMQEUtA9YhD07wYQ1d+p5JgZK3OTTZR/ATKQrt87vyXtDkFMAykCAQ9J3YtPqFE7pjhbe8vvjHK/FAKZhvKwwYbGQDN3brBQ5qW/bfZIN174gvL/o7AMZwl6PpBwyTBDOzzklzEDmEH1kzuZINXygyRG6uXPc9PUGfiX+5L3d0+ySRRPpzL1Vnb5q+Knjd/PNdEtWNHTFN3VUGcuddpczsfN4K4Pn0rioKi6gv4FRNFeEG02gQ/8aX7Lc5TO7MRhL0YEomWgHhJ+qvAqkzcaJY5H+T6ANAP34zEc2UxrZUJDPjQftn6MZZFqceYZ9MaDQUGQsd1/pbBPeEVALNPVQfsy2atJug3muIm8Gec0A6sURk= X-MS-Exchange-AntiSpam-MessageData: Ko74YP0/H8prN/c2PEKqDP+SRo0SrqLXVQ9uia0A2TsiKAP8JxT8CHPE2Z1JxBWE1BMXOGuNim/7VWHHTy0FnIyJ2EyRkm1Lv5PHdquVQrcQhgMAUOB/GrIyC3DIomDAr+8cZJ+O/KW/uKXa2USiqg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4640 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=james.qian.wang@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT034.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)(346002)(136003)(376002)(396003)(39860400002)(189003)(199004)(8936002)(26005)(81166006)(33656002)(6862004)(6486002)(956004)(966005)(81156014)(6496006)(33716001)(336012)(8676002)(356004)(316002)(9686003)(4326008)(6666004)(478600001)(16526019)(2906002)(70206006)(5660300002)(26826003)(186003)(54906003)(86362001)(6636002)(1076003)(70586007);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0802MB2214;H:64aa7808-outbound-1.mta.getcheckrecipient.com;FPR:;SPF:Pass;LANG:en;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;MX:1;A:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: e5adc120-25ac-4fdd-b723-08d7c184d405 X-Forefront-PRVS: 0334223192 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yKDXUP4eC4zfNODb/p2QmYSVh9jQLvnDIVQCnzW574SpdMNTVR9yZs4Cw/D8jKx0SYCDOn2npnfPQXs4CCm/VKzzti5SGbYHKS1Fwo3pa6X57oz3XSdhAL4S7IDLlU66i5BmABYErR+qXjgw2xckCYOiVJdTxNWnWb3/OMIXr+IdsbfxJ+hnjB+CrPulsfzXHVOqvqQCjskSyxuY6TwWK24K29u8TftSYXY886Pe7PlL6nvxEC613ukO8MHGYrTRk3/lACYEpB63ez0LZOumeG103R3Fjangt7Cz+cMedgI39UerjfLpdmnnfnKYvWFdRi4bpGHK+KYHV+KVBtD9WKyMM66MLzPSaYlVa4NiINhHxgLxLNmG9r2GVxYSOl2k9pHupEZIIUBQsmUN+pcboiMVrzgPVbLcs8LnG8gWgSn4eUprM3VbAuQo9Z3qgAh189pGq2G3mfCHzsgChAl7p4H6O+fbGCAYNk/ccDCNizU= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2020 04:14:20.6689 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 252230e0-c79e-451e-790e-08d7c184d869 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: DB6PR0802MB2214 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 06, 2020 at 02:42:55AM +0800, Liviu Dudau wrote: > On Wed, Mar 04, 2020 at 02:54:12PM +0000, Vincenzo Frascino wrote: > > komeda_rt_pm_suspend() and komeda_rt_pm_resume() are compiled only when > > CONFIG_PM is enabled. Having it disabled triggers the following warning > > at compile time: > > > > linux/drivers/gpu/drm/arm/display/komeda/komeda_drv.c:156:12: > > warning: ‘komeda_rt_pm_resume’ defined but not used [-Wunused-function] > > static int komeda_rt_pm_resume(struct device *dev) > > ^~~~~~~~~~~~~~~~~~~ > > linux/drivers/gpu/drm/arm/display/komeda/komeda_drv.c:149:12: > > warning: ‘komeda_rt_pm_suspend’ defined but not used [-Wunused-function] > > static int komeda_rt_pm_suspend(struct device *dev) > > > > Make komeda_rt_pm_suspend() and komeda_rt_pm_resume() dependent on > > CONFIG_PM to address the issue. > > > > Cc: "James (Qian) Wang" > > Cc: Liviu Dudau > > Cc: Mihail Atanassov > > Cc: Brian Starkey > > Cc: David Airlie > > Cc: Daniel Vetter > > Signed-off-by: Vincenzo Frascino > Hi Vincenzo: Thanks for the patch. and Vincenzo & Liviu, sorry Since there is a patch for this problem already: https://patchwork.freedesktop.org/series/71721/ And I have pushed that old fix to drm-misc-fixes just before I saw this mail. sorry. > Acked-by: Liviu Dudau > > Thanks for the patch, I will push it into drm-misc-fixes tomorrow. > > Best regards, > Liviu > > > --- > > drivers/gpu/drm/arm/display/komeda/komeda_drv.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c > > index ea5cd1e17304..dd3ae3d88687 100644 > > --- a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c > > +++ b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c > > @@ -146,6 +146,7 @@ static const struct of_device_id komeda_of_match[] = { > > > > MODULE_DEVICE_TABLE(of, komeda_of_match); > > > > +#ifdef CONFIG_PM > > static int komeda_rt_pm_suspend(struct device *dev) > > { > > struct komeda_drv *mdrv = dev_get_drvdata(dev); > > @@ -159,6 +160,7 @@ static int komeda_rt_pm_resume(struct device *dev) > > > > return komeda_dev_resume(mdrv->mdev); > > } > > +#endif /* CONFIG_PM */ > > > > static int __maybe_unused komeda_pm_suspend(struct device *dev) > > { > > -- > > 2.25.1 > > > > -- > ==================== > | I would like to | > | fix the world, | > | but they're not | > | giving me the | > \ source code! / > --------------- > ¯\_(ツ)_/¯