Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2799507lqp; Mon, 25 Mar 2024 09:29:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOrEF1hL1nsPuWWwVOnBhDMNloQ+bMUWNKeAwJmIGPAXgUBxwld08t5GyD7nZ1CvRFl51Ky6W4U25C63CqNOmX/5ATCg1VA4J+16be/Q== X-Google-Smtp-Source: AGHT+IGFqV5GyW6KWfhsyvPQgIlmUA89Om5X316DrbdAFsik4jU0vkgHhIu5BilvtDCoLoQCX04j X-Received: by 2002:a05:6214:b6a:b0:696:8bde:77d1 with SMTP id ey10-20020a0562140b6a00b006968bde77d1mr4499750qvb.23.1711384193628; Mon, 25 Mar 2024 09:29:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711384193; cv=pass; d=google.com; s=arc-20160816; b=FiD92SabYE3ueNcK9GkFQwhKxKKPHHc1USpLdsL9Xp5F7fU0VFpO+ZDHbg5dnfErEu x2LRaeF/CGCUTrR6tjBxTz+di6YpBWgk4CLeQwAMK3txG3jRbTgskh6wGlBjsSNYDZzT f3lrztB/fa+0jG21wXc3Ln0VgbLg8M6qkXLcLRgib+B2z28sdC2kuXk2vz6Q3ubKTZoK qnx4tdiM/zJLzBh2HHXRjLUaWQsqICD8ualo+epluHftPN3aGFPbuiA+4L8TsAzas9ED Zat7WzuA9JAIlvs2J392v1X0eUrkno/P3z0m/OPDSHV6ci7SWaSpYAC/OMbbhu66qBnw qZNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=n8QTboKNFlxJkYJ1An2aW3V7umhSjhO/WM5O6LoVCcU=; fh=Qk5m2jpanXodzKF9i5WSUmu5xiLgL3iTraeY16tsFA0=; b=04/kJYTG5o6q0VrPo3JPFH+YImS/2RHQBxxsbjrDo0cQfYfNKQdL8ZyZsLZHhodVF9 Z6hEKj5llLYO1OthzGzrvEGaA2QoJa88dHHB8kFaC5VKRkeUSab92GeODGN6DZ8r/o51 pP61gP4Pgn2A/7aMcv2ZA0PQfeG8zzxkvjpJ3g602dk7iOkOJUyWd5KsOAd9kiwqKfuM TqOaCqKtOouRC9McwHiuO441+AIbqPpZoay7CG3b+gj0RgkLwE3kjYQgPEjVJHpWrecf akSphKJjpYROfrlgjRd1IIQ0bQ/yi3Uz1p4xGGG/nmThKmRm/5nungCrSJb02gMAJaza jQlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jhgXM9I2; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-117236-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117236-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ke4-20020a056214300400b0068f08c94871si7775667qvb.513.2024.03.25.09.29.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 09:29:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117236-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jhgXM9I2; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-117236-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117236-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 85FC31C63F90 for ; Mon, 25 Mar 2024 16:22:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC0D0154BFA; Mon, 25 Mar 2024 14:20:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="jhgXM9I2" Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D4CB12F5AE for ; Mon, 25 Mar 2024 14:19:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711376399; cv=none; b=L9L8nBZOP7NfU8jI8Zr96y+44wGuNmQpspSn8HLSh3DIdzKZTTZfc/0Gn4E9oF/6Dwu/qVTfsTq2PrFD2ee4+XZf9L2M/Kuoap/m28fzq6C+1xIvaMYjgv1KNO+MkVpbfu0T6SqYkHpJpJbI5TBPKbqY73QFq51gvaUbEDXDr6U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711376399; c=relaxed/simple; bh=2dAG+Jyz81+oh8AF6DeyE+UyRu22SiDEL635nHH+73Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ghv0o6X6rJZ5FnDweeKsFPBe2P8+u6xHute7fsla9cmiO+dtT2HSU94RwtYPBqWKp8PMpzFtqr9yfxXKxc2Mh5ua8DDdJGtAh/y/Uxes/ZMthpEGgi9hwoNEKF7OZdS7HQtEY7Bp90nyvArF3gtzuphNrK4CQLbIOEUwR993HQQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=jhgXM9I2; arc=none smtp.client-ip=209.85.160.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-qt1-f173.google.com with SMTP id d75a77b69052e-430c76fbf05so28914481cf.0 for ; Mon, 25 Mar 2024 07:19:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1711376397; x=1711981197; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=n8QTboKNFlxJkYJ1An2aW3V7umhSjhO/WM5O6LoVCcU=; b=jhgXM9I2GEmuSskr4OtEtPiiHHwjP90lmyWP1L3famVlnG1OyJVtBN7ClIVAram9OQ HOlJyC+Y6G3ZdIhk2nxfEIbE+sesdqx+F9GQi6LE2nIGu4p656yElb5XFvCVnAQiPWg0 6L4Wa8MnSHZ5qHw3EeB8wso5H7ch8B+ZoA3X8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711376397; x=1711981197; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=n8QTboKNFlxJkYJ1An2aW3V7umhSjhO/WM5O6LoVCcU=; b=M27qF9bFWEWo4YD3Z3pWYk325bBYXGAXXMjXJXcPsqhaSHFS0z8EXdnEXNZNKQchtg uHNPmj4c7fPp1en7gs6BX0iDSQqKgSbe+NVIa3o2EaDW3taRC/bSLzUJMtcbdwhEP3ND 0XCzJ5D2ohNIp6NKZxkzPA2YURNd7SRx8wliYhYUAr2dpQnX90CvYScls+22am6SpwsU zyr48hzr4DoDpCcTXqu9QUMomenyrvTI0f3biqlXKOCmATtaEfT9Kn3kLLaqCOnN+wsS w1uxG3J0sWZ2RrzE0468Qhel8yMfg49XVQvS6cYoSK5Wd7QQJ3KG9nau/BpjHrAUBrF6 PNoQ== X-Forwarded-Encrypted: i=1; AJvYcCVP4nQcBilKLSDPjASkx5NmtSEKqkmkTXIf6fmcRVmhtjJBwjIPvZQPB49JrtIJpjPiGLVU+V/U9CGslEwd9mV/bMk/823TmTf6SKOx X-Gm-Message-State: AOJu0YxIw2LaVXOcMmQuvSwricf7pdEPMlaZVegdArXXW+z3ctFirPWQ DAH4VOE9RbMsmWjdzygUxiTAAf3lw6pXxR0fRwnBloUYSgmlxHC/A284Qx1I4Q== X-Received: by 2002:a05:622a:652:b0:431:4905:bb79 with SMTP id a18-20020a05622a065200b004314905bb79mr5865639qtb.41.1711376397204; Mon, 25 Mar 2024 07:19:57 -0700 (PDT) Received: from denia.c.googlers.com (188.173.86.34.bc.googleusercontent.com. [34.86.173.188]) by smtp.gmail.com with ESMTPSA id br11-20020a05622a1e0b00b00430a9b20a55sm2618759qtb.69.2024.03.25.07.19.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:19:56 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 25 Mar 2024 14:19:54 +0000 Subject: [PATCH v2 2/3] media: radio-shark2: Avoid led_names truncations 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-Transfer-Encoding: 8bit Message-Id: <20240325-gcc-arm-warnings-v2-2-47523cf5c8ca@chromium.org> References: <20240325-gcc-arm-warnings-v2-0-47523cf5c8ca@chromium.org> In-Reply-To: <20240325-gcc-arm-warnings-v2-0-47523cf5c8ca@chromium.org> To: Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Luca Ceresoli , Mauro Carvalho Chehab , Greg Kroah-Hartman , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Ricardo Ribalda X-Mailer: b4 0.12.4 Increase the size of led_names so it can fit any valid v4l2 device name. Fixes: drivers/media/radio/radio-shark2.c:197:17: warning: ā€˜%sā€™ directive output may be truncated writing up to 35 bytes into a region of size 32 [-Wformat-truncation=] Signed-off-by: Ricardo Ribalda --- drivers/media/radio/radio-shark2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/radio/radio-shark2.c b/drivers/media/radio/radio-shark2.c index f1c5c0a6a335c..e3e6aa87fe081 100644 --- a/drivers/media/radio/radio-shark2.c +++ b/drivers/media/radio/radio-shark2.c @@ -62,7 +62,7 @@ struct shark_device { #ifdef SHARK_USE_LEDS struct work_struct led_work; struct led_classdev leds[NO_LEDS]; - char led_names[NO_LEDS][32]; + char led_names[NO_LEDS][64]; atomic_t brightness[NO_LEDS]; unsigned long brightness_new; #endif -- 2.44.0.396.g6e790dbe36-goog