Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6854210rwb; Tue, 15 Nov 2022 04:44:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ssRA+HoZ7f4QcacLbrEBrmOiAdDIxMPM+IQ58hN4GHkfJDn5VTYPYo9+/6+tRqCseIQfe X-Received: by 2002:a17:906:3e43:b0:78d:a154:ae with SMTP id t3-20020a1709063e4300b0078da15400aemr12925496eji.259.1668516263522; Tue, 15 Nov 2022 04:44:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668516263; cv=none; d=google.com; s=arc-20160816; b=fU+iGCkBMuUcjGZYiWrb5lPUn45AGg1P097IGmbciD5j06JSJFxlxrQ3TapfBYbxQO QSHFAhfW3opW4m4xXuoq//I/ke8J35B5YIziE9S0nYzc6k9zcxt715Y3rc/2G843z2wT ac6AgOXHgmEr4t7DJG7qHLtuAAUKvAcl6uytSVm1F0m+eBDgQ40wOjLxZF8Gw2ce4A9z mTBEycmgv3cDK0YjpOl2DjEUqu+1ON3XlsnkEkQwHBBBqe7cpPhpyFrjWEHxPpsd1ZVj /JRSai5ZNrQdbgRru5YPYPzfMaRJnnhXwxDtyt7rvIbnTWZnd6T95B9E6G98BX3jG7Re LelA== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=+ZmbZNmaapkA++vaSMrdMGun6kawCSKpNCFCFhM1cUM=; b=jdzQ3ACsh2MvJmtj4JuRJfk2OlJN9LGJY7B2ct75XFz+urec2VZOwg1FJ9lXKOxw46 66M5yifbHSjoccnyYMLDzm9CqGU7j9G/N79m8vFIFED9hih3zjMV3pSzwFXo2jimhOJx 4XBWqqTdLgF/jOqBWje++WUCtOo2rUSMwrWAi6dQ/YIk7dUmU7nCA0hfpv9Nulnoz0GH ByqxKek1elqzHZoN1xWukSQY9QpwgOiKduEkX7FxbbRtmjjbuSeIn30teuYpOo+9dPlt vVMMecI+IoqzCv8wVxcpB4QdUFrCPDLA+UclJwr8nv3GWC0Q5WveX1L7LuPL4jGa0TC+ k89w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WEd4C3Yd; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r2-20020a056402034200b00461af57d736si10790311edw.278.2022.11.15.04.44.00; Tue, 15 Nov 2022 04:44:23 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=WEd4C3Yd; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229747AbiKOLhT (ORCPT + 89 others); Tue, 15 Nov 2022 06:37:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbiKOLhM (ORCPT ); Tue, 15 Nov 2022 06:37:12 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79FBB13D09 for ; Tue, 15 Nov 2022 03:36:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668512171; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+ZmbZNmaapkA++vaSMrdMGun6kawCSKpNCFCFhM1cUM=; b=WEd4C3YdVX7LqOUAJQehiHQzQF/OUd8575YGyHcorLRbhvSr9/r74QqOaWnjXpu9NlZXxv k6qS3IOHXyFtCRMsoDDnoAVruPLHt5fbZCi/0kkDX/6gPpUbsijo4JIBvJ4K/xVYQVmJCe m99/xOlCJOm8hHXc5SZILUWNztwhrlo= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-582-PaIG9-l-MgWo2KBp1tDx_Q-1; Tue, 15 Nov 2022 06:36:10 -0500 X-MC-Unique: PaIG9-l-MgWo2KBp1tDx_Q-1 Received: by mail-ed1-f70.google.com with SMTP id z15-20020a05640240cf00b00461b253c220so9777911edb.3 for ; Tue, 15 Nov 2022 03:36:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+ZmbZNmaapkA++vaSMrdMGun6kawCSKpNCFCFhM1cUM=; b=TiefjTDYBQZ7TMB5ApnaAgbE7fXzSv+R1gOm7Ku5xlpdrSwR+FdHIRNTHivgQbV++T UJXHKKCT9I2zPjUPPt2Wwr75RE6mJZj543Jcmqv6KKedY8yyCUOYWrH3ye4YV9LnV4SX y5Qs79LkhnK3XAgeiqD4MsWrThTA2+2I9Qwy5VgeHGPRdXAeMvwJTPG6hz5Uf5BoDI0b 0jMXscpkyEN2vDeN3WdX0w6od3/1B3lVr44djXLdVbgs+iCeP2UKL83JAoodaMMflPau rNynE6nozL+i1KM0aYy1euqH7O6uXJJUSE86A9OPURuXHrqdOJetr1CbP7Y5+HQ9DIId Q+kw== X-Gm-Message-State: ANoB5pmNQwbI/SDf50shyGt9FmOPZVBDJz3ftHHuhGMQJ9B5pIwpWTuJ MA4iVVwBnwoqPzjQdF8xZsbfnSd5WFljpYNiJCFnevD9YlhrOsMbg6Cs/op787v1CXbRCc3HwTx bJJDSFr2krS4JSV9NaBhSMXi5 X-Received: by 2002:a17:906:64a:b0:7ad:f0af:5b5b with SMTP id t10-20020a170906064a00b007adf0af5b5bmr13183049ejb.609.1668512169346; Tue, 15 Nov 2022 03:36:09 -0800 (PST) X-Received: by 2002:a17:906:64a:b0:7ad:f0af:5b5b with SMTP id t10-20020a170906064a00b007adf0af5b5bmr13183031ejb.609.1668512169103; Tue, 15 Nov 2022 03:36:09 -0800 (PST) Received: from ?IPV6:2001:1c00:c1e:bf00:d69d:5353:dba5:ee81? (2001-1c00-0c1e-bf00-d69d-5353-dba5-ee81.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:d69d:5353:dba5:ee81]) by smtp.gmail.com with ESMTPSA id x16-20020a170906135000b0078d793e7927sm5409288ejb.4.2022.11.15.03.36.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Nov 2022 03:36:08 -0800 (PST) Message-ID: <0039ee53-d1a9-ba2f-2f4e-66d4fb820917@redhat.com> Date: Tue, 15 Nov 2022 12:36:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH] platform/x86/amd: pmc: Remove more CONFIG_DEBUG_FS checks Content-Language: en-US, nl To: Mario Limonciello , Shyam Sundar S K Cc: liyupeng@zbhlos.com, Mark Gross , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221108023323.19304-1-mario.limonciello@amd.com> From: Hans de Goede In-Reply-To: <20221108023323.19304-1-mario.limonciello@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Mario, On 11/8/22 03:33, Mario Limonciello wrote: > commit b37fe34c8309 ("platform/x86/amd: pmc: remove CONFIG_DEBUG_FS > checks") removed most CONFIG_DEBUG_FS checks, but there were some > left that were reported to cause compile test failures. > > Remove the remaining checks, and also the unnecessary CONFIG_SUSPEND > used in the same place. > > Reported-by: liyupeng@zbhlos.com > Fixes: b37fe34c8309 ("platform/x86/amd: pmc: remove CONFIG_DEBUG_FS checks") > Signed-off-by: Mario Limonciello Thank you for your patch, I've applied this patch to my fixes branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=fixes Note it will show up in my fixes branch once I've pushed my local branch there, which might take a while. I will include this patch in my next fixes pull-req to Linus for the current kernel development cycle. Regards, Hans > --- > drivers/platform/x86/amd/pmc.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/platform/x86/amd/pmc.c b/drivers/platform/x86/amd/pmc.c > index 96e790e639a2..3b44f2fff5be 100644 > --- a/drivers/platform/x86/amd/pmc.c > +++ b/drivers/platform/x86/amd/pmc.c > @@ -276,7 +276,6 @@ static const struct file_operations amd_pmc_stb_debugfs_fops_v2 = { > .release = amd_pmc_stb_debugfs_release_v2, > }; > > -#if defined(CONFIG_SUSPEND) || defined(CONFIG_DEBUG_FS) > static int amd_pmc_setup_smu_logging(struct amd_pmc_dev *dev) > { > if (dev->cpu_id == AMD_CPU_ID_PCO) { > @@ -351,7 +350,6 @@ static int get_metrics_table(struct amd_pmc_dev *pdev, struct smu_metrics *table > memcpy_fromio(table, pdev->smu_virt_addr, sizeof(struct smu_metrics)); > return 0; > } > -#endif /* CONFIG_SUSPEND || CONFIG_DEBUG_FS */ > > #ifdef CONFIG_SUSPEND > static void amd_pmc_validate_deepest(struct amd_pmc_dev *pdev)