@@ -203,20 +203,20 @@ static const struct drm_framebuffer_funcs evdifb_funcs = {
203203static int
204204evdi_framebuffer_init (struct drm_device * dev ,
205205 struct evdi_framebuffer * efb ,
206- #if KERNEL_VERSION (6 , 17 , 0 ) <= LINUX_VERSION_CODE
206+ #if KERNEL_VERSION (6 , 17 , 0 ) <= LINUX_VERSION_CODE || defined( CENTOS9 ) || defined( CENTOS10 )
207207 const struct drm_format_info * info ,
208208#endif
209209 const struct drm_mode_fb_cmd2 * mode_cmd ,
210210 struct evdi_gem_object * obj )
211211{
212212 efb -> obj = obj ;
213- #if KERNEL_VERSION (6 , 17 , 0 ) <= LINUX_VERSION_CODE
213+ #if KERNEL_VERSION (6 , 17 , 0 ) <= LINUX_VERSION_CODE || defined( CENTOS9 ) || defined( CENTOS10 )
214214 if (info == NULL )
215215 info = drm_get_format_info (dev , mode_cmd -> pixel_format ,
216216 mode_cmd -> modifier [0 ]);
217217#endif
218218 drm_helper_mode_fill_fb_struct (dev , & efb -> base ,
219- #if KERNEL_VERSION (6 , 17 , 0 ) <= LINUX_VERSION_CODE
219+ #if KERNEL_VERSION (6 , 17 , 0 ) <= LINUX_VERSION_CODE || defined ( CENTOS9 ) || defined ( CENTOS10 )
220220 info ,
221221#endif
222222 mode_cmd );
@@ -253,7 +253,7 @@ static bool is_xe_gem(struct dma_buf *dmabuf)
253253struct drm_framebuffer * evdi_fb_user_fb_create (
254254 struct drm_device * dev ,
255255 struct drm_file * file ,
256- #if KERNEL_VERSION (6 , 17 , 0 ) <= LINUX_VERSION_CODE
256+ #if KERNEL_VERSION (6 , 17 , 0 ) <= LINUX_VERSION_CODE || defined( CENTOS9 ) || defined( CENTOS10 )
257257 const struct drm_format_info * info ,
258258#endif
259259 const struct drm_mode_fb_cmd2 * mode_cmd )
@@ -289,7 +289,7 @@ struct drm_framebuffer *evdi_fb_user_fb_create(
289289 efb -> base .obj [0 ] = obj ;
290290
291291 ret = evdi_framebuffer_init (dev , efb ,
292- #if KERNEL_VERSION (6 , 17 , 0 ) <= LINUX_VERSION_CODE
292+ #if KERNEL_VERSION (6 , 17 , 0 ) <= LINUX_VERSION_CODE || defined ( CENTOS9 ) || defined ( CENTOS10 )
293293 info ,
294294#endif
295295 mode_cmd , to_evdi_bo (obj ));
0 commit comments