Lines 1150-1155
compile_test() {
Link Here
|
1150 |
CODE=" |
1150 |
CODE=" |
1151 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
1151 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
1152 |
#include <drm/drmP.h> |
1152 |
#include <drm/drmP.h> |
|
|
1153 |
#else |
1154 |
#include <drm/drm_drv.h> |
1155 |
#include <drm/drm_prime.h> |
1153 |
#endif |
1156 |
#endif |
1154 |
#if !defined(CONFIG_DRM) && !defined(CONFIG_DRM_MODULE) |
1157 |
#if !defined(CONFIG_DRM) && !defined(CONFIG_DRM_MODULE) |
1155 |
#error DRM not enabled |
1158 |
#error DRM not enabled |
Lines 1781-1786
compile_test() {
Link Here
|
1781 |
echo "$CONFTEST_PREAMBLE |
1784 |
echo "$CONFTEST_PREAMBLE |
1782 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
1785 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
1783 |
#include <drm/drmP.h> |
1786 |
#include <drm/drmP.h> |
|
|
1787 |
#else |
1788 |
#include <drm/drm_drv.h> |
1784 |
#endif |
1789 |
#endif |
1785 |
#include <drm/drm_atomic.h> |
1790 |
#include <drm/drm_atomic.h> |
1786 |
#if !defined(CONFIG_DRM) && !defined(CONFIG_DRM_MODULE) |
1791 |
#if !defined(CONFIG_DRM) && !defined(CONFIG_DRM_MODULE) |
Lines 1909-1915
compile_test() {
Link Here
|
1909 |
# attached drivers") in v3.14 (2013-12-11) |
1914 |
# attached drivers") in v3.14 (2013-12-11) |
1910 |
# |
1915 |
# |
1911 |
CODE=" |
1916 |
CODE=" |
|
|
1917 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
1912 |
#include <drm/drmP.h> |
1918 |
#include <drm/drmP.h> |
|
|
1919 |
#else |
1920 |
#include <drm/drm_drv.h> |
1921 |
#endif |
1913 |
int conftest_drm_driver_has_legacy_dev_list(void) { |
1922 |
int conftest_drm_driver_has_legacy_dev_list(void) { |
1914 |
return offsetof(struct drm_driver, legacy_dev_list); |
1923 |
return offsetof(struct drm_driver, legacy_dev_list); |
1915 |
}" |
1924 |
}" |
Lines 1933-1939
compile_test() {
Link Here
|
1933 |
# 2017-07-23 e6fc3b68558e4c6d8d160b5daf2511b99afa8814 |
1942 |
# 2017-07-23 e6fc3b68558e4c6d8d160b5daf2511b99afa8814 |
1934 |
# |
1943 |
# |
1935 |
CODE=" |
1944 |
CODE=" |
|
|
1945 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
1936 |
#include <drm/drmP.h> |
1946 |
#include <drm/drmP.h> |
|
|
1947 |
#else |
1948 |
#include <drm/drm_crtc.h> |
1949 |
#endif |
1937 |
|
1950 |
|
1938 |
int conftest_drm_crtc_init_with_planes_has_name_arg(void) { |
1951 |
int conftest_drm_crtc_init_with_planes_has_name_arg(void) { |
1939 |
return |
1952 |
return |
Lines 1949-1955
compile_test() {
Link Here
|
1949 |
compile_check_conftest "$CODE" "NV_DRM_CRTC_INIT_WITH_PLANES_HAS_NAME_ARG" "" "types" |
1962 |
compile_check_conftest "$CODE" "NV_DRM_CRTC_INIT_WITH_PLANES_HAS_NAME_ARG" "" "types" |
1950 |
|
1963 |
|
1951 |
CODE=" |
1964 |
CODE=" |
|
|
1965 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
1952 |
#include <drm/drmP.h> |
1966 |
#include <drm/drmP.h> |
|
|
1967 |
#else |
1968 |
#include <drm/drm_encoder.h> |
1969 |
#endif |
1953 |
|
1970 |
|
1954 |
int conftest_drm_encoder_init_has_name_arg(void) { |
1971 |
int conftest_drm_encoder_init_has_name_arg(void) { |
1955 |
return |
1972 |
return |
Lines 1964-1970
compile_test() {
Link Here
|
1964 |
compile_check_conftest "$CODE" "NV_DRM_ENCODER_INIT_HAS_NAME_ARG" "" "types" |
1981 |
compile_check_conftest "$CODE" "NV_DRM_ENCODER_INIT_HAS_NAME_ARG" "" "types" |
1965 |
|
1982 |
|
1966 |
echo "$CONFTEST_PREAMBLE |
1983 |
echo "$CONFTEST_PREAMBLE |
|
|
1984 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
1967 |
#include <drm/drmP.h> |
1985 |
#include <drm/drmP.h> |
|
|
1986 |
#else |
1987 |
#include <drm/drm_plane.h> |
1988 |
#endif |
1968 |
|
1989 |
|
1969 |
int conftest_drm_universal_plane_init_has_format_modifiers_arg(void) { |
1990 |
int conftest_drm_universal_plane_init_has_format_modifiers_arg(void) { |
1970 |
return |
1991 |
return |
Lines 1991-1997
compile_test() {
Link Here
|
1991 |
echo "#undef NV_DRM_UNIVERSAL_PLANE_INIT_HAS_FORMAT_MODIFIERS_ARG" | append_conftest "types" |
2012 |
echo "#undef NV_DRM_UNIVERSAL_PLANE_INIT_HAS_FORMAT_MODIFIERS_ARG" | append_conftest "types" |
1992 |
|
2013 |
|
1993 |
echo "$CONFTEST_PREAMBLE |
2014 |
echo "$CONFTEST_PREAMBLE |
|
|
2015 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
1994 |
#include <drm/drmP.h> |
2016 |
#include <drm/drmP.h> |
|
|
2017 |
#else |
2018 |
#include <drm/drm_plane.h> |
2019 |
#endif |
1995 |
|
2020 |
|
1996 |
int conftest_drm_universal_plane_init_has_name_arg(void) { |
2021 |
int conftest_drm_universal_plane_init_has_name_arg(void) { |
1997 |
return |
2022 |
return |
Lines 3084-3090
compile_test() {
Link Here
|
3084 |
# drm_framebuffer_{get,put}()") in v4.12 (2017-02-28). |
3109 |
# drm_framebuffer_{get,put}()") in v4.12 (2017-02-28). |
3085 |
# |
3110 |
# |
3086 |
CODE=" |
3111 |
CODE=" |
|
|
3112 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
3087 |
#include <drm/drmP.h> |
3113 |
#include <drm/drmP.h> |
|
|
3114 |
#endif |
3088 |
#if defined(NV_DRM_DRM_FRAMEBUFFER_H_PRESENT) |
3115 |
#if defined(NV_DRM_DRM_FRAMEBUFFER_H_PRESENT) |
3089 |
#include <drm/drm_framebuffer.h> |
3116 |
#include <drm/drm_framebuffer.h> |
3090 |
#endif |
3117 |
#endif |
Lines 3103-3109
compile_test() {
Link Here
|
3103 |
# drm_gem_object_{get,put}()") in v4.12 (2017-02-28). |
3130 |
# drm_gem_object_{get,put}()") in v4.12 (2017-02-28). |
3104 |
# |
3131 |
# |
3105 |
CODE=" |
3132 |
CODE=" |
|
|
3133 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
3106 |
#include <drm/drmP.h> |
3134 |
#include <drm/drmP.h> |
|
|
3135 |
#endif |
3107 |
#if defined(NV_DRM_DRM_GEM_H_PRESENT) |
3136 |
#if defined(NV_DRM_DRM_GEM_H_PRESENT) |
3108 |
#include <drm/drm_gem.h> |
3137 |
#include <drm/drm_gem.h> |
3109 |
#endif |
3138 |
#endif |
Lines 3122-3128
compile_test() {
Link Here
|
3122 |
# functions") in v4.15 (2017-09-26). |
3151 |
# functions") in v4.15 (2017-09-26). |
3123 |
# |
3152 |
# |
3124 |
CODE=" |
3153 |
CODE=" |
|
|
3154 |
#if defined(NV_DRM_DRMP_H_PRESENT) |
3125 |
#include <drm/drmP.h> |
3155 |
#include <drm/drmP.h> |
|
|
3156 |
#endif |
3126 |
#if defined(NV_DRM_DRM_DRV_H_PRESENT) |
3157 |
#if defined(NV_DRM_DRM_DRV_H_PRESENT) |
3127 |
#include <drm/drm_drv.h> |
3158 |
#include <drm/drm_drv.h> |
3128 |
#endif |
3159 |
#endif |