From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7260606A322 for ; Fri, 4 Dec 2026 16:44:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=YSM1N1/e Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 05D2E10E23E; Fri, 4 Dec 2026 16:44:38 +0000 (UTC) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id A00E8112FF3 for ; Fri, 4 Dec 2026 16:44:32 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 601AB40341; Fri, 4 Dec 2026 16:44:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26B771F000CE; Fri, 4 Dec 2026 16:44:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796402672; bh=WCIu55gWBzHS7eysnYt8zi0p7girEJdnDwKYIIIctsw=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=YSM1N1/ezTcrZWTqBbs01QCdoXAbe5X22YUBd5bzZ5QLeSXPnWDD/nk0bSJtu7jwL FT6BpnqWN/AgrAghQDTvYJNnE11/mQXS4O2aRpDZYhGdux6qhEeb+laaAwipRFHl0/ NJcI77LxFNwfTaIyjHN6xbzl/6JO/h7vL/0bm9SqiFpz1cVoTVZlMiqGgcoORmugDi T2ssJ1bGQ8ozlC5i901DRTwLUeupJb7SStVxdsmtx3Ch9YGt3HjO3xQ8u6G4X7xFRz uiNtjwAvmRXcHFBl0Sj1EDk3KrVAFKxDMVsdjx5ddr0QbVJ/xls/y5pWPPM38cpHi7 9alosW0QnXrnQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 2/2] fbdev: fbmem: don't fail registration when fbcon cannot take over To: "YuanZhe Liu" <25031212351@stu.xidian.edu.cn> Cc: dri-devel@lists.freedesktop.org In-Reply-To: <20261204160835.16470-2-25031212351@stu.xidian.edu.cn> References: <20261204093601.9900-1-25031212351@stu.xidian.edu.cn> <20261204160835.16470-1-25031212351@stu.xidian.edu.cn> <20261204160835.16470-2-25031212351@stu.xidian.edu.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 16:44:31 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "dri-devel" X-Spam-Status: No, score=-11.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] fbdev: fbcon_fb_registered() and do_fb_registered() have unused int return -- commit 9a79cb5d4a64251e588b11510f76e1464adc18ad Author: YuanZhe Liu <25031212351@stu.xidian.edu.cn> fbdev: fbmem: don't fail registration when fbcon cannot take over This commit ignores the return value of fbcon_fb_registered() in do_register_framebuffer() and returns 0 instead, so a failed console takeov= er no longer fails framebuffer registration. > diff --git a/drivers/video/fbdev/core/fbmem.c b/drivers/video/fbdev/core/= fbmem.c > index c8aa163b0ecfa..2f6d6be673b47 100644 > --- a/drivers/video/fbdev/core/fbmem.c > +++ b/drivers/video/fbdev/core/fbmem.c > @@ -535,7 +535,13 @@ static int do_register_framebuffer(struct fb_info *f= b_info) > } > #endif > =20 > - return fbcon_fb_registered(fb_info); > + /* > + * The framebuffer is registered now. A failed console takeover > + * is not a registration failure; reporting it would make drivers > + * free a live fb_info and leave registered_fb[] dangling. > + */ > + fbcon_fb_registered(fb_info); > + return 0; [Severity: Low] Should fbcon_fb_registered() and do_fb_registered() be changed to return void now that do_register_framebuffer() ignores the return value? do_register_framebuffer() is the sole caller of fbcon_fb_registered(), and the only other caller of do_fb_registered() (fbcon_register_existing_fbs()) already discards its return value. Converting both functions and the !CONFIG_FRAMEBUFFER_CONSOLE stub in drivers/video/fbdev/core/fbcon.h to void would remove the unused return-value plumbing and match the sibling fbcon_fb_unregistered() and fbcon_fb_unbind() hooks. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204093601.9900= -1-25031212351@stu.xidian.edu.cn?part=3D2