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 1B46D1419A0; Tue, 27 Feb 2024 14:14:12 +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=1709043252; cv=none; b=Bd4LePoWNR/3R5tQh/waV1wl1wcP/63QHWa6Ixka4fgmf0hEas9ZFCE83rAwmJ3YbLtIX7pulySYUxWhSg1liRtYYZmTeN2CG3WTococBgwOzKJ8Da43MvCCIGVLxDowbduMEEJO8i59fkarlMHdC+Ml+By7i0xmCuvG3Vw1NzU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709043252; c=relaxed/simple; bh=yWTCQcj0yol2c73vlJZtZ8e/dxUsqrCgqgmzt/hY6S0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GQDJi5gEhuD4CGGP9RSUE8auhfzNLu7ODke7fzXsmfdRyPeWvPHjl/vPIvHHsuCbMeinxWbDY6niEji53Ocmls67wWNbATJlT6N1RJd6TfWfvXoJy67bVjzUIj8YqfFiMe+D2wynhKQ459+1sDQFdXb0tnyArPapE/BDuC9EzbE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FHtYWUDy; 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="FHtYWUDy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CD36C433F1; Tue, 27 Feb 2024 14:14:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709043252; bh=yWTCQcj0yol2c73vlJZtZ8e/dxUsqrCgqgmzt/hY6S0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FHtYWUDyZmLrsKpXvVCmjsAwusrf/9rRgn2SOQQgf4jIlPvZ9AGavIXPxTBYtBI7R HI21HRPOuBQPdESddsx9E69DK3OJO4Z4R+fC8C5xwfsK73DYPEYgiSAjPjgdkKvFOD e0/FM9giR72Oas1HOxIlZ02JCw2u1q+CAg37cRnw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Vinod Koul , Sasha Levin Subject: [PATCH 6.1 012/195] dmaengine: fsl-qdma: increase size of irq_name Date: Tue, 27 Feb 2024 14:24:33 +0100 Message-ID: <20240227131610.807211379@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240227131610.391465389@linuxfoundation.org> References: <20240227131610.391465389@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.1-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 69385f32e2756..f383f219ed008 100644 --- a/drivers/dma/fsl-qdma.c +++ b/drivers/dma/fsl-qdma.c @@ -805,7 +805,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