Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1855790lqa; Tue, 30 Apr 2024 00:49:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhy8LWAmwYFTw1PWZnzdJtsm/inFWPViWVJyukMjUQDcZ16484AGJCwAlS1jz80WbchLy4pV6xAAhAjtucYouOHMVdeSmGF1v7Gl6Y1w== X-Google-Smtp-Source: AGHT+IEBAI6GcKjVm/BmoTzWu4aj//zBbSUKVrWn+U6AnNEkqxRm9h3j+0TV1KxvHc3+1poCb3Ts X-Received: by 2002:a17:906:1dce:b0:a52:cc77:5a25 with SMTP id v14-20020a1709061dce00b00a52cc775a25mr1152839ejh.67.1714463375275; Tue, 30 Apr 2024 00:49:35 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w25-20020a1709064a1900b00a4751769fe7si14976320eju.698.2024.04.30.00.49.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 00:49:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163496-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=l8OHCC4R; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-163496-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163496-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D6A8F1F22D95 for ; Tue, 30 Apr 2024 07:49:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 430A445027; Tue, 30 Apr 2024 07:49:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="l8OHCC4R" Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2040.outbound.protection.outlook.com [40.107.220.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 013D23F9E0; Tue, 30 Apr 2024 07:49:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.220.40 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714463362; cv=fail; b=PaypXBiwmkcJowKhqbNodSW5BQ+MCjozauNGYZ+soMgmFopuxdfRhw3c1iVOgQxcQ7oIYTxBAP6xnJ2dum3t4CBwjFVg5YAtlLjn9yGU9rxNepJ93+QX/iOsCvtwpIRrSq+Ni9g03gsd88U65MfyPzjun27bBNs4o0njjsppTtc= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714463362; c=relaxed/simple; bh=qLSQqnUQ5PF7bZevK21wkBttmbspkxTscpzpEGAUaao=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=JeL2o+DMxZgILiG5WaOmHBvmPTJsRcbm6KWE6Se1FSOHsR9ZxK4iMR9F1UzDTQPyHhfJJZQhgWRnfHoaGsK+xm/7hV8cmvK5wysfY12J4SmU9u6I2Zp67bcc3xKkLcs/Xn0ys6P3SWO9N9EgGNpufeiy3GTVGdMmhIQw2Z7Yqm8= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=l8OHCC4R; arc=fail smtp.client-ip=40.107.220.40 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RavQdFv/WZX5ND3r3duv69sydTdFimmbbgQoQjGcRhhHNUVms71oFJM5D2TMpAhEnFZZJtMVnZo/o3dDk6y0810kLIOn0yyoDFKyhu2jPxSsb8vuyvjlwrSSMV6R+KCOVqyVoC9sCIaMPZFekOJnZT6eYBxLVeU7ToGuWl4pUSoA7x1AaYpF+BtikyGEHnyjf5fD6cyPVRuwUu17T2/btz9+jMM4wStnTlndwJZV1ntwgNRaEeZ2AIEcfc01rwWZoDo+xt9MYiTQ6jXMHIlycTUnOe92Vg2KRAkvnniEHv6WI6zx7BTTz/RVzJwmu07pB+R8tQd3uIqQ1hW0pFO/oQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=T98INIRW5NnCwnNMDvF2nZO+dq9VJzWgMZBN2OlGBSo=; b=bOI/dZyUZCSrVdDY8Kc3RqR8gHFQ+bljkmDeRQNDtGcBjxZCOtbA4K1Gq5tXuUcRVhFPWIWc6MUgk7rnobCh12/culiEWs/XnzWor6VXRB5wX5dcPeytN1u6Ifx4HOowynf8wxOWgKCw2JyrGR5dGYTiLgtLSlEdaEHFFeNPuYvGlVMDKw436XWFLIJB0MexUgQN+wwv2kX5h1tBRUTKZtua6FfrucRw05VVMOIMAJjHv+NX/vJLVR68NSYr5p2DtnaVUB6YNSTJpQZ5j4V95fUO+1WcR1eSeExLiOjwjCd51I6STeuCiimrjDfM61Yuz3Ea1rGYiA0xon5hob9fJw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=intel.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=T98INIRW5NnCwnNMDvF2nZO+dq9VJzWgMZBN2OlGBSo=; b=l8OHCC4REijGcmeWffRgh1mADwKrx80SAo+Q7zJ4NDmwNEtp+XCAlL0evKdgYZ8HGYgM6+Rzuwbfg1GNklstZ4SObtE7GC2CwQqIueQh9viVcJ1Fz8KODQpN9iHhTHDeymh+44ESRVMmaahtbLLOgciNJL/NWkvNfrTUTZbtmpw= Received: from CH2PR05CA0052.namprd05.prod.outlook.com (2603:10b6:610:38::29) by PH7PR12MB8013.namprd12.prod.outlook.com (2603:10b6:510:27c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Tue, 30 Apr 2024 07:49:13 +0000 Received: from CH1PEPF0000A34B.namprd04.prod.outlook.com (2603:10b6:610:38:cafe::f0) by CH2PR05CA0052.outlook.office365.com (2603:10b6:610:38::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.22 via Frontend Transport; Tue, 30 Apr 2024 07:49:13 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CH1PEPF0000A34B.mail.protection.outlook.com (10.167.244.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7544.18 via Frontend Transport; Tue, 30 Apr 2024 07:49:12 +0000 Received: from pyuan-Chachani-VN.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 30 Apr 2024 02:49:09 -0500 From: Perry Yuan To: , , , , , CC: , , , , , , Subject: [PATCH 1/2] cpufreq: amd-pstate: fix code format problems Date: Tue, 30 Apr 2024 15:48:56 +0800 Message-ID: <20240430074857.2069301-1-perry.yuan@amd.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH1PEPF0000A34B:EE_|PH7PR12MB8013:EE_ X-MS-Office365-Filtering-Correlation-Id: 3a713085-cc9a-4dad-16b0-08dc68ea06ec X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?b5+PVge82TheAK0pEZot2p+efrZowF2aXy6ECvEJ8yjM4e8QMRnUnJnYAOts?= =?us-ascii?Q?4lpEsQXMIVzF0I9bn3aLMPjBg6L1BCZ430IjG4PK6824lI+v0VyjZaStVvLa?= =?us-ascii?Q?tiNNRbEW57k7Ahh79MywwSzEpZ6YqeNWDjk4BkTW1shq5Vr9JZ1G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pm7DzR7DGBHvna+zq28m7GBK3SdL?= =?us-ascii?Q?e+54mDpV8e1XpLfSPogdv1O0dZb/o45M5C+6Xozfz6RbCBjGAQpYp3pztqfW?= =?us-ascii?Q?d2Qa2XXy/apnL5qIvedELMCSg9ceqZJt2xdelsJzpn7keNEpbfFm1I8e6RCV?= =?us-ascii?Q?EFNbD1bgRMJzWUcY5GSn+Qjfx9ZYG0TL7dq8vxE57IVvcQ0Rf5qSEm+IrAdN?= =?us-ascii?Q?eJJz6rc80z31mq0tgMHRMLNe7IseQboSsipXVIy6O9EP5qaarLCMgdL0vUoc?= =?us-ascii?Q?UWAX1nOwBdhEIhO+VVuKWAywDXS+y5ahM6m6FNHS+FiN5n99rRC2FOP6nfhH?= =?us-ascii?Q?TpsVC4eadbvSx3Vhvl23t2HK98xo?= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(376005)(82310400014)(36860700004)(1800799015);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Apr 2024 07:49:12.6914 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3a713085-cc9a-4dad-16b0-08dc68ea06ec X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH1PEPF0000A34B.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB8013 get some code format problems fixed in the amd-pstate driver. Changes Made: - Fixed incorrect comment format in the functions. - Removed unnecessary blank line. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202404271148.HK9yHBlB-lkp@intel.com/ Signed-off-by: Perry Yuan Reviewed-by: Mario Limonciello --- drivers/cpufreq/amd-pstate.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c index 83a29b257794..85656342a101 100644 --- a/drivers/cpufreq/amd-pstate.c +++ b/drivers/cpufreq/amd-pstate.c @@ -792,7 +792,7 @@ static void amd_pstate_update_limits(unsigned int cpu) mutex_unlock(&amd_pstate_driver_lock); } -/** +/* * Get pstate transition delay time from ACPI tables that firmware set * instead of using hardcode value directly. */ @@ -807,7 +807,7 @@ static u32 amd_pstate_get_transition_delay_us(unsigned int cpu) return transition_delay_ns / NSEC_PER_USEC; } -/** +/* * Get pstate transition latency value from ACPI tables that firmware * set instead of using hardcode value directly. */ @@ -822,7 +822,7 @@ static u32 amd_pstate_get_transition_latency(unsigned int cpu) return transition_latency; } -/** +/* * amd_pstate_init_freq: Initialize the max_freq, min_freq, * nominal_freq and lowest_nonlinear_freq for * the @cpudata object. @@ -843,7 +843,6 @@ static int amd_pstate_init_freq(struct amd_cpudata *cpudata) u32 boost_ratio, lowest_nonlinear_ratio; struct cppc_perf_caps cppc_perf; - ret = cppc_get_perf_caps(cpudata->cpu, &cppc_perf); if (ret) return ret; -- 2.34.1