Compiler mismatch error while installing Cuda 12.0 on Ubuntu 22.04

re: nvidia-drm-drv.c:245:21: error: ‘struct drm_mode_config’ has no member named ‘fb_base’ 245 | dev->mode_config.fb_base = 0;

It look very much like someone has backported drm_mode_config.h v6.4 to 5.14.0-427.20.1.el9_4

cf. 470xx drivers and linux 6.2 kernel - #7 by nevilled.nvidia