Received: by 2002:ab2:f03:0:b0:1ef:ffd0:ce49 with SMTP id i3csp98625lqf; Tue, 26 Mar 2024 16:02:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJ40Sqb6m8rdIe3EPFdHagNNuEWQIWREHCpRrfdkEYv+HvrLh8j9CDQlahyUBRd56Z8Yr8DsWWtUBkt4a3qSojT2F2uSssBtAIHLFnyQ== X-Google-Smtp-Source: AGHT+IH+atM3T02XmgNA1r5imqVufoLT1H0yXd54jxy3Jo+EfDmRkAPQT1Of3gzRLmGlE4xWwhRN X-Received: by 2002:a05:6a20:7487:b0:1a3:c4d9:3e19 with SMTP id p7-20020a056a20748700b001a3c4d93e19mr9848735pzd.40.1711494135414; Tue, 26 Mar 2024 16:02:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711494135; cv=pass; d=google.com; s=arc-20160816; b=sXeJGnmOvHnZIOHwO7Kj1NYSfjIZnGk5QqMDYK/Na3mJZrJQ6nAwxG5Nd0xcL3hO5N VzVj90MzZ4QU6ATKK30dowhB+iEKuunSKWuixBVfOUXL+ZkXwbiQ99IrY7nsqy2I2rJn pLJkNwjrQuqtZOmv48niaPK16yU66uFcY1vK/DkX1bFBg7xlRPhUNo2ZnXeiAfIoe2uO X53elT/S49UxAioV6pFK4fA8viFwAVTa6/TK2QgCkhgmB1afvc9CWhOL8gFcEg44JaGW 9PjVnvayWZIzSqI5D7ZpXcKDKxUChtee2A98wgYqqtl67g/aq0FyKU/1aCIp0zH3PrTO ta3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=SPb4W3zmTJmepf8tk44EpdNmNnO7DpGL91012J8DkF8=; fh=cd2p+zMayyYFkf75JmPO59JvPlcu5RqKvQfmMiDQEdE=; b=nkzi787frATxEkQxmCNdniWFQ1b5eqUWq23u67sFog9QSB3Ul8I6wyWpM3Y4uLuvHM +2wEWzAWoRXtu56ZqQ11xdYjS+Bbhx9gIcRP3OqyKhZyR6b5Z7jkz5c9+LLCV/qVW2bd PXrHj81cJJHYnpH8vWpwMtBqcNhho6GdVVaiumA484DyPLvIPZNic/MAvNTL2jyKGURt 8eNNdejLPU0Fdc/eziIhgTeTq0y1npPQqjvDyah9A6QsNfLAvpFMMiTtOzZ6X9X9jGdR dmt11gmWo8jzUgF7JTNsHHlbXnyf8uJYZxBjrTtKZ+XCUL6LVTwelH9Kt/WFvde4OlVI maKA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=hS9m7+Y3; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-120091-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120091-linux.lists.archive=gmail.com@vger.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 mu15-20020a17090b388f00b002a08eef120bsi200146pjb.49.2024.03.26.16.02.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 16:02:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-120091-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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=hS9m7+Y3; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-120091-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120091-linux.lists.archive=gmail.com@vger.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 D3EEBB23FCA for ; Tue, 26 Mar 2024 22:45:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7914913E896; Tue, 26 Mar 2024 22:43:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="hS9m7+Y3" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (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 EB29938F86; Tue, 26 Mar 2024 22:43:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711492991; cv=none; b=bLK28pHihZdAROjjcZ1blzQ+5e927+1Zvo1j8l4KU6g5Ec1akJYh8flDLC32Zme9RF+sxAr0nmDCwr5OsNAlMd/KP1iGreJZLRXUspYRqg22lLcC+eRLQJR7A5LGgeGxqTImHZLxugU2uq7OsXT6PAtw2zAEvWagtkLME4eck6s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711492991; c=relaxed/simple; bh=GuyTOe7sfsFDL6EEc8g8HvzuSNvtqY2y8Bzhmb6nCxI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UYRPShfcU60oyxSd5q7iwRq4P/KAEmuAjQu9NyTw+qubX+x1SrCU1p5BYG5VBIu/58Y93sA4ZMWO/J2q4nxPX1Dt6gZSXGOWn6pPnIW0tuODyDu/up00ouVtDvZBUQ7/iwSmJHk5khznerFBDjcFmsUdLYFIeFwJVgHn6o7no5Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=hS9m7+Y3; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C4DB7497; Tue, 26 Mar 2024 23:42:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1711492950; bh=GuyTOe7sfsFDL6EEc8g8HvzuSNvtqY2y8Bzhmb6nCxI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hS9m7+Y387Lya0A9eZHtLKLH0rHZXo7KtngBEJ3GASXw3qRA8zl3/VjTi8FP7y2Ns 1TWjH4pZK/ftMHkZ1I+e3m98Hu/8MZyA77PTrLTAJQUOwMseJL4Ym1IamjiL8No0Bd frXsA6Fzbhtq1gh718SEqCrz2hSTclbXdzWdab/M= Date: Wed, 27 Mar 2024 00:42:52 +0200 From: Laurent Pinchart To: Arnd Bergmann Cc: llvm@lists.linux.dev, Helge Deller , Arnd Bergmann , Thomas Zimmermann , Javier Martinez Canillas , Geert Uytterhoeven , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/9] fbdev: shmobile: fix snprintf truncation Message-ID: <20240326224252.GB14986@pendragon.ideasonboard.com> References: <20240326223825.4084412-1-arnd@kernel.org> <20240326223825.4084412-2-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240326223825.4084412-2-arnd@kernel.org> Hi Arnd, Thank you for the patch. On Tue, Mar 26, 2024 at 11:38:00PM +0100, Arnd Bergmann wrote: > 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; -- Regards, Laurent Pinchart