Skip to content

Faild compile linux-headers-6.2.0-20-generic #94

@dbannik

Description

@dbannik
make -C /usr/src/linux-headers-`uname -r` M=/home/dimon/FL2000/src modules
make[1]: Entering directory '/usr/src/linux-headers-6.2.0-20-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.2.0-17ubuntu1) 12.2.0
  You are using:           gcc-12 (Ubuntu 12.2.0-17ubuntu1) 12.2.0
  CC [M]  /home/dimon/FL2000/src/fl2000_module.o
  CC [M]  /home/dimon/FL2000/src/fl2000_bulk.o
  CC [M]  /home/dimon/FL2000/src/fl2000_ioctl.o
  CC [M]  /home/dimon/FL2000/src/fl2000_render.o
  CC [M]  /home/dimon/FL2000/src/fl2000_dev.o
  CC [M]  /home/dimon/FL2000/src/fl2000_dongle.o
  CC [M]  /home/dimon/FL2000/src/fl2000_big_table.o
  CC [M]  /home/dimon/FL2000/src/fl2000_i2c.o
  CC [M]  /home/dimon/FL2000/src/fl2000_register.o
  CC [M]  /home/dimon/FL2000/src/fl2000_monitor.o
  CC [M]  /home/dimon/FL2000/src/fl2000_desc.o
  CC [M]  /home/dimon/FL2000/src/fl2000_interrupt.o
  CC [M]  /home/dimon/FL2000/src/fl2000_compression.o
  CC [M]  /home/dimon/FL2000/src/fl2000_surface.o
/home/dimon/FL2000/src/fl2000_surface.c: In function ‘fl2000_surface_pin_down’:
/home/dimon/FL2000/src/fl2000_surface.c:109:49: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
  109 |                         down_read(&current->mm->mmap_sem);
      |                                                 ^~~~~~~~
      |                                                 mmap_base
/home/dimon/FL2000/src/fl2000_surface.c:115:47: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
  115 |                         up_read(&current->mm->mmap_sem);
      |                                               ^~~~~~~~
      |                                               mmap_base
/home/dimon/FL2000/src/fl2000_surface.c:129:41: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
  129 |                 down_read(&current->mm->mmap_sem);
      |                                         ^~~~~~~~
      |                                         mmap_base
/home/dimon/FL2000/src/fl2000_surface.c:144:39: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
  144 |                 up_read(&current->mm->mmap_sem);
      |                                       ^~~~~~~~
      |                                       mmap_base
/home/dimon/FL2000/src/fl2000_surface.c: In function ‘fl2000_surface_map’:
/home/dimon/FL2000/src/fl2000_surface.c:228:42: error: too many arguments to function ‘vm_map_ram’
  228 |                 surface->mapped_buffer = vm_map_ram(
      |                                          ^~~~~~~~~~
In file included from /home/dimon/FL2000/src/fl2000_include.h:30,
                 from /home/dimon/FL2000/src/fl2000_surface.c:8:
./include/linux/vmalloc.h:129:14: note: declared here
  129 | extern void *vm_map_ram(struct page **pages, unsigned int count, int node);
      |              ^~~~~~~~~~
make[2]: *** [scripts/Makefile.build:260: /home/dimon/FL2000/src/fl2000_surface.o] Error 1
make[1]: *** [Makefile:2026: /home/dimon/FL2000/src] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.2.0-20-generic'
make: *** [Makefile:41: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions