Skip to content

Add Linux 4.6.3 #32

Merged
merged 8 commits into from
Jul 5, 2016
Merged

Add Linux 4.6.3 #32

merged 8 commits into from
Jul 5, 2016

Conversation

pmenzel
Copy link
Collaborator

@pmenzel pmenzel commented Jul 5, 2016

No description provided.

From Kernel Newbies [1]:

> Linux 4.6 was released on Sun, 15 May 2016.
>
> Summary: This release adds support for USB 3.1 SuperSpeedPlus (10
> Gbps), the new distributed file system OrangeFS, a more reliable
> out-of-memory handling, support for Intel memory protection keys, a
> facility to make easier and faster implementations of application
> layer protocols, support for 802.1AE MAC-level encryption (MACsec),
> support for the version V of the BATMAN protocol, a OCFS2 online inode
> checker, support for cgroup namespaces, support for the pNFS SCSI
> layout, and many other improvements and new drivers.

Copy bee file from Linux kernel 4.4.11-88.

[1] http://kernelnewbies.org/Linux_4.6
Execute `StripWhitespace` from *Vim Better Whitespace Plugin* [1].

[1] https://github.com/ntpeters/vim-better-whitespace
Adapt and run Donald’s script `build-nvidia.pl`.
Adapt and run Donald’s script `build-nvidia.pl`.

Unfortunately, it fails to build with the errors below as reported on
the Web already in May 2016 [1][2][3].

```
[…]
/scratch/local/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel/os-mlock.c:48:11: error: too many arguments to function ‘get_user_pages’
     ret = get_user_pages(current, mm, (unsigned long)address,
           ^
In file included from /scratch/local/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel/nv-linux.h:68:0,
                 from /scratch/local/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel/os-mlock.c:15:
include/linux/mm.h:1266:6: note: declared here
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^
/scratch/local/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel/os-mlock.c:61:13: error: implicit declaration of function ‘page_cache_release’ [-Werror=implicit-function-declaration]
             page_cache_release(user_pages[i]);
             ^
cc1: some warnings being treated as errors
scripts/Makefile.build:291: recipe for target '/scratch/local/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel/os-mlock.o' failed
make[2]: *** [/scratch/local/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel/os-mlock.o] Error 1
Makefile:1429: recipe for target '_module_/scratch/local/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel' failed
make[1]: *** [_module_/scratch/local/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel] Error 2
make[1]: Leaving directory '/scratch/local/linux-4.6.3-91.x86_64/source'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
Makefile:184: recipe for target 'nvidia.ko' failed
make: *** [nvidia.ko] Error 1
```

[1] https://github.com/manjaro/packages-extra/issues/71
[2] https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-361/+bug/1573508
[3] https://devtalk.nvidia.com/default/topic/936310/nvidia-drivers-do-not-install-with-kernel-4-6/
Fix the error below [1].

```
[…]
/scratch/local/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel/os-mlock.c:48:11: error: too many arguments to function ‘get_user_pages’
     ret = get_user_pages(current, mm, (unsigned long)address,
           ^
In file included from /scratch/local/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel/nv-linux.h:68:0,
                 from /scratch/local/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel/os-mlock.c:15:
include/linux/mm.h:1266:6: note: declared here
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^
/scratch/local/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel/os-mlock.c:61:13: error: implicit declaration of function ‘page_cache_release’ [-Werror=implicit-function-declaration]
             page_cache_release(user_pages[i]);
             ^
cc1: some warnings being treated as errors
scripts/Makefile.build:291: recipe for target '/scratch/local/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel/os-mlock.o' failed
make[2]: *** [/scratch/local/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel/os-mlock.o] Error 1
Makefile:1429: recipe for target '_module_/scratch/local/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel' failed
make[1]: *** [_module_/scratch/local/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel] Error 2
make[1]: Leaving directory '/scratch/local/linux-4.6.3-91.x86_64/source'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
Makefile:184: recipe for target 'nvidia.ko' failed
make: *** [nvidia.ko] Error 1
```

[1] https://github.com/manjaro/packages-extra/commit/ddae91f20ddf82874fce8604f86c12711f718994
Fix the build errors below [1][2].

```
[…]
/dev/shm/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel/os-mlock.c: In function ‘os_lock_user_pages’:
/dev/shm/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel/os-mlock.c:61:13: error: implicit declaration of function ‘page_cache_release’ [-Werror=implicit-function-declaration]
             page_cache_release(user_pages[i]);
             ^
cc1: some warnings being treated as errors
scripts/Makefile.build:291: recipe for target '/dev/shm/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel/os-mlock.o' failed
make[2]: *** [/dev/shm/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel/os-mlock.o] Error 1
Makefile:1429: recipe for target '_module_/dev/shm/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel' failed
make[1]: *** [_module_/dev/shm/bee-root/nvidia/nvidia_linux-4.6.3-91-340.96-0/source/kernel] Error 2
make[1]: Leaving directory '/dev/shm/linux-4.6.3-91.x86_64/source'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
Makefile:184: recipe for target 'nvidia.ko' failed
make: *** [nvidia.ko] Error 1
```

[1] https://github.com/manjaro/packages-extra/blame/ddae91f20ddf82874fce8604f86c12711f718994/linux46-extramodules/nvidia-340xx/PKGBUILD
[2] https://github.com/manjaro/packages-extra/issues/68
@pmenzel pmenzel changed the title Add inux 4.6.3 Add Linux 4.6.3 Jul 5, 2016
@donald donald merged commit f3f67b4 into master Jul 5, 2016
@donald donald deleted the add-linux-4.6.3 branch July 6, 2016 09:48
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants