All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil-cisco@xs4all.nl>
To: linux-media@vger.kernel.org
Cc: Arnd Bergmann <arnd@kernel.org>, Hans Verkuil <hverkuil-cisco@xs4all.nl>
Subject: [PATCH 6/7] media: cx18: increase in_workq_name size
Date: Fri, 22 Sep 2023 12:50:35 +0200	[thread overview]
Message-ID: <20230922105036.3148784-7-hverkuil-cisco@xs4all.nl> (raw)
In-Reply-To: <20230922105036.3148784-1-hverkuil-cisco@xs4all.nl>

Fixes this compiler warning:

drivers/media/pci/cx18/cx18-driver.c: In function 'cx18_init_struct1':
drivers/media/pci/cx18/cx18-driver.c:688:65: warning: '%s' directive output may be truncated writing up to 35 bytes into a region of size 11 [-Wformat-truncation=]
  688 |         snprintf(cx->in_workq_name, sizeof(cx->in_workq_name), "%s-in",
      |                                                                 ^~
In function 'cx18_create_in_workq',
    inlined from 'cx18_init_struct1' at drivers/media/pci/cx18/cx18-driver.c:724:8:
drivers/media/pci/cx18/cx18-driver.c:688:9: note: 'snprintf' output between 4 and 39 bytes into a destination of size 11
  688 |         snprintf(cx->in_workq_name, sizeof(cx->in_workq_name), "%s-in",
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  689 |                  cx->v4l2_dev.name);
      |                  ~~~~~~~~~~~~~~~~~~

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
---
 drivers/media/pci/cx18/cx18-driver.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/pci/cx18/cx18-driver.h b/drivers/media/pci/cx18/cx18-driver.h
index 887d2aa36447..af05bde75816 100644
--- a/drivers/media/pci/cx18/cx18-driver.h
+++ b/drivers/media/pci/cx18/cx18-driver.h
@@ -631,7 +631,7 @@ struct cx18 {
 	u32 hw2_irq_mask;
 
 	struct workqueue_struct *in_work_queue;
-	char in_workq_name[11]; /* "cx18-NN-in" */
+	char in_workq_name[39]; /* "cx18-NN-in" */
 	struct cx18_in_work_order in_work_order[CX18_MAX_IN_WORK_ORDERS];
 	char epu_debug_str[256]; /* CX18_EPU_DEBUG is rare: use shared space */
 
-- 
2.40.1


  parent reply	other threads:[~2023-09-22 10:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-22 10:50 [PATCH 0/7] media: string truncate warnings: fix low-hanging fruit Hans Verkuil
2023-09-22 10:50 ` [PATCH 1/7] media: allegro-dvt: increase buffer size in msg_type_name() Hans Verkuil
2023-09-22 11:55   ` Michael Tretter
2023-09-22 10:50 ` [PATCH 2/7] media: cadence: increase buffer size in csi2tx_get_resources() Hans Verkuil
2023-09-22 11:22   ` Maxime Ripard
2023-09-22 10:50 ` [PATCH 3/7] media: atomisp: ia_ccs_debug.c: increase enable_info buffer Hans Verkuil
2023-09-22 13:19   ` Hans de Goede
2023-09-22 10:50 ` [PATCH 4/7] media: vivid: avoid integer overflow Hans Verkuil
2023-09-22 10:50 ` [PATCH 5/7] media: ipu-bridge: increase sensor_name size Hans Verkuil
2023-09-22 10:50 ` Hans Verkuil [this message]
2023-09-22 10:50 ` [PATCH 7/7] media: rc: ati_remote: increase mouse_name buffer size Hans Verkuil
2023-09-22 10:59   ` Sean Young
2023-09-22 11:21 ` [PATCH 0/7] media: string truncate warnings: fix low-hanging fruit Arnd Bergmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230922105036.3148784-7-hverkuil-cisco@xs4all.nl \
    --to=hverkuil-cisco@xs4all.nl \
    --cc=arnd@kernel.org \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.