From patchwork Tue Mar 26 22:38:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13605196 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F0BE6CD11DF for ; Tue, 26 Mar 2024 22:38:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2DFD510F429; Tue, 26 Mar 2024 22:38:55 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="k/LUR/oq"; dkim-atps=neutral Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7ED4510F429 for ; Tue, 26 Mar 2024 22:38:53 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 3B79661468; Tue, 26 Mar 2024 22:38:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47888C43141; Tue, 26 Mar 2024 22:38:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711492731; bh=4nCC9JNEj51O9TISVBwQcV6lR14jShr/2PiFrxb4DMw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k/LUR/oqbtEkuUoncQuFcPdUw5/uxbCSh0bFFQnRKFjigKDiszTEbBDb+qjLiZXXp 2SwD3bE1AvuzrVMBo2KWNyixEB9LpC/El3pI5AU0Gni7TaYhbmbkpPK3ilagc692dK i6EI0Zs+1acBigkxU+CS/RAg+An/og+Hcl5bpq8Z01Qzy8xFI3c/tLRuUcwSICwWK/ +6Rkfp8kFmUSJSQjg6xnx123kva6GTdzpJnGOrpu7mC3Ub9DKIO9YOnVFz6ElxnQJb a6DOD91Va4VJijxQ/SBALRYhysYeYYZ7X5QeDgscMrS/Exg1a4vXEVYXtpscmsm4+X d5mED56x4rujw== From: Arnd Bergmann To: llvm@lists.linux.dev, Helge Deller , Laurent Pinchart Cc: Arnd Bergmann , Thomas Zimmermann , Javier Martinez Canillas , Geert Uytterhoeven , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= , Laurent Pinchart , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/9] fbdev: shmobile: fix snprintf truncation Date: Tue, 26 Mar 2024 23:38:00 +0100 Message-Id: <20240326223825.4084412-2-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240326223825.4084412-1-arnd@kernel.org> References: <20240326223825.4084412-1-arnd@kernel.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Arnd Bergmann The name of the overlay does not fit into the fixed-length field: drivers/video/fbdev/sh_mobile_lcdcfb.c:1577:2: error: 'snprintf' will always be truncated; specified size is 16, but format string expands to at least 25 Make it short enough by changing the string. Fixes: c5deac3c9b22 ("fbdev: sh_mobile_lcdc: Implement overlays support") Signed-off-by: Arnd Bergmann Reviewed-by: Laurent Pinchart --- drivers/video/fbdev/sh_mobile_lcdcfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/sh_mobile_lcdcfb.c b/drivers/video/fbdev/sh_mobile_lcdcfb.c index eb2297b37504..d35d2cf99998 100644 --- a/drivers/video/fbdev/sh_mobile_lcdcfb.c +++ b/drivers/video/fbdev/sh_mobile_lcdcfb.c @@ -1575,7 +1575,7 @@ sh_mobile_lcdc_overlay_fb_init(struct sh_mobile_lcdc_overlay *ovl) */ info->fix = sh_mobile_lcdc_overlay_fix; snprintf(info->fix.id, sizeof(info->fix.id), - "SH Mobile LCDC Overlay %u", ovl->index); + "SHMobile ovl %u", ovl->index); info->fix.smem_start = ovl->dma_handle; info->fix.smem_len = ovl->fb_size; info->fix.line_length = ovl->pitch;