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 98EE71D14EB; Wed, 2 Oct 2024 14:34: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=1727879664; cv=none; b=W0N+DJN4qnpYHALCPGwO0ZQ2OYTwnSewFXlNL/ROWBCHozd+Srr5o1pZDgjC2q9VRc6G8LhqsFw/9kF6ZTwgW28yo0wAfOAKu5onwxAdZR5LCxpISRmU3/zP774bcde4WcWrYPPoZGgc1l3SESNytuArGaAnb7IxxKHvtlZA5II= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727879664; c=relaxed/simple; bh=YtPTyAbymxnB8pqirVxIT4u1YYlb7jfIdS1xjo8X2/Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AQh7+pNOiPpHeVEav9DsI8GLpxI+8UiL4D+jBEV7e7dWMzeyyKiV3u3roX7qUwDxK4pQNV0iMg22eiY5UtBXYg8gnCi8bj/GY6fHiZDhpgyJxUVvDC77VSqjcShzNpgmrEfNxkVcx27V/xiYVotwbpkm/QorowQ/EgnwzzNK5Kc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nwPOBF/S; 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="nwPOBF/S" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25B9EC4CECD; Wed, 2 Oct 2024 14:34:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727879664; bh=YtPTyAbymxnB8pqirVxIT4u1YYlb7jfIdS1xjo8X2/Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nwPOBF/SBZ8hyaS0AC0hon7K0IzYKeID4O0fzVJdNw4xI/SosSaNktiZbzR47HCcR 3o1DhbKnvmE1R4oCRFaiIF6lqR+nD+wNyWXDF+axOuXK0ezX7FnoXm6dXgLvhLdYo3 9cYD2ZDu8DVNNd8jCfykKf14HuRuD/3iFMU1/2Vo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sherry Yang , Abhinav Kumar , Dmitry Baryshkov , Sasha Levin Subject: [PATCH 6.6 165/538] drm/msm: fix %s null argument error Date: Wed, 2 Oct 2024 14:56:44 +0200 Message-ID: <20241002125758.767472793@linuxfoundation.org> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20241002125751.964700919@linuxfoundation.org> References: <20241002125751.964700919@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-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sherry Yang [ Upstream commit 25b85075150fe8adddb096db8a4b950353045ee1 ] The following build error was triggered because of NULL string argument: BUILDSTDERR: drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c: In function 'mdp5_smp_dump': BUILDSTDERR: drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c:352:51: error: '%s' directive argument is null [-Werror=format-overflow=] BUILDSTDERR: 352 | drm_printf(p, "%s:%d\t%d\t%s\n", BUILDSTDERR: | ^~ BUILDSTDERR: drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c:352:51: error: '%s' directive argument is null [-Werror=format-overflow=] This happens from the commit a61ddb4393ad ("drm: enable (most) W=1 warnings by default across the subsystem"). Using "(null)" instead to fix it. Fixes: bc5289eed481 ("drm/msm/mdp5: add debugfs to show smp block status") Signed-off-by: Sherry Yang Reviewed-by: Abhinav Kumar Patchwork: https://patchwork.freedesktop.org/patch/611071/ Link: https://lore.kernel.org/r/20240827165337.1075904-1-sherry.yang@oracle.com Signed-off-by: Dmitry Baryshkov Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c b/drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c index 56a3063545ec4..12d07e93a4c47 100644 --- a/drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c +++ b/drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c @@ -356,7 +356,7 @@ void mdp5_smp_dump(struct mdp5_smp *smp, struct drm_printer *p) drm_printf(p, "%s:%d\t%d\t%s\n", pipe2name(pipe), j, inuse, - plane ? plane->name : NULL); + plane ? plane->name : "(null)"); total += inuse; } -- 2.43.0