Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/fbdev-emulation: Remove empty placeholders

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 <tzimmermann@suse.de>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patch.msgid.link/20260205141142.412048-1-tzimmermann@suse.de

-105
-105
include/drm/drm_fb_helper.h
··· 271 271 272 272 int drm_fb_helper_hotplug_event(struct drm_fb_helper *fb_helper); 273 273 int drm_fb_helper_initial_config(struct drm_fb_helper *fb_helper); 274 - #else 275 - static inline void drm_fb_helper_prepare(struct drm_device *dev, 276 - struct drm_fb_helper *helper, 277 - unsigned int preferred_bpp, 278 - const struct drm_fb_helper_funcs *funcs) 279 - { 280 - } 281 - 282 - static inline void drm_fb_helper_unprepare(struct drm_fb_helper *fb_helper) 283 - { 284 - } 285 - 286 - static inline int drm_fb_helper_init(struct drm_device *dev, 287 - struct drm_fb_helper *helper) 288 - { 289 - /* So drivers can use it to free the struct */ 290 - helper->dev = dev; 291 - dev->fb_helper = helper; 292 - 293 - return 0; 294 - } 295 - 296 - static inline void drm_fb_helper_fini(struct drm_fb_helper *helper) 297 - { 298 - if (helper && helper->dev) 299 - helper->dev->fb_helper = NULL; 300 - } 301 - 302 - static inline int drm_fb_helper_blank(int blank, struct fb_info *info) 303 - { 304 - return 0; 305 - } 306 - 307 - static inline int drm_fb_helper_pan_display(struct fb_var_screeninfo *var, 308 - struct fb_info *info) 309 - { 310 - return 0; 311 - } 312 - 313 - static inline int drm_fb_helper_set_par(struct fb_info *info) 314 - { 315 - return 0; 316 - } 317 - 318 - static inline int drm_fb_helper_check_var(struct fb_var_screeninfo *var, 319 - struct fb_info *info) 320 - { 321 - return 0; 322 - } 323 - 324 - static inline int 325 - drm_fb_helper_restore_fbdev_mode_unlocked(struct drm_fb_helper *fb_helper) 326 - { 327 - return 0; 328 - } 329 - 330 - static inline void drm_fb_helper_unregister_info(struct drm_fb_helper *fb_helper) 331 - { 332 - } 333 - 334 - static inline void 335 - drm_fb_helper_fill_info(struct fb_info *info, 336 - struct drm_fb_helper *fb_helper, 337 - struct drm_fb_helper_surface_size *sizes) 338 - { 339 - } 340 - 341 - static inline int drm_fb_helper_setcmap(struct fb_cmap *cmap, 342 - struct fb_info *info) 343 - { 344 - return 0; 345 - } 346 - 347 - static inline int drm_fb_helper_ioctl(struct fb_info *info, unsigned int cmd, 348 - unsigned long arg) 349 - { 350 - return 0; 351 - } 352 - 353 - #ifdef CONFIG_FB_DEFERRED_IO 354 - static inline void drm_fb_helper_deferred_io(struct fb_info *info, 355 - struct list_head *pagelist) 356 - { 357 - } 358 - #endif 359 - 360 - static inline void drm_fb_helper_set_suspend(struct drm_fb_helper *fb_helper, 361 - bool suspend) 362 - { 363 - } 364 - 365 - static inline void 366 - drm_fb_helper_set_suspend_unlocked(struct drm_fb_helper *fb_helper, bool suspend) 367 - { 368 - } 369 - 370 - static inline int drm_fb_helper_hotplug_event(struct drm_fb_helper *fb_helper) 371 - { 372 - return 0; 373 - } 374 - 375 - static inline int drm_fb_helper_initial_config(struct drm_fb_helper *fb_helper) 376 - { 377 - return 0; 378 - } 379 274 #endif 380 275 381 276 #endif