Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp166831rdb; Thu, 24 Aug 2023 02:23:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEpM/Gmm6IBTdsJRWc53/kLlNI3ItaIi0ndd0xFI68jekAKl0Qx2KXZgmb/YW9l8ftmIbnL X-Received: by 2002:a05:6a20:7485:b0:123:828f:68c with SMTP id p5-20020a056a20748500b00123828f068cmr14962292pzd.50.1692868998086; Thu, 24 Aug 2023 02:23:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692868998; cv=none; d=google.com; s=arc-20160816; b=wqErQdaSamNBxxdDYPTwOTUPlLAuavL+yxM+Es86U+SP2Xf/O8JzaUf5RTNCoc1z4c QWKRiq5ixNYCIw7qq7scxc+v9apaNAUsgEAH/yppKvh+4sJDqI08i7BB2uzSWuWauEn0 6Hc619bcvPoz54uQDJuyClSekAV1wLO8pu7a0SHAslAYZrcdtOk9JTZmkggMSZ/M3BHi YYldcLsAr8xwYf4Bt0JQEEtkuDT36tnVw5ZFtg9EWnooVroDGyuQIHL8lLp2Jn7uzttI kDeZ2WfKAjLMXXRZnXhKV3bDqykaIJR/FYqYePw6CfQHtW4mhqHGQSpuuX7kSBY+teuZ gyXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dk5+lJ3x2yv+gwreApek7tcbGVik5kWugdW+jY7b7mo=; fh=298adJcSctT4EOwDbSq5zOdpAiXL8EXhIghUT6Avl6M=; b=bfZPkUmw5bG/VxeRhEoIUPeLDu1IFZ5i1sNnp96nvrIL1sHk51u20azzT03VTxXP4c vHH30x0kKrrFwyByOctPvpa0y9X2LRBwwsTO9mB6fsW3PyW99GWtPnVW+D1fZzqwvKmi SAjJUg4EjRAzpH7BOxuBFAO0rHqR8NBwRLHNYkgv0kupRpTdHVRuUFyCjsGAw9dQG+zy +iDgBqcaZ5tjsl+AjP9CtX5u8pkjlWm57H59h+VEJhdOELMMspIoIUzMNsJcf+Dd13Nl ZTROb/qukS7inhmyE+D6RRn4Dl6pllLuH7OJs3NEnxEeYy1AslXHmVPmMp5kaul1sb5V lAew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UupkmrNO; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q2-20020a656842000000b0055ba8970e7asi12391112pgt.616.2023.08.24.02.23.05; Thu, 24 Aug 2023 02:23:18 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=UupkmrNO; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240418AbjHXHi4 (ORCPT + 99 others); Thu, 24 Aug 2023 03:38:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240455AbjHXHic (ORCPT ); Thu, 24 Aug 2023 03:38:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D78131705 for ; Thu, 24 Aug 2023 00:38:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7376565E0A for ; Thu, 24 Aug 2023 07:38:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F1D2C43397; Thu, 24 Aug 2023 07:38:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692862703; bh=+Z34z/S8rQGwpCMx4NBHY18dHHBoGvStdyvTsjgtCck=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UupkmrNOgh56ldj2NhYcCjaK1ekkrhSYtHSJIKSrt3GsYyG5hKKb5RRUL6pjUBcTD hnEigFUDoyrGQYGMEqaKzFmqGmV6ZKZBNt76OZ7j7vFcrIS4SXWyKrZywfplNEDSju n9dDf3ngrL4Hc92XMBk83IyuckgsT9x1WUBcJesAQ1rv2Zobb/RtAbygYXM0Qv0vIX 2owH56tvoMH1fQTTNeQiNaGzXzFaAWM3ltAhydf57y8UsxDB8eGhiCzOStjL30OA4Z g64pgZq98rjhAAV7VpMbjGxfoUeW3SpL/e/YcHS0GeK6+KrGeaY2mQzCxZ039TeN/F 7LJndWX7fhIXA== From: Lee Jones To: lee@kernel.org Cc: linux-kernel@vger.kernel.org, Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Mario Limonciello , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH 20/20] drm/amd/amdgpu/imu_v11_0: Increase buffer size to ensure all possible values can be stored Date: Thu, 24 Aug 2023 08:37:05 +0100 Message-ID: <20230824073710.2677348-21-lee@kernel.org> X-Mailer: git-send-email 2.42.0.rc1.204.g551eb34607-goog In-Reply-To: <20230824073710.2677348-1-lee@kernel.org> References: <20230824073710.2677348-1-lee@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/imu_v11_0.c: In function ‘imu_v11_0_init_microcode’: drivers/gpu/drm/amd/amdgpu/imu_v11_0.c:52:54: warning: ‘_imu.bin’ directive output may be truncated writing 8 bytes into a region of size between 4 and 33 [-Wformat-truncation=] drivers/gpu/drm/amd/amdgpu/imu_v11_0.c:52:9: note: ‘snprintf’ output between 16 and 45 bytes into a destination of size 40 Signed-off-by: Lee Jones --- Cc: Alex Deucher Cc: "Christian König" Cc: "Pan, Xinhui" Cc: David Airlie Cc: Daniel Vetter Cc: Mario Limonciello Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/amd/amdgpu/imu_v11_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c b/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c index 4ab90c7852c3e..ca123ff553477 100644 --- a/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c @@ -39,7 +39,7 @@ MODULE_FIRMWARE("amdgpu/gc_11_0_4_imu.bin"); static int imu_v11_0_init_microcode(struct amdgpu_device *adev) { - char fw_name[40]; + char fw_name[45]; char ucode_prefix[30]; int err; const struct imu_firmware_header_v1_0 *imu_hdr; -- 2.42.0.rc1.204.g551eb34607-goog