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

Rocky 9.4 make issues #29

Open
aztlanla opened this issue Jul 16, 2024 · 0 comments
Open

Rocky 9.4 make issues #29

aztlanla opened this issue Jul 16, 2024 · 0 comments

Comments

@aztlanla
Copy link

Hi guys, I'm trying to use thinklmi to set the boot order, but we are having issues with make.
We also tried efibootmgr, but that is not working for us either to set boot order.

Thanks

[root@dumpster-fire thinklmi-kernel]# neofetch
        #####           root@dumpster-fire 
       #######          ---------------------------------- 
       ##O#O##          OS: Rocky Linux 9.4 (Blue Onyx) x86_64 
       #######          Host: XXXXXXXXXX ThinkStation P620 
     ###########        Kernel: 5.14.0-427.22.1.el9_4.x86_64 
    #############       Uptime: 8 days, 3 hours, 35 mins 
   ###############      Packages: 2061 (rpm) 
   ################     Shell: bash 5.1.8 
  #################     Resolution: 1280x1024 
#####################   CPU: AMD Ryzen Threadripper PRO 3995WX s (128) @ 2.700GHz 
#####################   GPU: NVIDIA RTX A6000 
  #################     Memory: 4473MiB / 257037MiB 
[root@dumpster-fire thinklmi-kernel]# 
[root@dumpster-fire thinklmi-kernel]# make
make -C /lib/modules/5.14.0-427.22.1.el9_4.x86_64/build M=/root/thinklmi/thinklmi-kernel modules
make[1]: Entering directory '/usr/src/kernels/5.14.0-427.22.1.el9_4.x86_64'
  CC [M]  /root/thinklmi/thinklmi-kernel/think-lmi.o
/root/thinklmi/thinklmi-kernel/think-lmi.c: In function ‘think_lmi_set_bios_settings’:
/root/thinklmi/thinklmi-kernel/think-lmi.c:397:20: warning: passing argument 1 of ‘strreplace’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  397 |         strreplace(settings,'\\','/');
      |                    ^~~~~~~~
In file included from ./include/linux/bitmap.h:11,
                 from ./include/linux/cpumask.h:12,
                 from ./include/linux/smp.h:13,
                 from ./include/linux/lockdep.h:14,
                 from ./include/linux/mutex.h:17,
                 from ./include/linux/kernfs.h:12,
                 from ./include/linux/sysfs.h:16,
                 from ./include/linux/kobject.h:20,
                 from ./include/linux/of.h:17,
                 from ./include/linux/irqdomain.h:36,
                 from ./include/linux/acpi.h:13,
                 from /root/thinklmi/thinklmi-kernel/think-lmi.c:29:
./include/linux/string.h:172:24: note: expected ‘char *’ but argument is of type ‘const char *’
  172 | char *strreplace(char *s, char old, char new);
      |                  ~~~~~~^
In file included from ./include/linux/linkage.h:7,
                 from ./include/linux/kernel.h:8,
                 from ./include/linux/list.h:9,
                 from ./include/linux/kobject.h:19,
                 from ./include/linux/of.h:17,
                 from ./include/linux/irqdomain.h:36,
                 from ./include/linux/acpi.h:13,
                 from /root/thinklmi/thinklmi-kernel/think-lmi.c:29:
/root/thinklmi/thinklmi-kernel/think-lmi.c: In function ‘think_lmi_chardev_initialize’:
./include/linux/export.h:17:22: error: passing argument 1 of ‘class_create’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   17 | #define THIS_MODULE (&__this_module)
      |                     ~^~~~~~~~~~~~~~~
      |                      |
      |                      struct module *
/root/thinklmi/thinklmi-kernel/think-lmi.c:809:35: note: in expansion of macro ‘THIS_MODULE’
  809 |         tlmi_class = class_create(THIS_MODULE, "char");
      |                                   ^~~~~~~~~~~
In file included from ./include/linux/device.h:31,
                 from ./include/linux/acpi.h:15,
                 from /root/thinklmi/thinklmi-kernel/think-lmi.c:29:
./include/linux/device/class.h:230:54: note: expected ‘const char *’ but argument is of type ‘struct module *’
  230 | struct class * __must_check class_create(const char *name);
      |                                          ~~~~~~~~~~~~^~~~
/root/thinklmi/thinklmi-kernel/think-lmi.c:809:22: error: too many arguments to function ‘class_create’
  809 |         tlmi_class = class_create(THIS_MODULE, "char");
      |                      ^~~~~~~~~~~~
In file included from ./include/linux/device.h:31,
                 from ./include/linux/acpi.h:15,
                 from /root/thinklmi/thinklmi-kernel/think-lmi.c:29:
./include/linux/device/class.h:230:29: note: declared here
  230 | struct class * __must_check class_create(const char *name);
      |                             ^~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:299: /root/thinklmi/thinklmi-kernel/think-lmi.o] Error 1
make[1]: *** [Makefile:1934: /root/thinklmi/thinklmi-kernel] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.14.0-427.22.1.el9_4.x86_64'
make: *** [Makefile:11: default] Error 2
[root@dumpster-fire thinklmi-kernel]# 
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

1 participant