@@ -6307,6 +6307,32 @@ compile_test() {
63076307 compile_check_conftest " $CODE " " NV_NUM_REGISTERED_FB_PRESENT" " " " types"
63086308 ;;
63096309
6310+ acpi_video_register_backlight)
6311+ #
6312+ # Determine if acpi_video_register_backlight() function is present
6313+ #
6314+ # acpi_video_register_backlight was added by commit 3dbc80a3e4c55c
6315+ # (ACPI: video: Make backlight class device registration a separate
6316+ # step (v2)) for v6.0 (2022-09-02).
6317+ # Note: the include directive for <linux/types> in this conftest is
6318+ # necessary in order to support kernels between commit 0b9f7d93ca61
6319+ # ("ACPI / i915: ignore firmware requests backlight change") for
6320+ # v3.16 (2014-07-07) and commit 3bd6bce369f5 ("ACPI / video: Port
6321+ # to new backlight interface selection API") for v4.2 (2015-07-16).
6322+ # Kernels within this range use the 'bool' type and the related
6323+ # 'false' value in <acpi/video.h> without first including the
6324+ # definitions of that type and value.
6325+ #
6326+ CODE="
6327+ #include <linux/types.h>
6328+ #include <acpi/video.h>
6329+ void conftest_acpi_video_register_backlight(void) {
6330+ acpi_video_register_backlight(0);
6331+ }"
6332+
6333+ compile_check_conftest " $CODE " " NV_ACPI_VIDEO_REGISTER_BACKLIGHT" " " " functions"
6334+ ;;
6335+
63106336 acpi_video_backlight_use_native)
63116337 #
63126338 # Determine if acpi_video_backlight_use_native() function is present
@@ -6690,13 +6716,18 @@ compile_test() {
66906716 #
66916717 # Determine whether drm_client_setup is present.
66926718 #
6693- # Added by commit d07fdf922592 ("drm/fbdev-ttm:
6694- # Convert to client-setup") in v6.13.
6719+ # Added by commit d07fdf922592 ("drm/fbdev-ttm: Convert to
6720+ # client-setup") in v6.13 in drm/drm_client_setup.h, but then moved
6721+ # to drm/clients/drm_client_setup.h by commit b86711c6d6e2
6722+ # ("drm/client: Move public client header to clients/ subdirectory")
6723+ # in linux-next b86711c6d6e2.
66956724 #
66966725 CODE="
66976726 #include <drm/drm_fb_helper.h>
66986727 #if defined(NV_DRM_DRM_CLIENT_SETUP_H_PRESENT)
66996728 #include <drm/drm_client_setup.h>
6729+ #elif defined(NV_DRM_CLIENTS_DRM_CLIENT_SETUP_H_PRESENT)
6730+ #include <drm/clients/drm_client_setup.h>
67006731 #endif
67016732 void conftest_drm_client_setup(void) {
67026733 drm_client_setup();
@@ -7509,6 +7540,31 @@ compile_test() {
75097540 compile_check_conftest " $CODE " " NV_MODULE_IMPORT_NS_TAKES_CONSTANT" " " " generic"
75107541 ;;
75117542
7543+
7544+ drm_driver_has_date)
7545+ #
7546+ # Determine if the 'drm_driver' structure has a 'date' field.
7547+ #
7548+ # Removed by commit cb2e1c2136f7 ("drm: remove driver date from
7549+ # struct drm_driver and all drivers") in linux-next, expected in
7550+ # v6.14.
7551+ #
7552+ CODE="
7553+ #if defined(NV_DRM_DRMP_H_PRESENT)
7554+ #include <drm/drmP.h>
7555+ #endif
7556+
7557+ #if defined(NV_DRM_DRM_DRV_H_PRESENT)
7558+ #include <drm/drm_drv.h>
7559+ #endif
7560+
7561+ int conftest_drm_driver_has_date(void) {
7562+ return offsetof(struct drm_driver, date);
7563+ }"
7564+
7565+ compile_check_conftest " $CODE " " NV_DRM_DRIVER_HAS_DATE" " " " types"
7566+ ;;
7567+
75127568 # When adding a new conftest entry, please use the correct format for
75137569 # specifying the relevant upstream Linux kernel commit. Please
75147570 # avoid specifying -rc kernels, and only use SHAs that actually exist
0 commit comments