Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4425985iob; Sun, 8 May 2022 12:19:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsr+MZWikRe8fplfDtqLrQ/s9yrwDJr+Ya1y5t7g0qn3FHQmhqdlQbN2fJrK8xvi1fCJ++ X-Received: by 2002:a17:907:2ce6:b0:6f4:7e8e:af40 with SMTP id hz6-20020a1709072ce600b006f47e8eaf40mr11465468ejc.211.1652037545247; Sun, 08 May 2022 12:19:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652037545; cv=none; d=google.com; s=arc-20160816; b=MCD38YOavhBGeE+0QaMO8Vwfc2JO+k9ll9HD+04xgAMudmo9ln/zZGzIXtuzI/LxS0 CM4Xl66KgUpNRt1VjpnRLvl7S90/8RJx/IW7ocHhgXUy/GTn5G8LZFI0KsHyUJ8m0QCO q7AvRBTH/84rLSPD+ZUKMCIyG0QHGS3bm8kIdjIyYeDZDoncwEBy0OlR4x0ockfhA9wW WHX44pn3Q+uVCvfKWdtNBXioAD2DC2H5dFiXNJaJ5+c6huZodyOSNcrQ7AS/mrelwGiq BhNh2bg/H4QHTe/S6SIYPdvm2X41/xULRFJTR81sfATFnpkGIazkqD+nfqQIj5kmgNvb J8IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wuqCjjP9CYxw/hGHx0odm+tGnoWxShASkZsrEuTKDLc=; b=gcNoXp0VKKnXcLt024SkdVz+Ste4myt6ZVuaNXWRg3KDcDkwFJKUjBJ+D3EYf3c1bS VnIQpYO5N6Hdv6QQ1PuBqBcC7SjwPykHH7aVJ7Ybz+f9xvh+HNw+ZuocjHrR0TDjAdPW ffC0LHbb5x5k+qUSLde5luzWsVDs3V0b5H0UI0DR7uWdOLx+k4LTcSkR3VDq+2zO2Y+j 0qeFYsq1LGcuhcpKPZglKhvGGFAnBEK5XScmdGdQ0KyBDxGQw3m46h8g7tRw8iNG2RkR kvoLNIIIklCb5QmJRdfCObmuK2D2L0R1Hdg2XBoSe90XQ0Em2V87QxJUhdCOvtizQ1fx Y2Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Ahvt5x/Y"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pj19-20020a170906d79300b006e86e4fd0c0si10496372ejb.819.2022.05.08.12.18.41; Sun, 08 May 2022 12:19:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Ahvt5x/Y"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389818AbiEFIMi (ORCPT + 99 others); Fri, 6 May 2022 04:12:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239540AbiEFIMg (ORCPT ); Fri, 6 May 2022 04:12:36 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 016F3340EB for ; Fri, 6 May 2022 01:08:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651824535; x=1683360535; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=UomkzKLap10+6cV2j8PZE1NwHs8rrur9oxMPmv8zByM=; b=Ahvt5x/YzkvkdoYTuXPRAdjgkNBww6GPDjP+LgkfEPad+/xG6Q4Db5PA uFxKcpRxyihbVdvRNFF6jcjppacCsxj8acjHnIMEfsfTZW+3GzR19uWVi mPzkBVrGe6+abVuT9iJYMnglf8iMAlXdcQMe8r5ma2zxhplhH12hjNg0P fnXG6YIXBdWBow0S+TGv1Rq5fFo6wd+dMWw8Wf9kY15d3QwaBMrhkfhK8 Is/JqvbOqcXmhRVyU0xtD3LNY4zAEHRoEZTlFLzDDlCwugLxu8aOnJfUH tpKbaEoa/Xo0FFD8/d240tg7yi6wdQGRrttaGrgOYF9338Kx36C1ZFHRr Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10338"; a="250385906" X-IronPort-AV: E=Sophos;i="5.91,203,1647327600"; d="scan'208";a="250385906" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 01:08:54 -0700 X-IronPort-AV: E=Sophos;i="5.91,203,1647327600"; d="scan'208";a="585845577" Received: from blaesing-mobl.ger.corp.intel.com (HELO intel.com) ([10.251.218.207]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 01:08:49 -0700 Date: Fri, 6 May 2022 10:08:46 +0200 From: Andi Shyti To: YueHaibing Cc: jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, tvrtko.ursulin@linux.intel.com, airlied@linux.ie, daniel@ffwll.ch, andi.shyti@linux.intel.com, matthew.auld@intel.com, andrzej.hajda@intel.com, lucas.demarchi@intel.com, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] drm/i915/gt: Fix build error without CONFIG_PM Message-ID: References: <20220506032652.1856-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220506032652.1856-1-yuehaibing@huawei.com> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi YueHaibing, On Fri, May 06, 2022 at 11:26:52AM +0800, YueHaibing wrote: > drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c: In function ‘act_freq_mhz_show’: > drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:276:20: error: implicit declaration of function ‘sysfs_gt_attribute_r_max_func’ [-Werror=implicit-function-declaration] > 276 | u32 actual_freq = sysfs_gt_attribute_r_max_func(dev, attr, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Move sysfs_gt_attribute_* macros out of #ifdef block to fix this. > > Fixes: 56a709cf7746 ("drm/i915/gt: Create per-tile RPS sysfs interfaces") > Signed-off-by: YueHaibing Reviewed-by: Andi Shyti Thanks, Andi > --- > drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c b/drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c > index 26cbfa6477d1..e92990d514b2 100644 > --- a/drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c > +++ b/drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c > @@ -17,7 +17,6 @@ > #include "intel_rc6.h" > #include "intel_rps.h" > > -#ifdef CONFIG_PM > enum intel_gt_sysfs_op { > INTEL_GT_SYSFS_MIN = 0, > INTEL_GT_SYSFS_MAX, > @@ -92,6 +91,7 @@ sysfs_gt_attribute_r_func(struct device *dev, struct device_attribute *attr, > #define sysfs_gt_attribute_r_max_func(d, a, f) \ > sysfs_gt_attribute_r_func(d, a, f, INTEL_GT_SYSFS_MAX) > > +#ifdef CONFIG_PM > static u32 get_residency(struct intel_gt *gt, i915_reg_t reg) > { > intel_wakeref_t wakeref; > -- > 2.17.1