From patchwork Thu Oct 3 23:07:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miguel Ojeda X-Patchwork-Id: 13821651 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5A9E5CF34D5 for ; Thu, 3 Oct 2024 23:09:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A861010E0B0; Thu, 3 Oct 2024 23:09:01 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="IMMvu79L"; dkim-atps=neutral Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by gabe.freedesktop.org (Postfix) with ESMTPS id 78C8C10E0B0 for ; Thu, 3 Oct 2024 23:09:00 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 153E6A43FD3; Thu, 3 Oct 2024 23:08:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6B9AC4CEC5; Thu, 3 Oct 2024 23:08:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1727996939; bh=DzQHCv1YgHZYR5hu7J+5iPetr1YSbCm6MTZAU6xv2oo=; h=From:To:Cc:Subject:Date:From; b=IMMvu79LVQfFX3ETLxZugfhepwunJuO+6XCzDcxcOVsLrNI5k5fpMk6TitACbAxsI LL7Xz8YPr8e7bEKeL4WO+GIsqDyB3KTZRUZ1saaqAkjAVkuS94mUVTGRL65yquQrJb D7xun4CDy9Wl+9QHefwwZvK31yVhSAy8WIgAbUP+B0MVIemQtT8AUWrHxNn36/C8yU gNwt/0NJ4MyQEklvE7o3UEgc7ssBMxdejVkz/d/Z+mGdBfuHlFzfnNOYNfUTnVp047 3QBlD4MJhrOdUT++lTMzxQa+O0Q0y5CsNBC53aDJWR2Y+9Tu7dxJmI79zo+NPp8O5R Rbx5gTZy14l0A== From: Miguel Ojeda To: Jocelyn Falempe , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Miguel Ojeda Subject: [PATCH] drm/panic: Select ZLIB_DEFLATE for DRM_PANIC_SCREEN_QR_CODE Date: Fri, 4 Oct 2024 01:07:34 +0200 Message-ID: <20241003230734.653717-1-ojeda@kernel.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Under `CONFIG_DRM_PANIC_SCREEN_QR_CODE=y`, zlib is used: ld.lld: error: undefined symbol: zlib_deflate_workspacesize >>> referenced by drm_panic.c >>> drivers/gpu/drm/drm_panic.o:(drm_panic_qr_init) in archive vmlinux.a Thus select `CONFIG_ZLIB_DEFLATE`. Fixes: cb5164ac43d0 ("drm/panic: Add a QR code panic screen") Signed-off-by: Miguel Ojeda Reviewed-by: Jocelyn Falempe --- drivers/gpu/drm/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.46.2 diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig index 1cb5a4f19293..cf5bc77e2362 100644 --- a/drivers/gpu/drm/Kconfig +++ b/drivers/gpu/drm/Kconfig @@ -152,6 +152,7 @@ config DRM_PANIC_SCREEN config DRM_PANIC_SCREEN_QR_CODE bool "Add a panic screen with a QR code" depends on DRM_PANIC && RUST + select ZLIB_DEFLATE help This option adds a QR code generator, and a panic screen with a QR code. The QR code will contain the last lines of kmsg and other debug