Received: by 2002:ab2:23c8:0:b0:1f2:fdbc:cb93 with SMTP id a8csp146845lqe; Wed, 27 Mar 2024 01:14:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnxw3k6TWfFmZWVc8cOlrp0xqMZQGv86Yrhqb6hswYynZSbmnnTIgN3quZWEZNjVqf4eljXmwTO3p4BEHaaMaBXtKm8uSGixiK+fHl3g== X-Google-Smtp-Source: AGHT+IH108IihHcDOJwrddppxAr6pcZSqQMnq6cjUdGIMqCeSE+dSur/tHfEmWuh7DuxrfHb3KtS X-Received: by 2002:a05:620a:19a4:b0:789:d43a:a6e0 with SMTP id bm36-20020a05620a19a400b00789d43aa6e0mr4307883qkb.14.1711527261918; Wed, 27 Mar 2024 01:14:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711527261; cv=pass; d=google.com; s=arc-20160816; b=Z3JyNiJQodO7ZL0hy++tcsc2hCOchqX8w76uszzgFT/LGg4gvtOan8i8deTPRqFFog eE56M+BIuVx/0Io3TNW3Y+nQ1T72w2+M9jWqvqfXt6paihFYD5F40TDdUOT3KxWpSVnD WYSL0ArFDjlW8km5ddLBhLPoQuz3+ZBM+kQtEpJSUTy4urDdmHJJdbnjrGLwlsEz4P1M tG9kHaZu8FL2YJpOCm7EK1UX6Mt7HBX+AyJm77lojmphMVM21y8+i0P9g6NtyJbV9Ouf QT5fWoH4fvhyLxviNZM4WmJL5y5s/K+LzBzkWB2YgRurIpHDWvfxTWwwRzo3Gn8knwLD sLAg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:autocrypt :from:content-language:references:cc:to:subject:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=yURPtcVZg1YfdN89pi22a9VWPyDqYm49v3p+PFgem9s=; fh=78Cf0cqTMdOP/jB0W74p1fPDNQm7bdiO7K6IPlVdDDA=; b=R1J8+O/1mBF8OZB0gb0MoEg4q28RHphX77THzP1FCfBVnK0AkU1MbqFMJPyvW+IbBX dQ7vvmvzKwdRRMHWVauOMeBNA4rzy+m7wpqRCHbJFm2+z0InQeqo40DyeOXAVXWFUnRu b/lzHzh/Sfcye080YctYAIjYNiMDHf+7KjO4clrh5eZQmA+uNg66K+5elakp9+XT6WDS BM/ORbxwlPa88WNd5EPY2Fkg077hvzkdEBm35RIMesSsM6T11Hd+h7fW11yKiACsVPlS A6h3u+PiQP+/zS3KmFqlSHm4gmW3GFQi5PtcSn8Ky95eY1hj+gW6ODIXNB88V14fBlFR J9Bg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=Mawn47hY; arc=pass (i=1 spf=pass spfdomain=gmx.de dkim=pass dkdomain=gmx.de dmarc=pass fromdomain=gmx.de); spf=pass (google.com: domain of linux-kernel+bounces-120507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u1-20020ae9c001000000b00789ee801c8dsi9236645qkk.456.2024.03.27.01.14.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 01:14:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-120507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=Mawn47hY; arc=pass (i=1 spf=pass spfdomain=gmx.de dkim=pass dkdomain=gmx.de dmarc=pass fromdomain=gmx.de); spf=pass (google.com: domain of linux-kernel+bounces-120507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 91FA21C26000 for ; Wed, 27 Mar 2024 08:14:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C3FAB2D056; Wed, 27 Mar 2024 08:14:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.de header.i=deller@gmx.de header.b="Mawn47hY" Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (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 52F702C6AD; Wed, 27 Mar 2024 08:14:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711527254; cv=none; b=RUCkH3KopeOUOCu5N0FNvXvJ1ckoJ9emaKoALtjTm8RW1J6gcQfL9hCqeHL2JJgqzt2XMBzSjUHfM9zVYosV2rCBx2Zage1x025dSnQQ7O6VgE6lK5wnSrr1OlBCSQroTQB6eTmGmiDXQuSqkLmMXh6H09tqRfxEiizPbFlyaqs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711527254; c=relaxed/simple; bh=CqkMA+lMjZOPJlgF/DafLECzWQuIokS7odHaJiZI3A0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=N/Sda/iI8kEnBcG6fA+HnlV1yFsqwFjoGFY+ldbB3gddgssCAWOuJctuAEQyofE0AbSjxu6XZgdIsn5HODtL9bt3sJQuPNxDskv2D3r8p8jnSOGPcezV5Y+PapVUNIaQBj3OTFONQ1cNe4JzlCrswuoVj4GWuP2ErmcACOjmGB0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de; spf=pass smtp.mailfrom=gmx.de; dkim=pass (2048-bit key) header.d=gmx.de header.i=deller@gmx.de header.b=Mawn47hY; arc=none smtp.client-ip=212.227.17.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1711527233; x=1712132033; i=deller@gmx.de; bh=yURPtcVZg1YfdN89pi22a9VWPyDqYm49v3p+PFgem9s=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From: In-Reply-To; b=Mawn47hY0h8XnZ2+IUYHSyJBveDvW8QSaxq9Rovw7VzjxJh3zpK1rttvbRj+T5Up RbaBssZrbQcsVyCQ2nfRBjcjl3ZhJ572P7aH0mgpK12bGNNi9ZsN2lXNsg7bTr1ce Sty7Crp3EfQJ3fnKiCwKIVP8HXU5abpU4CmSMGMvWQLkFS+UZi70wTnjRYlQEjnHj 0LJjqj1BozFti8muJAJpi3IGDug+XkBMcX52Vlk7CknOhBgAiYOkM1+8zqRJ++e/j 7z9ACiUOFZapk9NHlQHJuI9ossDguWIOW6z6wINAjWugGtPz7qi+bp+LvH5qQ0KmU Yvfi07VOXmWglAj0Vw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.20.55] ([89.244.187.174]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MybGX-1snOV21dkb-00yz9Q; Wed, 27 Mar 2024 09:13:53 +0100 Message-ID: Date: Wed, 27 Mar 2024 09:13:51 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/9] fbdev: shmobile: fix snprintf truncation To: Arnd Bergmann , llvm@lists.linux.dev, Laurent Pinchart Cc: Arnd Bergmann , Thomas Zimmermann , Javier Martinez Canillas , Geert Uytterhoeven , =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Laurent Pinchart , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20240326223825.4084412-1-arnd@kernel.org> <20240326223825.4084412-2-arnd@kernel.org> Content-Language: en-US From: Helge Deller Autocrypt: addr=deller@gmx.de; keydata= xsFNBF3Ia3MBEAD3nmWzMgQByYAWnb9cNqspnkb2GLVKzhoH2QD4eRpyDLA/3smlClbeKkWT HLnjgkbPFDmcmCz5V0Wv1mKYRClAHPCIBIJgyICqqUZo2qGmKstUx3pFAiztlXBANpRECgwJ r+8w6mkccOM9GhoPU0vMaD/UVJcJQzvrxVHO8EHS36aUkjKd6cOpdVbCt3qx8cEhCmaFEO6u CL+k5AZQoABbFQEBocZE1/lSYzaHkcHrjn4cQjc3CffXnUVYwlo8EYOtAHgMDC39s9a7S90L 69l6G73lYBD/Br5lnDPlG6dKfGFZZpQ1h8/x+Qz366Ojfq9MuuRJg7ZQpe6foiOtqwKym/zV dVvSdOOc5sHSpfwu5+BVAAyBd6hw4NddlAQUjHSRs3zJ9OfrEx2d3mIfXZ7+pMhZ7qX0Axlq Lq+B5cfLpzkPAgKn11tfXFxP+hcPHIts0bnDz4EEp+HraW+oRCH2m57Y9zhcJTOJaLw4YpTY GRUlF076vZ2Hz/xMEvIJddRGId7UXZgH9a32NDf+BUjWEZvFt1wFSW1r7zb7o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MJ2RTx8vGh7PssKaGzAUmNNZiG MB4mPKqvDZ02j1wp7vthQcOEg08z1+XHXb8ZZKST7yTVa5P89JymGE8CBGdQaAXnqYK3/yWf FwRDcGV6nxanxZGKEkSHHOm8jHwvQWvPP73pvuPBEPtKGLzbgd7OOcGZWtq2hNC6cRtsRdDx 4TAGMCz4j238m+2mdbdhRh3iBnWT5yPFfnv/2IjFAk+sdix1Mrr+LIDF++kiekeq0yUpDdc4 ExBy2xf6dd+tuFFBp3/VDN4U0UfG4QJ2fg19zE5Z8dS4jGIbLg== In-Reply-To: <20240326223825.4084412-2-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:9l8Ajuf8MU+eu7I7//8FmwZ6ItRejn74X3wHKuGH1DnsTKG9g28 d7T6Ams4vxLTSh+ZI6MjAxCYWTjTH1cdbcjgLxrPK7QtSNGF+in5moOFeLYAHsFYjuKU9YV ZJYPp1nASoImLtIP94azdyPa0QhR2WqHAsZRFfZ1MlY3cf3OubbwWWcpKUBoAsW4AXXOsK6 +s1l9HlTYT3OG4Cn4ervQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:7LvRfy1nIfA=;CBa9xFAMCzAR6YbKkRNV0nxjc6X nYq7Sa6RRrfq4q93XOxT+A5gpbKMMJEXefTZKQJJPymMAJK0UATQxkWncQa3c3ul3a5cDSq/D 47XpSpftyADDAdObbIA1yrarc5NEfr9tvBW8sMuGjTG7wpuLP4/C/TOYFE4F2z/mcGh2IRWu2 yYGAp8rI470OvTy2gdVJxy2iXrj8jcfmPSj/bo1VJrjY2CAYlQ9kxWMSkjt99Nu43sr+hU7ac 1vw3NRRakQDq9C6y3SX1muKsGMUvfBWDf20myW7jSY8Dau9uz02ICfzwaU0HSdhPkgcetrsIl LCRiQFHkfjp4uhJPEkZigB86XA2Q2Yh8NybEQeitTf67igSbVDXx0ys/qr9afEydXX+wCC7Ow 2TvgZGnlCyPg/MyRAGBUoZ+2UT/5enUM3fiwW11e0+VLHzXsXPby7U9yI0i1ate7LewzSbHpf xcPruFRP/Dx3McPsOkeJUlbgtvj8PVQaBhdpzIuD0qHdlzBh0kQkAxYEbIhrZ7WLU1pMDO0IE K7+9oAuEG6j3K9uUuraoy0DpB7kj8ASwi/zxpIiPy6+4SE65ojEJS0nAGZ/8j+G9BEGRvQYQy OcjjWrT8kpp07mtoGNKRGAZDdzqCz3UVgwGFjiUo3tiGG/DHvHilraRUy46TdwbZLmzBjjVw7 ds+f+0Rl/iVuq2THmihcjwdYu8T73Sro2SiMLxeFrXtBhKmINPKK3zNO4rYsmwvPD6tJEZuOX pry5J8Pwhh7ncbrlFKfrg1YntZWexpbMe7j8fuCruXxGNuGFUPURUWxZ0cCeXIjYObthR4a9X olBak6nfX2vx3BNuJAa6GX/zoCMAwA1BOx863fjvZhbro= On 3/26/24 23:38, 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 al= ways be truncated; specified size is 16, but format string expands to at l= east 25 > > Make it short enough by changing the string. > > Fixes: c5deac3c9b22 ("fbdev: sh_mobile_lcdc: Implement overlays support"= ) > Signed-off-by: Arnd Bergmann applied to fbdev git tree. Thanks! Helge > --- > 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/fbde= v/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_lc= dc_overlay *ovl) > */ > info->fix =3D 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 =3D ovl->dma_handle; > info->fix.smem_len =3D ovl->fb_size; > info->fix.line_length =3D ovl->pitch;