Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1920523lqa; Tue, 30 Apr 2024 03:24:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRBmpO2vMpTpk419+8Fiy5DkejS93QU4d86dwzxS+7FvBBlzfPQiWv5tnRt9OkRyUa9SgPgIOR9SmoKlo17lUtmhHpAjPVfzbaxcMGuQ== X-Google-Smtp-Source: AGHT+IEl1NOZTnF0d3oAOHSAj21m/ekUkYwMi69Ye7YxViAWpD8OPMGupNWfJZ0oGn0VWkI0b9pg X-Received: by 2002:ad4:5cae:0:b0:6a0:cd8e:2ff8 with SMTP id q14-20020ad45cae000000b006a0cd8e2ff8mr7088464qvh.46.1714472647232; Tue, 30 Apr 2024 03:24:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714472647; cv=pass; d=google.com; s=arc-20160816; b=bsTPu6a/pjisX4JnbNcZX043iWPcpbhywtmmvTaDcVRGTQ9buXTftZyEMVHJCHgR4Z zvKPOi0gK+QarmU99QaYhV/G4vEzl3tAliEtKyJGvu7ko1xkUcskt/48kugQAS2DZ4Hk MOGHdSlSPnvVmmOBH5/ZUR0UjsLsnu+tTFeLB902ITHWz+4Yiqumt8L1owoxH4JelBI+ 52RV0/Yk2eN+Eb8BVVYj0kidcR0qpyjvFrHiM8GgVvPRHbYD9zfoGrkMBUNLvadarZ1t xjLBbpjYhtd4MXkgy+L2O7szXz8MvH9bCfS4gdh23lePIVLWP5gHoKdFNMfPU3CXXFnf KXsQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=AsPOaikIG4GBtkEAtzLWmu+/FnTtZSh0otaqu67Wo3A=; fh=bRvRI1QJmnMiob69Q89bdFM2UX+xcX5STNqFf8wkHpU=; b=zcqf/kNKllEHahXK+RY9eJn0QaA3HOGppvDn2NhTFGxusO3bVFs5znkSDPpKD1Z6s4 B6aBrOjntMNvqzIsSwsY1VCwrKEjSAS3xTP4CJnTanNYpUs0yKfb5+3nVPdkY3WUgDSf KTRlUhz65Cf0+nwDsF7uiL19omfoyf6oeNyjmF7Zychx29G4W3kfC+1bsRrAqmbz1511 QCPuh63jK0XzDvHuLf8jrVNfSRSqQPoMSCSk4BQRCe08IQ1JctngXwRwMoPTqs/QmGcR QBRCGF40haWLFt0mGJ64WY568E8QCD0XBn75IVdzqI6XKfv2SD/O3hGtn68PxlSvQ3Lb G7YQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=te5mO2KK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-163765-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163765-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a7-20020a056214062700b006a0cc6b1940si4771875qvx.353.2024.04.30.03.24.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 03:24:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163765-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=te5mO2KK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-163765-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163765-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EF2461C217B4 for ; Tue, 30 Apr 2024 10:24:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6937413D28B; Tue, 30 Apr 2024 10:24:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="te5mO2KK" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9002D129E72; Tue, 30 Apr 2024 10:23:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714472639; cv=none; b=kDBaWzKbTb61Uo58f/txjrE8+aSJZhyqt01+7N6xHs6a3Cv+Q5r2/X7zsVdLFQ5QNsDDjuGoth2CGFN6+4nW6X1GnebRpEC1NAZ7+nZVewd+ZDp5k5Mg/eN3DvTXQlZccvTSqmjEFRXkCdy0ZNTnhxkmplos9S76opyQdouTsDM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714472639; c=relaxed/simple; bh=NG4wt3E1qhVSIOTYVEslbj0IbUx4tbqUB/Gh0AJzueI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=JSJEYLYN/McndSzBpKgcSUxnbTF20EEkA541gI+PCAWOragqsHz1gH5sOmMu9baqGllUjup8+SWfKWUqvu/2frN1R7iRT7znOLo9eWKZzoR30khYuZzndjFPAF35B+rL7Bd7mTrE5YMNM/TWKqfJC0AiF25hUtVuvMKezF8SUQA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=te5mO2KK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F39DBC4AF1A; Tue, 30 Apr 2024 10:23:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714472639; bh=NG4wt3E1qhVSIOTYVEslbj0IbUx4tbqUB/Gh0AJzueI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=te5mO2KKAx3Xxper97DsSGj7zUacskVc35grwLDK/TdU+LjNR4ogJjDUFCueItDbe pcIC/vMmiJFQrvCYSWsWc4aHiBDFW6gaWYdakvIZhHyF/phEgC53hAyx4JZMSqUBf6 sOaSSGYNcFGBaIzUw0r8kBmBhzrM/z4mtQqP1sWL4Iib3bf8Qa1korZ6rc3uPCjgcG SWptIAx/GKDvm0JG1r/Mf47UvqoJDivbVNT2XVb+65/rm8rancacKXoisd7O7xOoeW NTeyVFSVV6Q7aoixN/NhoxViwgbFOdSciFVl7HGAU0ezn0M919cTJM6msI0r9LoRsn JD4/WfXAVyaEw== Received: by mail-oo1-f47.google.com with SMTP id 006d021491bc7-5a9ef9ba998so1295979eaf.1; Tue, 30 Apr 2024 03:23:58 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWW/RsCI8ykekUodlBaO50fuZZ0I8S4t2M71G3WF6XMXpKFGFwlC6NkvxKywPBwhzNq6VPRrXExtOxJZ6r+B12o8EDQv+O+w0UzzrbEM2IShl7COm/O67jB8DccB3wfsGY/60krcJU= X-Gm-Message-State: AOJu0YzLXiVZvOpd8pN3zkjF7I5YZqm3Hd9n3/ZlUUZAahocoGdYTEoP 7Rigt3o8dtMkk4dhHRZ8a+SMk4x6Lnebkad0k9NMvPVuch8Z1FSAeNtbm9S5RveiImehLt/3bkv Q+UMSaDR++OV7eIPp8Fq0RSlfuKI= X-Received: by 2002:a05:6820:e09:b0:5a7:db56:915c with SMTP id el9-20020a0568200e0900b005a7db56915cmr13550801oob.1.1714472638205; Tue, 30 Apr 2024 03:23:58 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240430074857.2069301-1-perry.yuan@amd.com> In-Reply-To: <20240430074857.2069301-1-perry.yuan@amd.com> From: "Rafael J. Wysocki" Date: Tue, 30 Apr 2024 12:23:45 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] cpufreq: amd-pstate: fix code format problems To: Perry Yuan Cc: rafael.j.wysocki@intel.com, Mario.Limonciello@amd.com, viresh.kumar@linaro.org, gautham.shenoy@amd.com, Borislav.Petkov@amd.com, Ray.Huang@amd.com, Alexander.Deucher@amd.com, Xinmei.Huang@amd.com, oleksandr@natalenko.name, Xiaojian.Du@amd.com, Li.Meng@amd.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 30, 2024 at 9:49=E2=80=AFAM Perry Yuan wro= te: > > 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@i= ntel.com/ > Signed-off-by: Perry Yuan > Reviewed-by: Mario Limonciello As this is a resend of a patch that has been posted already, it would be good to indicate that somehow. For example, send the whole series as v2 and say in the notes below the changelog that a Reviewed-by tag has been added between v1 and v2. And for the second patch, say that it is new in v2. That said, this particular case is simple enough for me to see what's going on right away. Both patches in the series applied, thanks! > --- > 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(unsigne= d 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 *c= pudata) > u32 boost_ratio, lowest_nonlinear_ratio; > struct cppc_perf_caps cppc_perf; > > - > ret =3D cppc_get_perf_caps(cpudata->cpu, &cppc_perf); > if (ret) > return ret; > -- > 2.34.1 > >