Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp302340rdb; Thu, 24 Aug 2023 06:43:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IENSXVSxWepZ4t5Crysr8MA1RvV1Uf9xXf3yewFXsbXjv+xpRt5ayY17yqsAkUh5p8hx4k/ X-Received: by 2002:aa7:d69a:0:b0:522:57d9:6553 with SMTP id d26-20020aa7d69a000000b0052257d96553mr14201488edr.1.1692884623556; Thu, 24 Aug 2023 06:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692884623; cv=none; d=google.com; s=arc-20160816; b=cgwrz0W/0bsMs+REUxcvHUK4/BSuTfbIqsFnjmKbu/4rf1XBNjBR/ynyKdQTYQXaW3 svZE35VDlZG/F+PGFOv7Jfuo16IA6P1XqCzRJk5wnHyGRVBswENWJ/G8uaGvUJmZeWJP vJJ2soAvhr+wFFxG0nMYXDRslpCGsOtEq8z8dcr0DUMoyYjHVb3yfn30/K4o9DJ8LHQP BEw3qBGuvO4NoOKx1w2cwxG9R4igYiKuOzglGasFik9u/K3xCa+bE53ldYiJScQ/dNAA OzM0bjenf198bqftACYDYXsK0p47D+vlMwx+iMJiPXiIysyn8clVS4k26FfsWClDOQPQ 28pQ== 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=59XgVwyZSamedtmYX6vgLWnf5qZha8KKBQlSca59zIM=; fh=JgZCfMo72h3F81GXHGsQiZcs+OuvCH2Pz4c9ulZDUAg=; b=YAGh9gDjNbT4SQ1G9XaW6l5S8fL04HMdSVywB1kLJUJsT8DBIEY7DARMM597CLn2kg 6hYII6Vv+UZ7C0Znf17XwqfEit4X/I/wZJSuOAjgBcGoCteAVQpsGrc+lgW0gQ1lGk5Y QITbA20zppyZx8cuiGXYTitfU1U8sb3C+xMSQ1uF3PNfvEZRo6QRUSu0zC7/Aq6X4ndz ugDcZcxtT4KqkNITa/FIJjgWj15Ac6ftkCP8SFNg5y6cO2gAumniHw8FK+TZ5giYmQTK 2YfcxvvyCGJ7F5NwYtizzQvwVp/RW7jggSPsdPjET518NqdZ8J9qnhPsSLxFlF8ekgYx E8kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MdYAOt3x; 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 x19-20020aa7d6d3000000b0052363eee9easi10259065edr.295.2023.08.24.06.43.18; Thu, 24 Aug 2023 06:43:43 -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=MdYAOt3x; 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 S234585AbjHXHit (ORCPT + 99 others); Thu, 24 Aug 2023 03:38:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240354AbjHXHiR (ORCPT ); Thu, 24 Aug 2023 03:38:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4AB110F7 for ; Thu, 24 Aug 2023 00:38:15 -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 6B3DC658E8 for ; Thu, 24 Aug 2023 07:38:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95478C433CC; Thu, 24 Aug 2023 07:38:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692862694; bh=80DhO1S3sF1BIZV94LCoe8Y0glyR6Eq4m/W3GG03lhI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MdYAOt3x5bIFGk28KKdnxKbh+kGPhHh60bkIKzpksJYyOLUKw2A1yO0oaPZfkF0Xj KN/dHWFrQppoB82d2dD2yAvPz/pxA5kNdcOzT/yn0KsPTwgf+F2MmFQNV5uUkbS1Gn TGKIkobVYCrHkXU6si5gmVjEOIehdCmv0ZlK7zsqF/ZhfC65mLef33db4K2NW0VLyw 9m9Gt4gTuv/WOzRHokUr3+A4kkH23VI3Aqp4D2kAQo5/HCa8KNWMAbfh2qAR6d/oNQ qFtu3IfYp2IFz51LxpmzlDj1+90Yb+5S2c3gWGOgK5W+2czqmbbbbwixuP60o2CH0f XhBi3QOs9EbCg== 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 , Hawking Zhang , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH 17/20] drm/amd/amdgpu/amdgpu_ras: Increase buffer size to account for all possible values Date: Thu, 24 Aug 2023 08:37:02 +0100 Message-ID: <20230824073710.2677348-18-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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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/amdgpu_ras.c: In function ‘amdgpu_ras_sysfs_create’: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1406:20: warning: ‘_err_count’ directive output may be truncated writing 10 bytes into a region of size between 1 and 32 [-Wformat-truncation=] drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1405:9: note: ‘snprintf’ output between 11 and 42 bytes into a destination of size 32 Signed-off-by: Lee Jones --- Cc: Alex Deucher Cc: "Christian König" Cc: "Pan, Xinhui" Cc: David Airlie Cc: Daniel Vetter Cc: Hawking Zhang Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h index ffb49b2d533ad..7999d202c9bc5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h @@ -436,7 +436,7 @@ struct amdgpu_ras { }; struct ras_fs_data { - char sysfs_name[32]; + char sysfs_name[48]; char debugfs_name[32]; }; -- 2.42.0.rc1.204.g551eb34607-goog