From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B889813B2B8; Tue, 27 Feb 2024 14:23:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709043804; cv=none; b=JGOhvz95mJeyyTWoG8Ssv99HWlpXHdugGI70LnJmduqaNpMbNLKf7LMs4Q9E4eCMc9wwV665HS35gH6CRx6kvuAdvkEDZpKU2vpbeDqdoxHIr5SFVA6i17+jgQH97trRyCJbcQGfVKcfDRe86Z1Fr6XQnrVgwqS7GTe9+h+FSJ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709043804; c=relaxed/simple; bh=9Y1RhPk6jbsC4wq59g47vj5OFhlURLnuRu4SfHM5kdo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=oc8M3KTLwFKrdCABsyNaIWrdv3PreblElcZQCUkv4NJUkyR1VqFa7LqvfM+fboJKuGEAdzi2kcWOU8WgVuBxT81S92vD/Dp9xthOHZvllbsGfXXp0WVIW5wphcDIWOOQvF3ETrs8vIEjNC7nS5SIklPf6S3ba0wZqKFPy7RNNBY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qMSEckmJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="qMSEckmJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47687C433C7; Tue, 27 Feb 2024 14:23:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709043804; bh=9Y1RhPk6jbsC4wq59g47vj5OFhlURLnuRu4SfHM5kdo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qMSEckmJMBYmR3XV3AGtmYw7cARJGsqcgBfJMc8Df/7/K/XcveYYq8N8l0+uqataW +R54eLsfrHXoEz3EGFyYhMvDD2AQg6+935cmnwatR7LufPWxgl/89Wyf5p1myyNQk5 8xAbq75HITtyA2Sdrabew2IUFUA8ls/TQNyx6F30= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Vinod Koul , Sasha Levin Subject: [PATCH 5.4 14/84] dmaengine: fsl-qdma: increase size of irq_name Date: Tue, 27 Feb 2024 14:26:41 +0100 Message-ID: <20240227131553.336200740@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240227131552.864701583@linuxfoundation.org> References: <20240227131552.864701583@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vinod Koul [ Upstream commit 6386f6c995b3ab91c72cfb76e4465553c555a8da ] We seem to have hit warnings of 'output may be truncated' which is fixed by increasing the size of 'irq_name' drivers/dma/fsl-qdma.c: In function ‘fsl_qdma_irq_init’: drivers/dma/fsl-qdma.c:824:46: error: ‘%d’ directive writing between 1 and 11 bytes into a region of size 10 [-Werror=format-overflow=] 824 | sprintf(irq_name, "qdma-queue%d", i); | ^~ drivers/dma/fsl-qdma.c:824:35: note: directive argument in the range [-2147483641, 2147483646] 824 | sprintf(irq_name, "qdma-queue%d", i); | ^~~~~~~~~~~~~~ drivers/dma/fsl-qdma.c:824:17: note: ‘sprintf’ output between 12 and 22 bytes into a destination of size 20 824 | sprintf(irq_name, "qdma-queue%d", i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/fsl-qdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/fsl-qdma.c b/drivers/dma/fsl-qdma.c index ad5818c0ce223..f2f10aeeea319 100644 --- a/drivers/dma/fsl-qdma.c +++ b/drivers/dma/fsl-qdma.c @@ -754,7 +754,7 @@ fsl_qdma_irq_init(struct platform_device *pdev, int i; int cpu; int ret; - char irq_name[20]; + char irq_name[32]; fsl_qdma->error_irq = platform_get_irq_byname(pdev, "qdma-error"); -- 2.43.0