forked from NVIDIA/zypper-packaging-nvidia-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- readded n_kernel_write.patch and apply it again for sle12-sp4/sle12…
…-sp5/sle15/sle15-sp1/Leap15/Leap15.1
- Loading branch information
Showing
4 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- kernel/conftest.sh.orig 2019-05-15 14:40:51.082287653 +0200 | ||
+++ kernel/conftest.sh 2019-05-15 14:54:12.948955304 +0200 | ||
@@ -1567,29 +1567,8 @@ | ||
rm -f conftest$$.o | ||
else | ||
echo "#define NV_KERNEL_WRITE_PRESENT" | append_conftest "function" | ||
- | ||
- # | ||
- # Determine the pos argument type, which was changed by | ||
- # commit e13ec939e96b1 (fs: fix kernel_write prototype) on | ||
- # 9/1/2017. | ||
- # | ||
- echo "$CONFTEST_PREAMBLE | ||
- #include <linux/fs.h> | ||
- ssize_t kernel_write(struct file *file, const void *buf, | ||
- size_t count, loff_t *pos) | ||
- { | ||
- return 0; | ||
- }" > conftest$$.c; | ||
- | ||
- $CC $CFLAGS -c conftest$$.c > /dev/null 2>&1 | ||
- rm -f conftest$$.c | ||
- | ||
- if [ -f conftest$$.o ]; then | ||
- echo "#define NV_KERNEL_WRITE_HAS_POINTER_POS_ARG" | append_conftest "function" | ||
- rm -f conftest$$.o | ||
- else | ||
- echo "#undef NV_KERNEL_WRITE_HAS_POINTER_POS_ARG" | append_conftest "function" | ||
- fi | ||
+ # hardcode on sle12-sp4/sle12-sp5/sle15/sle15-sp1/Leap15/Leap15.1 | ||
+ echo "#define NV_KERNEL_WRITE_HAS_POINTER_POS_ARG" | append_conftest "function" | ||
fi | ||
;; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters