Skip to content

Doesn't build with Linux 5.8 #6

@felixonmars

Description

@felixonmars

I cannot find a way to allocate PAGE_KERNEL_EXEC anymore in the new version. __vmalloc doesn't have that parameter now and __vmalloc_node_range is no longer exported.

  CC [M]  /tmp/ndiswrapper-arch/trunk/src/ndiswrapper-1.62/driver/loader.o
/tmp/ndiswrapper-arch/trunk/src/ndiswrapper-1.62/driver/loader.c: In function ‘load_sys_files’:
/tmp/ndiswrapper-arch/trunk/src/ndiswrapper-1.62/driver/loader.c:157:4: error: too many arguments to function ‘__vmalloc’
  157 |    __vmalloc(load_driver->sys_files[i].size,
      |    ^~~~~~~~~
In file included from ./include/asm-generic/io.h:911,
                 from ./arch/x86/include/asm/io.h:375,
                 from ./include/linux/scatterlist.h:9,
                 from ./include/linux/dma-mapping.h:11,
                 from ./include/linux/skbuff.h:31,
                 from ./include/linux/if_ether.h:19,
                 from ./include/uapi/linux/ethtool.h:19,
                 from ./include/linux/ethtool.h:18,
                 from ./include/linux/netdevice.h:37,
                 from /tmp/ndiswrapper-arch/trunk/src/ndiswrapper-1.62/driver/ntoskernel.h:25,
                 from /tmp/ndiswrapper-arch/trunk/src/ndiswrapper-1.62/driver/ndis.h:19,
                 from /tmp/ndiswrapper-arch/trunk/src/ndiswrapper-1.62/driver/loader.c:16:
./include/linux/vmalloc.h:111:14: note: declared here
  111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
      |              ^~~~~~~~~
make[2]: *** [scripts/Makefile.build:281: /tmp/ndiswrapper-arch/trunk/src/ndiswrapper-1.62/driver/loader.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions