lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CADnq5_OEG9hHxR7wgse7x3ibzH9q=bL66wCAhS2fDyTmRjeKqQ@mail.gmail.com>
Date:   Mon, 7 Aug 2023 12:32:51 -0400
From:   Alex Deucher <alexdeucher@...il.com>
To:     Ran Sun <sunran001@...suo.com>
Cc:     alexander.deucher@....com, airlied@...il.com, daniel@...ll.ch,
        dri-devel@...ts.freedesktop.org, amd-gfx@...ts.freedesktop.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm/amd/pm: Clean up errors in vega12_pptable.h

Applied.  Thanks!

On Tue, Aug 1, 2023 at 2:04 AM Ran Sun <sunran001@...suo.com> wrote:
>
> Fix the following errors reported by checkpatch:
>
> ERROR: open brace '{' following struct go on the same line
> ERROR: space prohibited before open square bracket '['
>
> Signed-off-by: Ran Sun <sunran001@...suo.com>
> ---
>  .../gpu/drm/amd/pm/powerplay/hwmgr/vega12_pptable.h   | 11 +++++------
>  1 file changed, 5 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_pptable.h b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_pptable.h
> index bf4f5095b80d..9b8435a4d306 100644
> --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_pptable.h
> +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_pptable.h
> @@ -72,8 +72,7 @@ enum ATOM_VEGA12_PPCLOCK_ID {
>  typedef enum ATOM_VEGA12_PPCLOCK_ID ATOM_VEGA12_PPCLOCK_ID;
>
>
> -typedef struct _ATOM_VEGA12_POWERPLAYTABLE
> -{
> +typedef struct _ATOM_VEGA12_POWERPLAYTABLE {
>        struct atom_common_table_header sHeader;
>        UCHAR  ucTableRevision;
>        USHORT usTableSize;
> @@ -92,11 +91,11 @@ typedef struct _ATOM_VEGA12_POWERPLAYTABLE
>        USHORT usODPowerSavePowerLimit;
>        USHORT usSoftwareShutdownTemp;
>
> -      ULONG PowerSavingClockMax  [ATOM_VEGA12_PPCLOCK_COUNT];
> -      ULONG PowerSavingClockMin  [ATOM_VEGA12_PPCLOCK_COUNT];
> +      ULONG PowerSavingClockMax[ATOM_VEGA12_PPCLOCK_COUNT];
> +      ULONG PowerSavingClockMin[ATOM_VEGA12_PPCLOCK_COUNT];
>
> -      ULONG ODSettingsMax [ATOM_VEGA12_ODSETTING_COUNT];
> -      ULONG ODSettingsMin [ATOM_VEGA12_ODSETTING_COUNT];
> +      ULONG ODSettingsMax[ATOM_VEGA12_ODSETTING_COUNT];
> +      ULONG ODSettingsMin[ATOM_VEGA12_ODSETTING_COUNT];
>
>        USHORT usReserve[5];
>
> --
> 2.17.1
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ