From patchwork Mon Oct 28 15:59:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Young X-Patchwork-Id: 839508 Received: from gofer.mess.org (gofer.mess.org [88.97.38.141]) (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 4DE421D9324; Mon, 28 Oct 2024 15:59:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=88.97.38.141 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730131181; cv=none; b=TX5p8BLt4PZifqJ4hhG6Jof7m49GmT38i+7JUz5YLZuH7iQPBkbOxWx2DxYMNmJReUkCdAsOCXPUEh/mVya/RJ5X4t57ivZUUXBI2WqIdS0UY6xqaYjWe11OGyZYGOqhe6sE0GfWRlf6Pl1/N+RbBtAkGn2uciFaoqJkQW3rl7I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730131181; c=relaxed/simple; bh=Z9XIvNhKb8BTGDUotNuKp2+dof/J9UUkLQozerD0tEY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kL09z08u11VeoG0ezwASLWoBKDhbFXAPlDkTGqgN3dIBDSURA0ijQK51wdpK+eQbRSA09SkevXvlvKzUkSmuDT/VYhentT2AhLeDsce5y5HpP7+bePBF/hsFP4fHWCypqKsFkwirGWu/7OoU3kLi/1iAZEuwecpXCPZOEhUplNs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mess.org; spf=pass smtp.mailfrom=mess.org; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b=NMwJ3HrS; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b=seWpQ1BR; arc=none smtp.client-ip=88.97.38.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mess.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mess.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b="NMwJ3HrS"; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b="seWpQ1BR" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mess.org; s=2020; t=1730131177; bh=Z9XIvNhKb8BTGDUotNuKp2+dof/J9UUkLQozerD0tEY=; h=From:To:Cc:Subject:Date:From; b=NMwJ3HrSt3OLVlyglfwaJuRhzbE82zIafCEaIOBWgOV5qLbwGXrQ3oEBN7HcqRL7o Abw3U5NYfgFb8xTUowfJuLTtWzA07+vzGX68W+kpEvThK/3gJtoN0uQg0WnGnwgzc2 r5V9FTK19lWUp7RnDEwJ7yuZkVJoBgMB8ejV0cYQnSzTfTuH+DquSe9zVdKGqDWz9Z h69hHiHkov/57dP98TQATc/qBikWc22fFxlr50teMIvzRKh/Geb2aTUq3Jw2qtTnIk WggQRUkJTfjXQp8NppuIS+gJVMwOwMXZkdZIXX9te2sWG9kPQyB8TnVcP1z2ylUKhy 4aoXkQFRYdC0A== Received: by gofer.mess.org (Postfix, from userid 501) id 6077E1003C0; Mon, 28 Oct 2024 15:59:37 +0000 (GMT) X-Spam-Level: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mess.org; s=2020; t=1730131176; bh=Z9XIvNhKb8BTGDUotNuKp2+dof/J9UUkLQozerD0tEY=; h=From:To:Cc:Subject:Date:From; b=seWpQ1BRGZdFVSBSpBQQYEQwBrUuuxNgB8xsLn8j9O8mrUrSc87hVSEq1JTU0FzEx k3gc+vBN+kwF5HC1HYrFiXzFZZ4wvO+SPw8MBFkIy4iSW+xBIKp56irLXFNC0EYb+G 19P5KOhxN4nfi/d+VnJta6qEUZIwZuv+BNz0gRswNdhr0Mw0KbbbzF0WX49eQky4B3 jwzPNic/ShYUbDQWz3HzOryAze0g/YgoCzUw7JDHzamljxRDaUSXUAVVDjUERfJGWd +IXdkagW0cjE44s2CnoXdZyTmvR090Nu9aruSprvmZPZAFKl5chRC14c+hVhPyB8B2 jLO6gLjsWajag== Received: from bigcore.mess.org (bigcore.local [IPv6:2a02:8011:d000:212:bc3c:1b4a:a6fa:362f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by gofer.mess.org (Postfix) with ESMTPSA id 3D2EF1000B2; Mon, 28 Oct 2024 15:59:36 +0000 (GMT) From: Sean Young To: Sean Young , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] media: mceusb: don't push static constants on stack for %*ph Date: Mon, 28 Oct 2024 15:59:26 +0000 Message-ID: <20241028155927.72244-1-sean@mess.org> X-Mailer: git-send-email 2.47.0 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 There is no need to pass constants via stack. The width may be explicitly specified in the format. Signed-off-by: Sean Young --- drivers/media/rc/mceusb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c index cd7af4d88b7f7..d5ea3868d5a3c 100644 --- a/drivers/media/rc/mceusb.c +++ b/drivers/media/rc/mceusb.c @@ -658,8 +658,8 @@ static void mceusb_dev_printdata(struct mceusb_dev *ir, u8 *buf, int buf_len, if (len == 2) dev_dbg(dev, "Get hw/sw rev?"); else - dev_dbg(dev, "hw/sw rev %*ph", - 4, &buf[offset + 2]); + dev_dbg(dev, "hw/sw rev %4ph", + &buf[offset + 2]); break; case MCE_CMD_RESUME: dev_dbg(dev, "Device resume requested"); From patchwork Mon Oct 28 15:59:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Young X-Patchwork-Id: 839257 Received: from gofer.mess.org (gofer.mess.org [88.97.38.141]) (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 E589C1DE3D1; Mon, 28 Oct 2024 15:59:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=88.97.38.141 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730131181; cv=none; b=Vz75H/170FqKxU+WuKUuKJPdrT2QGNueN4I7KIZfSCvdsq5R6oUy/kyJIHdLWlM3qc4P9LWNJMPWF2UWcHQ5qpPmOqL+wGH+cFGvRgqfStMsLaqsf504o5uAYSbjUvFa9SmrSC8LmUIuj3BeufUKpn+AUe2W9MRGM+HbvRiRm1c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730131181; c=relaxed/simple; bh=A4fn+MwxNpxbrPpipnj6USOH52311bFO1tee+DqBA7s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mH4tpctCnJZlQ2QyyAK1qp1zf9KJ0Quob5hy5HKUi5fMoga7EMDmeOATO3zVOBp0cZrhoJDTfQzg3sSaNqIlXsNeqejm16Gydiy6lWGDAPwpRAsX28Pcns/f0XblXqAtd6EMcfPg6CtKVuZRrGXlia4t1dm0rkX7h9vp2duG9oY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mess.org; spf=pass smtp.mailfrom=mess.org; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b=FGOrbQ2+; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b=e1b4gNEk; arc=none smtp.client-ip=88.97.38.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mess.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mess.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b="FGOrbQ2+"; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b="e1b4gNEk" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mess.org; s=2020; t=1730131178; bh=A4fn+MwxNpxbrPpipnj6USOH52311bFO1tee+DqBA7s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FGOrbQ2+isgA0V9KdYZJFQBSQ3DvNSg2LOWH1K4//SCjpnfVa+k3IimCefixyz+RE OI3XUeHBkYFTtMWRyG9sNFdq0Wt1sIRpI15TJBvT3yVc28j2zd2V9wRi+ZtPWxZ+V6 UM9G/g/otdhbh0zlUekmt3G504ZLz1ltDpMdjFuqIUtrcsZ7m8ZRJojrDGUFNdddEX M06YiKKzE7vpVLgQgXfW/KNWJQTekNjz3UYzyNqNbgq1EJGzbVCaZlcsQ0ZGM7z5Qq oVxGeqGzh/8Xi1GviuR1IiBdVelIt5dfKj4OcX2g8UKmGHPJljuc7PrOi9ZAHYQNxz mPs+0AvlYD3ew== Received: by gofer.mess.org (Postfix, from userid 501) id 0A2441003BE; Mon, 28 Oct 2024 15:59:38 +0000 (GMT) X-Spam-Level: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mess.org; s=2020; t=1730131176; bh=A4fn+MwxNpxbrPpipnj6USOH52311bFO1tee+DqBA7s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e1b4gNEkFZUAYL1w4hcUz+mlW8e6vM3DIAsjEUnXdbrgTYAvXMuC7+oUwV9o1rvli eFhC8QeZ5/L9wLMQuQCMxIsNz86stNtZ+EngnCut8VKSnEtQNdt8aBEMArMtl61/Io cdTm+nloixJjXkIt6koCGTCdXHTJG3QB7zXzafDuoeYvZd3LG+oDehqo76aGt67mbF u+JKASCZVzVPCAnVpk8utNhobwkDoi0Ti6FqV63iBpdbBKKSJ0C6O+GriTdVeEGd++ 8yT9UFE/KrRRHpvB8Sbh9NUXIAPmWgcGRmYCKY0VT8xHhZekgZ3MW8bAEDL5vpsi/y 8apJ+Q08YZRBQ== Received: from bigcore.mess.org (bigcore.local [IPv6:2a02:8011:d000:212:bc3c:1b4a:a6fa:362f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by gofer.mess.org (Postfix) with ESMTPSA id 955DB1000C4; Mon, 28 Oct 2024 15:59:36 +0000 (GMT) From: Sean Young To: Sean Young , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] media: imon: don't push static constants on stack for %*ph Date: Mon, 28 Oct 2024 15:59:27 +0000 Message-ID: <20241028155927.72244-2-sean@mess.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241028155927.72244-1-sean@mess.org> References: <20241028155927.72244-1-sean@mess.org> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 There is no need to pass constants via stack. The width may be explicitly specified in the format. Signed-off-by: Sean Young --- drivers/media/rc/imon_raw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/rc/imon_raw.c b/drivers/media/rc/imon_raw.c index b02ded52f19e6..3a526dea6532c 100644 --- a/drivers/media/rc/imon_raw.c +++ b/drivers/media/rc/imon_raw.c @@ -37,7 +37,7 @@ static void imon_ir_data(struct imon *imon) if (packet_no == 0xff) return; - dev_dbg(imon->dev, "data: %*ph", 8, imon->ir_buf); + dev_dbg(imon->dev, "data: %8ph", imon->ir_buf); /* * Only the first 5 bytes contain IR data. Right shift so we move