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 4D816ECD994 for ; Thu, 5 Feb 2026 18:00:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A588210E3B0; Thu, 5 Feb 2026 18:00:25 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Hv63OSIL"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 097A810E946 for ; Thu, 5 Feb 2026 18:00:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1770314425; x=1801850425; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=ph06AnyjAHxh4cLydxqvw1sf7lv3sd/ichYYiRQw4Xc=; b=Hv63OSILAGqksm85wl31IzKKSOz+U3xs+excD4SLQwbOFFrYp+1UAGL7 kE5zfi9egVxUVwkd6i1cH3/6IuBeqJ7UDFauPCUd/MPfQwDyoi7vUHqhD oxczjp4EHDxZ3WXiVOd874g5OnlC9Nktxm+6r1bKyjHu0GTR7kPfPjiDd oTFiYGzVkR6sdziKn5Kwvd1hYtg+AmgX0k5K3WV+qQ1akA2EQDSbUA3Ox C+xueyl96FLmr3MvLG0ToACMOItncB/ApWq1Os+9EBFzZvjY5Cj3Mmv9L 8BzDybgOt9KHnVqk79XtQXstIHIRV+ErTkTga3t7k08fJrH+XCli4UxwP A==; X-CSE-ConnectionGUID: Z3eTyH0vRQCm4ZyLP4jidA== X-CSE-MsgGUID: dx9I4L5qRKuWX63G1T1vsQ== X-IronPort-AV: E=McAfee;i="6800,10657,11692"; a="75373158" X-IronPort-AV: E=Sophos;i="6.21,275,1763452800"; d="scan'208";a="75373158" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2026 10:00:24 -0800 X-CSE-ConnectionGUID: 8FS7OQ8AQ1iyfSEnwv4M8Q== X-CSE-MsgGUID: M5fkjqONRPesjBUueaP9jg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,275,1763452800"; d="scan'208";a="214777784" Received: from egrumbac-mobl6.ger.corp.intel.com (HELO [10.245.244.172]) ([10.245.244.172]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2026 10:00:22 -0800 Message-ID: Date: Thu, 5 Feb 2026 19:00:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/fbdev-emulation: Remove empty placeholders To: Thomas Zimmermann , javierm@redhat.com, jfalempe@redhat.com, mripard@kernel.org, airlied@gmail.com, simona@ffwll.ch Cc: dri-devel@lists.freedesktop.org References: <20260205141142.412048-1-tzimmermann@suse.de> Content-Language: en-US From: Maarten Lankhorst In-Reply-To: <20260205141142.412048-1-tzimmermann@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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" Hey, Den 2026-02-05 kl. 15:10, skrev Thomas Zimmermann: > Only DRM clients for fbdev emulation invoke fbdev helpers. Hence remove > the empty placeholders for non-fbdev builds, as they are unused. > > Signed-off-by: Thomas Zimmermann > --- > include/drm/drm_fb_helper.h | 105 ------------------------------------ > 1 file changed, 105 deletions(-) > > diff --git a/include/drm/drm_fb_helper.h b/include/drm/drm_fb_helper.h > index 05cca77b7249..15274b8a1d97 100644 > --- a/include/drm/drm_fb_helper.h > +++ b/include/drm/drm_fb_helper.h > @@ -271,111 +271,6 @@ int drm_fb_helper_ioctl(struct fb_info *info, unsigned int cmd, > > int drm_fb_helper_hotplug_event(struct drm_fb_helper *fb_helper); > int drm_fb_helper_initial_config(struct drm_fb_helper *fb_helper); > -#else > -static inline void drm_fb_helper_prepare(struct drm_device *dev, > - struct drm_fb_helper *helper, > - unsigned int preferred_bpp, > - const struct drm_fb_helper_funcs *funcs) > -{ > -} > - > -static inline void drm_fb_helper_unprepare(struct drm_fb_helper *fb_helper) > -{ > -} > - > -static inline int drm_fb_helper_init(struct drm_device *dev, > - struct drm_fb_helper *helper) > -{ > - /* So drivers can use it to free the struct */ > - helper->dev = dev; > - dev->fb_helper = helper; > - > - return 0; > -} > - > -static inline void drm_fb_helper_fini(struct drm_fb_helper *helper) > -{ > - if (helper && helper->dev) > - helper->dev->fb_helper = NULL; > -} > - > -static inline int drm_fb_helper_blank(int blank, struct fb_info *info) > -{ > - return 0; > -} > - > -static inline int drm_fb_helper_pan_display(struct fb_var_screeninfo *var, > - struct fb_info *info) > -{ > - return 0; > -} > - > -static inline int drm_fb_helper_set_par(struct fb_info *info) > -{ > - return 0; > -} > - > -static inline int drm_fb_helper_check_var(struct fb_var_screeninfo *var, > - struct fb_info *info) > -{ > - return 0; > -} > - > -static inline int > -drm_fb_helper_restore_fbdev_mode_unlocked(struct drm_fb_helper *fb_helper) > -{ > - return 0; > -} > - > -static inline void drm_fb_helper_unregister_info(struct drm_fb_helper *fb_helper) > -{ > -} > - > -static inline void > -drm_fb_helper_fill_info(struct fb_info *info, > - struct drm_fb_helper *fb_helper, > - struct drm_fb_helper_surface_size *sizes) > -{ > -} > - > -static inline int drm_fb_helper_setcmap(struct fb_cmap *cmap, > - struct fb_info *info) > -{ > - return 0; > -} > - > -static inline int drm_fb_helper_ioctl(struct fb_info *info, unsigned int cmd, > - unsigned long arg) > -{ > - return 0; > -} > - > -#ifdef CONFIG_FB_DEFERRED_IO > -static inline void drm_fb_helper_deferred_io(struct fb_info *info, > - struct list_head *pagelist) > -{ > -} > -#endif > - > -static inline void drm_fb_helper_set_suspend(struct drm_fb_helper *fb_helper, > - bool suspend) > -{ > -} > - > -static inline void > -drm_fb_helper_set_suspend_unlocked(struct drm_fb_helper *fb_helper, bool suspend) > -{ > -} > - > -static inline int drm_fb_helper_hotplug_event(struct drm_fb_helper *fb_helper) > -{ > - return 0; > -} > - > -static inline int drm_fb_helper_initial_config(struct drm_fb_helper *fb_helper) > -{ > - return 0; > -} > #endif > > #endif Reviewed-by: Maarten Lankhorst