tuxedocomputers / tuxedo-keyboard

This repository will no longer get any updates as the code here is now part of tuxedo-drivers https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers.
https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers
GNU General Public License v3.0
299 stars 93 forks source link

error: ‘dmi_string_in’ defined but not used [-Werror=unused-function] #164

Closed lmoellendorf closed 11 months ago

lmoellendorf commented 1 year ago

I get a compile error on Linux 5.15.80 and 6.1.12 with tuxedo-keyboard-3.1.3 and tuxedo-keyboard-3.1.4:

Here is a patch provided by user tirnanog on #gentoo (libera.chat):

diff --git a/src/tuxedo_io/tuxedo_io.c b/src/tuxedo_io/tuxedo_io.c
index 07e0f02..b8c4e03 100644
--- a/src/tuxedo_io/tuxedo_io.c
+++ b/src/tuxedo_io/tuxedo_io.c
@@ -49,19 +49,6 @@ static u32 id_check_uniwill;

 static struct uniwill_device_features_t *uw_feats;

-/**
- * strstr version of dmi_match
- */
-static bool dmi_string_in(enum dmi_field f, const char *str)
-{
-   const char *info = dmi_get_system_info(f);
-
-   if (info == NULL || str == NULL)
-       return info == str;
-
-   return strstr(info, str) != NULL;
-}
-
 static u32 clevo_identify(void)
 {
    return clevo_get_active_interface_id(NULL) == 0 ? 1 : 0;
diff --git a/src/uniwill_keyboard.h b/src/uniwill_keyboard.h
index 2193516..4831c28 100644
--- a/src/uniwill_keyboard.h
+++ b/src/uniwill_keyboard.h
@@ -58,7 +58,6 @@
 #define UNIWILL_COLOR_DEFAULT          0xffffff

 static void uw_charging_priority_write_state(void);
-static void uw_charging_profile_write_state(void);

 struct tuxedo_keyboard_driver uniwill_keyboard_driver;

@@ -983,12 +982,6 @@ static int uw_has_charging_profile(bool *status)
    return 0;
 }

-static void uw_charging_profile_write_state(void)
-{
-   if (uw_charging_profile_loaded)
-       uw_set_charging_profile(uw_charging_profile_last_written_value);
-}
-
 static void uw_charging_profile_init(struct platform_device *dev)
 {
    u8 value;

If I understood correctly the patch as been made for 3.1.3, but I successfully applied it to 3.1.4. Both versions are affected.

Below is a build log from Gentoo portage emerge for 3.1.3, the result for 3.1.4 is similar.

 * Package:    app-laptop/tuxedo-keyboard-3.1.3-r1:0
 * Repository: gentoo
 * Maintainer: mschiff@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   ccache network-sandbox preserve-libs sandbox userpriv usersandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     6.1.12-gentoo-x86_64
 * Checking for suitable kernel configuration options ...
 [ ok ]
>>> Unpacking source...
>>> Unpacking tuxedo-keyboard-3.1.3.tar.gz to /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work
>>> Source unpacked in /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work
>>> Preparing source in /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3 ...
ln: failed to create symbolic link 'Module.symvers': File exists
 * Preparing clevo_acpi module
make -j17 HOSTCC=x86_64-pc-linux-gnu-gcc 'LDFLAGS=-m elf_x86_64' CC=x86_64-pc-linux-gnu-gcc KDIR=/usr/src/linux V=1 KBUILD_VERBOSE=1 all 
make -C /usr/src/linux M=/var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3 modules
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[1]: Entering directory '/usr/src/linux-6.1.12-gentoo'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (Gentoo Hardened 12.2.1_p20230121-r1 p10) 12.2.1 20230121
  You are using:           x86_64-pc-linux-gnu-gcc (Gentoo Hardened 12.2.1_p20230121-r1 p10) 12.2.1 20230121
make -f ./scripts/Makefile.build obj=/var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3 need-builtin=1 need-modorder=1 
  x86_64-pc-linux-gnu-gcc -Wp,-MMD,/var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/.tuxedo_keyboard.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=k8 -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=pattern -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Werror -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -DRANDSTRUCT -fplugin=./scripts/gcc-plugins/randomize_layout_plugin.so  -DMODULE  -DKBUILD_BASENAME='"tuxedo_keyboard"' -DKBUILD_MODNAME='"tuxedo_keyboard"' -D__KBUILD_MODNAME=kmod_tuxedo_keyboard -c -o /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/tuxedo_keyboard.o /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/tuxedo_keyboard.c   ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --retpoline --rethunk --static-call --uaccess   --module /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/tuxedo_keyboard.o
  ./scripts/check-local-export /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/tuxedo_keyboard.o
   { echo ; echo '/var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/tuxedo_keyboard.o: $(wildcard ./tools/objtool/objtool)' ; } >> /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/.tuxedo_keyboard.o.cmd
  if x86_64-pc-linux-gnu-nm /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/tuxedo_keyboard.o 2>/dev/null | grep -q __ksymtab; then x86_64-pc-linux-gnu-gcc -E -D__GENKSYMS__ -Wp,-MMD,/var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/.tuxedo_keyboard.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=k8 -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=pattern -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Werror -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -DRANDSTRUCT -fplugin=./scripts/gcc-plugins/randomize_layout_plugin.so  -DMODULE  -DKBUILD_BASENAME='"tuxedo_keyboard"' -DKBUILD_MODNAME='"tuxedo_keyboard"' -D__KBUILD_MODNAME=kmod_tuxedo_keyboard /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/tuxedo_keyboard.c | scripts/genksyms/genksyms   -r /dev/null >> /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/.tuxedo_keyboard.o.cmd; fi
  x86_64-pc-linux-gnu-gcc -Wp,-MMD,/var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/.clevo_wmi.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=k8 -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=pattern -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Werror -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -DRANDSTRUCT -fplugin=./scripts/gcc-plugins/randomize_layout_plugin.so  -DMODULE  -DKBUILD_BASENAME='"clevo_wmi"' -DKBUILD_MODNAME='"clevo_wmi"' -D__KBUILD_MODNAME=kmod_clevo_wmi -c -o /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/clevo_wmi.o /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/clevo_wmi.c   ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --retpoline --rethunk --static-call --uaccess   --module /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/clevo_wmi.o
  ./scripts/check-local-export /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/clevo_wmi.o
   { echo ; echo '/var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/clevo_wmi.o: $(wildcard ./tools/objtool/objtool)' ; } >> /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/.clevo_wmi.o.cmd
  if x86_64-pc-linux-gnu-nm /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/clevo_wmi.o 2>/dev/null | grep -q __ksymtab; then x86_64-pc-linux-gnu-gcc -E -D__GENKSYMS__ -Wp,-MMD,/var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/.clevo_wmi.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=k8 -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=pattern -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Werror -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -DRANDSTRUCT -fplugin=./scripts/gcc-plugins/randomize_layout_plugin.so  -DMODULE  -DKBUILD_BASENAME='"clevo_wmi"' -DKBUILD_MODNAME='"clevo_wmi"' -D__KBUILD_MODNAME=kmod_clevo_wmi /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/clevo_wmi.c | scripts/genksyms/genksyms   -r /dev/null >> /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/.clevo_wmi.o.cmd; fi
  x86_64-pc-linux-gnu-gcc -Wp,-MMD,/var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/.clevo_acpi.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=k8 -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=pattern -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Werror -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -DRANDSTRUCT -fplugin=./scripts/gcc-plugins/randomize_layout_plugin.so  -DMODULE  -DKBUILD_BASENAME='"clevo_acpi"' -DKBUILD_MODNAME='"clevo_acpi"' -D__KBUILD_MODNAME=kmod_clevo_acpi -c -o /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/clevo_acpi.o /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/clevo_acpi.c   ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --retpoline --rethunk --static-call --uaccess   --module /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/clevo_acpi.o
  ./scripts/check-local-export /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/clevo_acpi.o
   { echo ; echo '/var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/clevo_acpi.o: $(wildcard ./tools/objtool/objtool)' ; } >> /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/.clevo_acpi.o.cmd
  if x86_64-pc-linux-gnu-nm /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/clevo_acpi.o 2>/dev/null | grep -q __ksymtab; then x86_64-pc-linux-gnu-gcc -E -D__GENKSYMS__ -Wp,-MMD,/var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/.clevo_acpi.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=k8 -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=pattern -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Werror -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -DRANDSTRUCT -fplugin=./scripts/gcc-plugins/randomize_layout_plugin.so  -DMODULE  -DKBUILD_BASENAME='"clevo_acpi"' -DKBUILD_MODNAME='"clevo_acpi"' -D__KBUILD_MODNAME=kmod_clevo_acpi /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/clevo_acpi.c | scripts/genksyms/genksyms   -r /dev/null >> /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/.clevo_acpi.o.cmd; fi
  x86_64-pc-linux-gnu-gcc -Wp,-MMD,/var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/tuxedo_io/.tuxedo_io.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=k8 -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=pattern -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Werror -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -DRANDSTRUCT -fplugin=./scripts/gcc-plugins/randomize_layout_plugin.so  -DMODULE  -DKBUILD_BASENAME='"tuxedo_io"' -DKBUILD_MODNAME='"tuxedo_io"' -D__KBUILD_MODNAME=kmod_tuxedo_io -c -o /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/tuxedo_io/tuxedo_io.o /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/tuxedo_io/tuxedo_io.c   ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --retpoline --rethunk --static-call --uaccess   --module /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/tuxedo_io/tuxedo_io.o
/var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/tuxedo_io/tuxedo_io.c:55:13: error: ‘dmi_string_in’ defined but not used [-Werror=unused-function]
   55 | static bool dmi_string_in(enum dmi_field f, const char *str)
      |             ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [scripts/Makefile.build:250: /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3/./src/tuxedo_io/tuxedo_io.o] Error 1
make[1]: *** [Makefile:2005: /var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3] Error 2
make[1]: Leaving directory '/usr/src/linux-6.1.12-gentoo'
make: *** [Makefile:29: all] Error 2
 * ERROR: app-laptop/tuxedo-keyboard-3.1.3-r1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-laptop/tuxedo-keyboard-3.1.3-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-laptop/tuxedo-keyboard-3.1.3-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3'
 * S: '/var/tmp/portage/app-laptop/tuxedo-keyboard-3.1.3-r1/work/tuxedo-keyboard-3.1.3'
Kangie commented 1 year ago

162

tuxedo-bot commented 11 months ago

This repository will no longer get any updates as the code here is now part of tuxedo-drivers https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers.

Please open a merge request or issue in the new project on GitLab if you contribution or bug report still applies.