Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6651872ybf; Fri, 6 Mar 2020 01:52:13 -0800 (PST) X-Google-Smtp-Source: ADFU+vvBedJmjzMd6OPQ8xFxwFmMlAls07CgqaMNYj3c5l3TmR+LhuY+BbU/aPaJf8MFx7bu4vtG X-Received: by 2002:aca:a80a:: with SMTP id r10mr1876822oie.173.1583488333136; Fri, 06 Mar 2020 01:52:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583488333; cv=none; d=google.com; s=arc-20160816; b=OOE4cpsxceVeFkoVcmxNzUHji5VmXQMuwPaoCvn1Rn08c9NEtBg/qRavmkowAy+iCN it//PcS302qrhFpCF2kUSgZGHfsQ3OXFVJt/48wTWQXtQfdPxIRj9eu6hkJwa4Onmfsc An6oJBP8pBGlIV7x04yfrJCb560Lq3SkwPOvvWdEa5EgYGBujvlOsT0ckbTTfT7q608V qY4oUxV4fI8yjkRGank3rZzG1Xv1DRNUfLiQM3klbJGox/lM3MLfLvsgs++xI+ddME98 oltuCvKF47RoFYtd7RLCg49kE/o2Wh30jQkRp/psYSgrd5BT/3xh5/1irnsxHepLbOoC NGEg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=EsDnxx1QCmjEYb+JuhSigUokwFzTMQf6N/QTroDU6RA=; b=rOAAm5xWuQ8oVmPMEgDyHyycQlL+qP5gh+EpMO9n3yGHSeSdBP5aIODtH3zaR3AVhY 9G+TTi7S4hhzGJhP3fsreYVJVlEVXomcHlvf28VrHu0ZhpwB6cbo0qsdu/Dkmrnf5EtW /gBJgtEtfdYtLVPNo88x6IigkQ27YHSuMtGZIPelRUMgOTesS3u2CbCvEvGNKOFDKYeS qggaud9D7Dwx4DFjYYd4g3V7V0eKPuVK1k7d9Sg0ZGOrJEEtCA8zsipJggROyJF0wbfs aGBG9EZe3UTo5XgZ9ncjtMuyqrd6iPMvHeunSjspHdQSqztvYAAAQgjimUK4n2MWUPkn 6Wdw== 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 u205si1091356oif.235.2020.03.06.01.52.01; Fri, 06 Mar 2020 01:52:13 -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 S1726079AbgCFJvi (ORCPT + 99 others); Fri, 6 Mar 2020 04:51:38 -0500 Received: from foss.arm.com ([217.140.110.172]:58688 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726010AbgCFJvi (ORCPT ); Fri, 6 Mar 2020 04:51:38 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9A96831B; Fri, 6 Mar 2020 01:51:37 -0800 (PST) Received: from [192.168.1.161] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C01543F6C4; Fri, 6 Mar 2020 01:51:35 -0800 (PST) Subject: Re: [PATCH] drm: komeda: Make rt_pm_ops dependent on CONFIG_PM To: "james qian wang (Arm Technology China)" , Liviu Dudau Cc: "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , Mihail Atanassov , Brian Starkey , David Airlie , Daniel Vetter , nd@arm.com References: <20200304145412.33936-1-vincenzo.frascino@arm.com> <20200305184255.GH364558@e110455-lin.cambridge.arm.com> <20200306041407.GA27096@jamwan02-TSP300> From: Vincenzo Frascino Message-ID: <053abb02-cdeb-76f8-d651-88734a338010@arm.com> Date: Fri, 6 Mar 2020 09:51:57 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20200306041407.GA27096@jamwan02-TSP300> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi James, On 3/6/20 4:14 AM, james qian wang (Arm Technology China) wrote: > 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. > No issue, as far as it is fixed :) It is annoying stepping on it during randconfig :) Thanks for letting me know! [...] -- Regards, Vincenzo