@@ -4041,6 +4041,43 @@ compile_test() {
40414041 fi
40424042 ;;
40434043
4044+ drm_fb_create_takes_format_info)
4045+ #
4046+ # Determine if a `struct drm_format_info *` is passed into
4047+ # the .fb_create callback. If so, it will have 4 arguments.
4048+ # This parameter was added in commit 81112eaac559 ("drm:
4049+ # Pass the format info to .fb_create") in linux-next
4050+ # (2025-07-16)
4051+ CODE="
4052+ #include <drm/drm_mode_config.h>
4053+ #include <drm/drm_framebuffer.h>
4054+
4055+ static const struct drm_mode_config_funcs funcs;
4056+ void conftest_drm_fb_create_takes_format_info(void) {
4057+ funcs.fb_create(NULL, NULL, NULL, NULL);
4058+ }"
4059+
4060+ compile_check_conftest " $CODE " " NV_DRM_FB_CREATE_TAKES_FORMAT_INFO" " " " types"
4061+ ;;
4062+
4063+ drm_fill_fb_struct_takes_format_info)
4064+ #
4065+ # Determine if a `struct drm_format_info *` is passed into
4066+ # drm_helper_mode_fill_fb_struct(). If so, it will have 4 arguments.
4067+ # This parameter was added in commit a34cc7bf1034 ("drm:
4068+ # Allow the caller to pass in the format info to
4069+ # drm_helper_mode_fill_fb_struct()") in linux-next
4070+ # (2025-07-16)
4071+ CODE="
4072+ #include <drm/drm_modeset_helper.h>
4073+
4074+ void conftest_drm_fill_fb_struct_takes_format_info(void) {
4075+ drm_helper_mode_fill_fb_struct(NULL, NULL, NULL, NULL);
4076+ }"
4077+
4078+ compile_check_conftest " $CODE " " NV_DRM_FILL_FB_STRUCT_TAKES_FORMAT_INFO" " " " types"
4079+ ;;
4080+
40444081 drm_connector_funcs_have_mode_in_name)
40454082 #
40464083 # Determine if _mode_ is present in connector function names. We
0 commit comments