Lines 1104-1109
Link Here
|
1104 |
fi |
1104 |
fi |
1105 |
;; |
1105 |
;; |
1106 |
|
1106 |
|
|
|
1107 |
file_operations) |
1108 |
# |
1109 |
# Determine if the 'file_operations' structure has |
1110 |
# 'ioctl', 'unlocked_ioctl' and 'compat_ioctl' fields. |
1111 |
# |
1112 |
echo "$CONFTEST_PREAMBLE |
1113 |
#include <linux/fs.h> |
1114 |
int conftest_file_operations(void) { |
1115 |
return offsetof(struct file_operations, ioctl); |
1116 |
}" > conftest$$.c |
1117 |
|
1118 |
$CC $CFLAGS -c conftest$$.c > /dev/null 2>&1 |
1119 |
rm -f conftest$$.c |
1120 |
|
1121 |
if [ -f conftest$$.o ]; then |
1122 |
echo "#define NV_FILE_OPERATIONS_HAS_IOCTL" >> conftest.h |
1123 |
rm -f conftest$$.o |
1124 |
else |
1125 |
echo "#undef NV_FILE_OPERATIONS_HAS_IOCTL" >> conftest.h |
1126 |
fi |
1127 |
|
1128 |
echo "$CONFTEST_PREAMBLE |
1129 |
#include <linux/fs.h> |
1130 |
int conftest_file_operations(void) { |
1131 |
return offsetof(struct file_operations, unlocked_ioctl); |
1132 |
}" > conftest$$.c |
1133 |
|
1134 |
$CC $CFLAGS -c conftest$$.c > /dev/null 2>&1 |
1135 |
rm -f conftest$$.c |
1136 |
|
1137 |
if [ -f conftest$$.o ]; then |
1138 |
echo "#define NV_FILE_OPERATIONS_HAS_UNLOCKED_IOCTL" >> conftest.h |
1139 |
rm -f conftest$$.o |
1140 |
else |
1141 |
echo "#undef NV_FILE_OPERATIONS_HAS_UNLOCKED_IOCTL" >> conftest.h |
1142 |
fi |
1143 |
|
1144 |
echo "$CONFTEST_PREAMBLE |
1145 |
#include <linux/fs.h> |
1146 |
int conftest_file_operations(void) { |
1147 |
return offsetof(struct file_operations, compat_ioctl); |
1148 |
}" > conftest$$.c |
1149 |
|
1150 |
$CC $CFLAGS -c conftest$$.c > /dev/null 2>&1 |
1151 |
rm -f conftest$$.c |
1152 |
|
1153 |
if [ -f conftest$$.o ]; then |
1154 |
echo "#define NV_FILE_OPERATIONS_HAS_COMPAT_IOCTL" >> conftest.h |
1155 |
rm -f conftest$$.o |
1156 |
else |
1157 |
echo "#undef NV_FILE_OPERATIONS_HAS_COMPAT_IOCTL" >> conftest.h |
1158 |
fi |
1159 |
;; |
1160 |
|
1107 |
pci_domain_nr) |
1161 |
pci_domain_nr) |
1108 |
# |
1162 |
# |
1109 |
# Determine if the pci_domain_nr() function is present. |
1163 |
# Determine if the pci_domain_nr() function is present. |