Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dbannik opened this issue May 11, 2023 · 3 comments
Open

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

dbannik opened this issue May 11, 2023 · 3 comments

Comments

@dbannik
Copy link

dbannik commented May 11, 2023

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
@dbannik
Copy link
Author

dbannik commented May 11, 2023

Commit resolved issue Novando@8d32873

@soggo
Copy link

soggo commented Jul 16, 2023

How did you resolve it pls?

@Lassebq
Copy link

Lassebq commented Dec 18, 2024

fl2000_surface.c:158:31: error: assignment of read-only member 'vm_flags'
vm_flags is a const since 6.3

The issue has nothing to do with Novando@8d32873 or #67, that's for 5.x.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants