Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4795097iob; Mon, 9 May 2022 01:39:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJ8FGPexJmqUYKJ0E42aUnbqrFeCv32sBoqW8CGAnZOcVpPmkM4zT7VvjcR0VfIaIukfbi X-Received: by 2002:a65:6955:0:b0:380:64fd:a2dd with SMTP id w21-20020a656955000000b0038064fda2ddmr12236317pgq.383.1652085575275; Mon, 09 May 2022 01:39:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652085575; cv=none; d=google.com; s=arc-20160816; b=tFrthDgldK0IALZ5F8ullxTY99CrUgnqzOEV9z9N0sOJ6W+bWv+HYRh7tEd0W340qn 5o7riD2+wOzA/2d4yhCA1FQSwxs15y/dlM573Ie5tNhe0rk08gchnutyxJyEBVibqWnn UL9B5i/47ARfM8IP6tgXeDrSEF3rZOqXV+o0OqyN2yPFr9y6EwzXFP+dpbjP0qyLcYwL aG97sYU+zf6t03I1CsiWnRGVtaXYwt/eYQNOpAV6DB9eU4WYJ8su+VjOz4rgpWpZWnye 1cyYINnNjerTMF2JY9SP0HThZxyWKok7iMVtyQU9CCr5068vSP+LRlQnTZmdwbdI+P9v rL+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=QexGfDwDEQXc3VJg325N9hW7S+yZ98hrSh8ztFcQUV8=; b=NvhCHiOOQUGmVM+dFd1v9eAhDjVzgN69Y0eN8bWKBbbfYMHlkBp0PqUA7enpfPrOQ0 KWguXNI+UTU2NvvphCEUP9JswTf7zWcCv5ogMmWr9Ra9kxwn61ZgvKcjoYMIwo0yYZQI lTh3daRDer5nCN/kQ2xFlW2toeCNgp7zD101YrtVtdC5sOIIogucAtNbuMu0AYJN4zvS tYiLrcVkkFSz4fDEhtGwCWnb1ZLzxYrFN9wsb9fbqMI0jv5vo/JV+cifQaves5s496VS JP6C50NrmEXJukK1+4/1+NURa/5vdexD20aPgdfDLmU5W4vXFKm6FgkX47IszOXapw/l c5SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ILNLMI5g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i7-20020a170902c94700b00155d59481eesi12289007pla.88.2022.05.09.01.39.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 01:39:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ILNLMI5g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8E7C71DA64C; Mon, 9 May 2022 01:22:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389767AbiEFIBw (ORCPT + 99 others); Fri, 6 May 2022 04:01:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1389779AbiEFIBu (ORCPT ); Fri, 6 May 2022 04:01:50 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04FCC67D24 for ; Fri, 6 May 2022 00:58:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651823887; x=1683359887; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=emskee1MS2atxZwDugagn6nvmxLCXv6rnE07I1H2Bok=; b=ILNLMI5g78P4dKNFiiS+76xZfaXgyIE3a+BNfgrXuPJ+gfKn3oiJzDHE oeFqvnE9DLy35YUOuKcRR9EkD6i0FyqpbgUR9FIBiK/IG7/LWt1YsyDxx xHCTzjnprrCQ7It20a9hZGq5LHmKU3Nt7KU94aTvg6ZurE689BEvxeTh0 2xvlM3mNM9GjN0XcNmP15jnopZgskonJiQkaUZjuA1Z63ruuy6SNJ0sHE +ApnboYa6Ns78KKXyQKtD3fIdB4aqRkOUopU7Bmwn3VRYfM5hb18zFHZl K8NRoUDrjNkH0wvevr6CWhHtuvLljaXop69faHcnLMyVQ5mb0Nq+tHUxX A==; X-IronPort-AV: E=McAfee;i="6400,9594,10338"; a="331374186" X-IronPort-AV: E=Sophos;i="5.91,203,1647327600"; d="scan'208";a="331374186" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 00:58:06 -0700 X-IronPort-AV: E=Sophos;i="5.91,203,1647327600"; d="scan'208";a="735471694" Received: from tkinch-mobl.ger.corp.intel.com (HELO [10.213.192.122]) ([10.213.192.122]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 00:58:03 -0700 Message-ID: <31ca292e-813c-4484-ee6e-5895f26c53d2@linux.intel.com> Date: Fri, 6 May 2022 08:58:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH -next] drm/i915/gt: Fix build error without CONFIG_PM Content-Language: en-US To: YueHaibing , jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@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 Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20220506032652.1856-1-yuehaibing@huawei.com> From: Tvrtko Ursulin Organization: Intel Corporation UK Plc In-Reply-To: <20220506032652.1856-1-yuehaibing@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 06/05/2022 04:26, 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: Tvrtko Ursulin Thanks for the fix, will merge. Regards, Tvrtko > --- > 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;