Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13569711rwl; Wed, 4 Jan 2023 09:54:19 -0800 (PST) X-Google-Smtp-Source: AMrXdXt/Kt0yJE5Gn3g/CefFCk1J/NS5qB7g+tL6NvxtQwO320MpZCS3XxtNgPRSyo0V6drHxCCJ X-Received: by 2002:a17:906:3a85:b0:7c4:f0b5:fedc with SMTP id y5-20020a1709063a8500b007c4f0b5fedcmr41085689ejd.65.1672854859599; Wed, 04 Jan 2023 09:54:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672854859; cv=none; d=google.com; s=arc-20160816; b=IKwD1YuMM/hwwoy0TfTEGqA/m+YItLS6tumKsJyCten9vtf24FXtFZ5Oxge2zvwRbS 83z08U6o9W/qFolqMJBFA2P/G0OkmToB+mOz8Z32CbWGuBkJuIy6KHsALjAJ9PlBwR2z TGp0BMiMWl0ez23LujhG8KFoLt5resZmy2Bq/qUxkSCSNBKAtkT/vYAylYTPlmV906WD ywi8rDiSNjY5Cdbh5lkaKN+D4HJKuMyfACBHoBA0ifkP1NTzmlHH+Jgp4gO9SBTq7Qy0 uJpQfRnSNFS2qQ8R4ePLhHMAxcfyONMKDlCkggonQWRCA07ZyVrHQb4HCUQk4vll4Ke2 IkrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Qcvt8eh5u3jiwS1uurMGyfwX+9LkSAcqQgzciAku68s=; b=hfK+Y+evdgnNCTx/KNiVmJd+yxOgAe4NUSNxBeXKFRJgVOLoclRR9bOK3bvu5Jz/Jn +3X5pNiRKc3Do1EqQX8m5zz9FSLmOBEwnxGQrq429emwbuvFd5/7vKQM+RF+XhGKIGpJ 9RJvsTOb2GX7j5y3BsmX1gbXOSCm0y05cSC/b/c4c/0tUWSyk2ehVxtFcfkss0yCHEk8 01HkKlVef6MrwFXb5ssB4neGTGZS0AhJCbV1WJ4HJsp198eaTS3OgRVDLDe4H4prwadS WRzPFn4sSRoMp9/htMA5LqDbDrSUClwQEV9rUx8rekkq3N93+QLPjaAbyGc8QvC+oznd pqPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="d8/9SpVP"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wy12-20020a170906fe0c00b0083ad85fbd63si29731736ejb.340.2023.01.04.09.54.06; Wed, 04 Jan 2023 09:54:19 -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=@gmail.com header.s=20210112 header.b="d8/9SpVP"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235317AbjADRag (ORCPT + 56 others); Wed, 4 Jan 2023 12:30:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231197AbjADRaf (ORCPT ); Wed, 4 Jan 2023 12:30:35 -0500 Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F35C15725 for ; Wed, 4 Jan 2023 09:30:34 -0800 (PST) Received: by mail-ot1-x32c.google.com with SMTP id v15-20020a9d69cf000000b006709b5a534aso21139806oto.11 for ; Wed, 04 Jan 2023 09:30:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Qcvt8eh5u3jiwS1uurMGyfwX+9LkSAcqQgzciAku68s=; b=d8/9SpVPU7WL3d9+TCOTqSUjTgV0TdrbEaPSgajJJe80tyjT9JW0e2ovpH1D5hQf1i 5y+NXU1Isls0KfGTP45/Bc1gYfX51BRNOG8drqyq7w5WV5fJ9ACZ6A4CqWZ6De16gTtZ 1wX3nWw4VyjWp8yTViHWaQqCLamPkidvDtHj12/uYbZfqkLGaPzhuN0EK2ZeCkrEbn4O yUmTbpQd+Mb02PZLFPuxCvjfxGnsvGPshMhkt2sq5J+yVlAx4sBU5ONIL8EcrFPcWFQz uZoChbKguX9jiIybrGeu2LdLadfMcXpwsmEtHw0Kx+t7Sjr5VihhAp0X4D/cIyBtqqC+ pbbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Qcvt8eh5u3jiwS1uurMGyfwX+9LkSAcqQgzciAku68s=; b=eQGMXzcIevtWMQSvsdjr4LRcvF/aH1rdanVxR8gZlVFjfEmxnq4SktVGLdrjUliluY uEmInJdxyXrwXra4ozL0NCzCVNBqBbdokFWy7Tzoc7844E460+cgMZacJsEh1+UJKIam VNE17uLhes+1SdprddkH0LJxJJuUUF4UPO1vkvb6CVYb7iOKu3SX39chFv2Z3gioq5Oh gg12coXQ3RoGxeGKdJZt1jAWvKq4hpoBUw8WQzzS8HsD+GocOwaGolBB3Arh5Qhyn5fD wyDfHhnrr3u/N4cYN3hklAe/32RBbDTDbLNdIgr24TdsY5ri4zhJQ7RjYTK4erni07GP wBCA== X-Gm-Message-State: AFqh2krfCKJDO8udm+4bMw/+x7E5jcZi5J68ib/CdOd2YbfwPvIDoXg4 IycMFAO5uDF/+qteiIIQzRcXfkz8jqcx12V8Tek= X-Received: by 2002:a9d:6ac6:0:b0:671:cacb:681f with SMTP id m6-20020a9d6ac6000000b00671cacb681fmr3039203otq.233.1672853433856; Wed, 04 Jan 2023 09:30:33 -0800 (PST) MIME-Version: 1.0 References: <20230104164042.30271-1-mario.limonciello@amd.com> <20230104164042.30271-46-mario.limonciello@amd.com> In-Reply-To: <20230104164042.30271-46-mario.limonciello@amd.com> From: Alex Deucher Date: Wed, 4 Jan 2023 12:30:22 -0500 Message-ID: Subject: Re: [PATCH v5 45/45] drm/amd: make amdgpu_ucode_validate static To: Mario Limonciello Cc: Alex Deucher , linux-kernel@vger.kernel.org, "Pan, Xinhui" , Lazar Lijo , Javier Martinez Canillas , dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, Carlos Soriano Sanchez , christian.koenig@amd.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Other than the patches I commented directly on, this series is: Reviewed-by: Alex Deucher On Wed, Jan 4, 2023 at 11:45 AM Mario Limonciello wrote: > > No consumers outside of amdgpu_ucode.c use amdgpu_ucode_validate > anymore, so make the function static. > > Signed-off-by: Mario Limonciello > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 +- > drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | 1 - > 2 files changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c > index dc6af1fffdd9..b759a4300d7a 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c > @@ -504,7 +504,7 @@ void amdgpu_ucode_print_gpu_info_hdr(const struct common_firmware_header *hdr) > } > } > > -int amdgpu_ucode_validate(const struct firmware *fw) > +static int amdgpu_ucode_validate(const struct firmware *fw) > { > const struct common_firmware_header *hdr = > (const struct common_firmware_header *)fw->data; > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h > index 7fd2f04f7f98..28fc2960edfe 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h > @@ -543,7 +543,6 @@ void amdgpu_ucode_print_rlc_hdr(const struct common_firmware_header *hdr); > void amdgpu_ucode_print_sdma_hdr(const struct common_firmware_header *hdr); > void amdgpu_ucode_print_psp_hdr(const struct common_firmware_header *hdr); > void amdgpu_ucode_print_gpu_info_hdr(const struct common_firmware_header *hdr); > -int amdgpu_ucode_validate(const struct firmware *fw); > int amdgpu_ucode_request(struct amdgpu_device *adev, const struct firmware **fw, > const char *fw_name); > void amdgpu_ucode_release(const struct firmware *fw); > -- > 2.34.1 >