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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CADnq5_PQr8Op2tqs4s78Qg+niP9=VMxxPQt9Ya8BJL-czWCshQ@mail.gmail.com>
Date:   Mon, 7 Aug 2023 13:20:05 -0400
From:   Alex Deucher <alexdeucher@...il.com>
To:     Ran Sun <sunran001@...suo.com>
Cc:     alexander.deucher@....com, dri-devel@...ts.freedesktop.org,
        amd-gfx@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm/amdgpu/atomfirmware: Clean up errors in amdgpu_atomfirmware.c

Applied.  Thanks!

On Wed, Aug 2, 2023 at 2:51 AM Ran Sun <sunran001@...suo.com> wrote:
>
> Fix the following errors reported by checkpatch:
>
> ERROR: spaces required around that '>=' (ctx:WxV)
> ERROR: spaces required around that '!=' (ctx:WxV)
> ERROR: code indent should use tabs where possible
>
> Signed-off-by: Ran Sun <sunran001@...suo.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
> index 0b7f4c4d58e5..835980e94b9e 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
> @@ -58,7 +58,7 @@ uint32_t amdgpu_atomfirmware_query_firmware_capability(struct amdgpu_device *ade
>         if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context,
>                                 index, &size, &frev, &crev, &data_offset)) {
>                 /* support firmware_info 3.1 + */
> -               if ((frev == 3 && crev >=1) || (frev > 3)) {
> +               if ((frev == 3 && crev >= 1) || (frev > 3)) {
>                         firmware_info = (union firmware_info *)
>                                 (mode_info->atom_context->bios + data_offset);
>                         fw_cap = le32_to_cpu(firmware_info->v31.firmware_capability);
> @@ -597,7 +597,7 @@ bool amdgpu_atomfirmware_ras_rom_addr(struct amdgpu_device *adev,
>                                           index, &size, &frev, &crev,
>                                           &data_offset)) {
>                 /* support firmware_info 3.4 + */
> -               if ((frev == 3 && crev >=4) || (frev > 3)) {
> +               if ((frev == 3 && crev >= 4) || (frev > 3)) {
>                         firmware_info = (union firmware_info *)
>                                 (mode_info->atom_context->bios + data_offset);
>                         /* The ras_rom_i2c_slave_addr should ideally
> @@ -850,7 +850,7 @@ int amdgpu_atomfirmware_get_fw_reserved_fb_size(struct amdgpu_device *adev)
>
>         firmware_info = (union firmware_info *)(ctx->bios + data_offset);
>
> -       if (frev !=3)
> +       if (frev != 3)
>                 return -EINVAL;
>
>         switch (crev) {
> @@ -909,7 +909,7 @@ int amdgpu_atomfirmware_asic_init(struct amdgpu_device *adev, bool fb_reset)
>         }
>
>         index = get_index_into_master_table(atom_master_list_of_command_functions_v2_1,
> -                                            asic_init);
> +                                       asic_init);
>         if (amdgpu_atom_parse_cmd_header(mode_info->atom_context, index, &frev, &crev)) {
>                 if (frev == 2 && crev >= 1) {
>                         memset(&asic_init_ps_v2_1, 0, sizeof(asic_init_ps_v2_1));
> --
> 2.17.1
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ