Received: by 2002:ab2:f03:0:b0:1ef:ffd0:ce49 with SMTP id i3csp93602lqf; Tue, 26 Mar 2024 15:47:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVurrRo2ibTzNGEYHtWuRhrtwb5esl58vnZb+a9ISrV2wRnXh/Di5fmCis5jYCPEAQGSWmnZjvkUWs7StFZKITeFT9uPIIFl4r4O6fMxg== X-Google-Smtp-Source: AGHT+IGb8v/8XqPS30ptpR0niNQMl51QQfY7fy+Bs4uefUNaY2SrpZxjp1KwGrmLd4ACpyUjFBDT X-Received: by 2002:a17:902:7b93:b0:1dd:7059:a714 with SMTP id w19-20020a1709027b9300b001dd7059a714mr1003426pll.30.1711493277807; Tue, 26 Mar 2024 15:47:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711493277; cv=pass; d=google.com; s=arc-20160816; b=esaPr7l/IsTdzIinV3zcNJcmBvSQ/F1Ka1VC6E38Jf5REdbqXVqohh65yGs393zofN cz5dRWhyA8k1NC26zAooJMOdkrvOPtLgA/H5aUjVCQwL5WYBTR8PDqUPI/LYqDuHNPCV Sp1WdrXBULp1hSX8ZsgHmpURoJF9lh8DIQ8DSjnZui1AEUjI8D7UsUNXWydznCS3kIVw 2U0Cb5a4IMPMvfzKguxj0VIM+/vuW5Z7OFOhnXef6PD9KWRkAZX+GernyoEmRQkqGSFg fote+sI35DixOTUNNYa9SSaFb9kuW7CH4x69t8f61+OsRgEkVYrHq6RpM+t5tBdee6rw tITQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=MQMwUbbuJ1KgTHVAUdbT6WDc/iNfCuHR2puGYAEmcow=; fh=1Xr+8nGGQEIuXKYy5wvBxdQsd5ofH0S04ZcMZ+ObPNk=; b=0TsDccuEEFToP7M2s8jNmzZp/M237B9rJW28ZtqHwK7ULbJ64ZgJiidA0uNrRY8Min oOJHbTgaxaQgiQKcsVLicYRVTPQBWUtOfMwyjmlz/a8wOcgO5QvQx7H+vfo397D0Lm3L zKedvCtb36T05t3IyQJwBX70TGW/qVcotwZ1l7Tq+2u+t3qJOmdBHNnUuTJf7J/hgcCn DggmnPbUQJntujFAMOWdqNaWNcKEP/ImJ1zGGlzGGkWihmbmoGh5ZUjnPh/AsbCk1uRi 98kVrqEZYUIpD94fUd7wzvqul70kGaE4BZdZgXPCMngbV1px9TxrrPKiBmssUwkM/xgc pcZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="k/LUR/oq"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-120074-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120074-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w14-20020a170902e88e00b001dcee30de72si7484996plg.616.2024.03.26.15.47.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 15:47:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-120074-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="k/LUR/oq"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-120074-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120074-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E20EFB25E54 for ; Tue, 26 Mar 2024 22:40:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 566F013E6B2; Tue, 26 Mar 2024 22:38:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="k/LUR/oq" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60C8513E036; Tue, 26 Mar 2024 22:38:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711492732; cv=none; b=oG+JQAi0bhdPJ2GP3XBJtliQsksNKRuAvXP9xdErTvbPZ3LgXmyrtI4CrBydmwRVhLLx/+lQ6E79CzTzkNRKL70XBHFqtzupAfYEpLFYivbzM45uMIwNqChA2n2C42R9L3oCZ05YdTtIqAanOUw7+LvlgLvVE/1Chm+7P4qJcgE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711492732; c=relaxed/simple; bh=4nCC9JNEj51O9TISVBwQcV6lR14jShr/2PiFrxb4DMw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Swv6qZiHkC65EjdYJJuma0hmDwwM2bnW/qKjvpsHWU8i9/tkc4a/E3hPTXW15c+7Qv3d7x0yAkfw3XSXGTaIvTIwnonG6uz41vyfOaWk2RLlCoA3uaiycf9TO95EmwU3zaMBjRpKE7hjyHYz/Z5BTQgjNmm49Xg8DTJIyFb2QIQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=k/LUR/oq; arc=none smtp.client-ip=10.30.226.201 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=20Kleine-K=C3=B6nig?= , 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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; -- 2.39.2