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/panic: Rename draw_panic_static_* to draw_panic_screen_*

I called them "static" because the panic screen is drawn only once,
but this can be confused with the static meaning in C.
Also remove some unnecessary braces in draw_panic_dispatch().
No functionnal change.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patch.msgid.link/20251216082524.115980-2-jfalempe@redhat.com
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>

+9 -9
+9 -9
drivers/gpu/drm/drm_panic.c
··· 476 476 fg_color); 477 477 } 478 478 479 - static void draw_panic_static_user(struct drm_scanout_buffer *sb) 479 + static void draw_panic_screen_user(struct drm_scanout_buffer *sb) 480 480 { 481 481 u32 fg_color = drm_draw_color_from_xrgb8888(CONFIG_DRM_PANIC_FOREGROUND_COLOR, 482 482 sb->format->format); ··· 545 545 * Draw the kmsg buffer to the screen, starting from the youngest message at the bottom, 546 546 * and going up until reaching the top of the screen. 547 547 */ 548 - static void draw_panic_static_kmsg(struct drm_scanout_buffer *sb) 548 + static void draw_panic_screen_kmsg(struct drm_scanout_buffer *sb) 549 549 { 550 550 u32 fg_color = drm_draw_color_from_xrgb8888(CONFIG_DRM_PANIC_FOREGROUND_COLOR, 551 551 sb->format->format); ··· 733 733 /* 734 734 * Draw the panic message at the center of the screen, with a QR Code 735 735 */ 736 - static int _draw_panic_static_qr_code(struct drm_scanout_buffer *sb) 736 + static int _draw_panic_screen_qr_code(struct drm_scanout_buffer *sb) 737 737 { 738 738 u32 fg_color = drm_draw_color_from_xrgb8888(CONFIG_DRM_PANIC_FOREGROUND_COLOR, 739 739 sb->format->format); ··· 801 801 return 0; 802 802 } 803 803 804 - static void draw_panic_static_qr_code(struct drm_scanout_buffer *sb) 804 + static void draw_panic_screen_qr_code(struct drm_scanout_buffer *sb) 805 805 { 806 - if (_draw_panic_static_qr_code(sb)) 807 - draw_panic_static_user(sb); 806 + if (_draw_panic_screen_qr_code(sb)) 807 + draw_panic_screen_user(sb); 808 808 } 809 809 #else 810 810 static void drm_panic_qr_init(void) {}; ··· 879 879 { 880 880 switch (drm_panic_type) { 881 881 case DRM_PANIC_TYPE_KMSG: 882 - draw_panic_static_kmsg(sb); 882 + draw_panic_screen_kmsg(sb); 883 883 break; 884 884 885 885 #if IS_ENABLED(CONFIG_DRM_PANIC_SCREEN_QR_CODE) 886 886 case DRM_PANIC_TYPE_QR: 887 - draw_panic_static_qr_code(sb); 887 + draw_panic_screen_qr_code(sb); 888 888 break; 889 889 #endif 890 890 891 891 case DRM_PANIC_TYPE_USER: 892 892 default: 893 - draw_panic_static_user(sb); 893 + draw_panic_screen_user(sb); 894 894 } 895 895 } 896 896