Giter Club home page Giter Club logo

Comments (10)

vrolife avatar vrolife commented on June 29, 2024

试试最新的suse分支98d14f1

from modern_laptop.

xmu714 avatar xmu714 commented on June 29, 2024

变成了新的错误:

DKMS make.log for redmibook_kbd_backlight-1.0.2 for kernel 5.19.2-1-default (x86_64)
2022年 08月 23日 星期二 14:22:19 CST
make -C /lib/modules/5.19.2-1-default/build M=`pwd` modules
make[1]: 警告: jobserver 不可用: 正使用 -j1。添加 “+” 到父 make 的规则。
make[1]: 进入目录“/usr/src/linux-5.19.2-1-obj/x86_64/default”
  CC [M]  /var/lib/dkms/redmibook_kbd_backlight/1.0.2/build/redmibook_kbd_backlight.o
/var/lib/dkms/redmibook_kbd_backlight/1.0.2/build/redmibook_kbd_backlight.c: 在函数‘ec_init’中:
/var/lib/dkms/redmibook_kbd_backlight/1.0.2/build/redmibook_kbd_backlight.c:188:5: 错误:implicit declaration of function ‘acpi_bus_get_device’; did you mean ‘acpi_is_pnp_device’? [-Werror=implicit-function-declaration]
  188 |     acpi_bus_get_device(handle_EC0, &device);
      |     ^~~~~~~~~~~~~~~~~~~
      |     acpi_is_pnp_device
cc1:有些警告被当作是错误
make[2]: *** [/usr/src/linux-5.19.2-1/scripts/Makefile.build:250:/var/lib/dkms/redmibook_kbd_backlight/1.0.2/build/redmibook_kbd_backlight.o] 错误 1
make[1]: *** [../../../linux-5.19.2-1/Makefile:1863:/var/lib/dkms/redmibook_kbd_backlight/1.0.2/build] 错误 2
make[1]: 离开目录“/usr/src/linux-5.19.2-1-obj/x86_64/default”
make: *** [Makefile:5:all] 错误 2

from modern_laptop.

vrolife avatar vrolife commented on June 29, 2024

忘记提升版本号了 试这个1051a9f

from modern_laptop.

xmu714 avatar xmu714 commented on June 29, 2024

忘记提升版本号了 试这个1051a9f

悲,又出现了错误:

DKMS make.log for redmibook_kbd_backlight-1.0.3 for kernel 5.19.2-1-default (x86_64)
2022年 08月 23日 星期二 14:50:54 CST
make -C /lib/modules/5.19.2-1-default/build M=`pwd` modules
make[1]: 警告: jobserver 不可用: 正使用 -j1。添加 “+” 到父 make 的规则。
make[1]: 进入目录“/usr/src/linux-5.19.2-1-obj/x86_64/default”
  CC [M]  /var/lib/dkms/redmibook_kbd_backlight/1.0.3/build/redmibook_kbd_backlight.o
/var/lib/dkms/redmibook_kbd_backlight/1.0.3/build/redmibook_kbd_backlight.c: 在函数‘ec_init’中:
/var/lib/dkms/redmibook_kbd_backlight/1.0.3/build/redmibook_kbd_backlight.c:188:6: 警告:"LINUX_VERSION_CODE" is not defined, evaluates to 0 [-Wundef]
  188 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0))
      |      ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/redmibook_kbd_backlight/1.0.3/build/redmibook_kbd_backlight.c:188:28: 警告:"KERNEL_VERSION" is not defined, evaluates to 0 [-Wundef]
  188 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0))
      |                            ^~~~~~~~~~~~~~
/var/lib/dkms/redmibook_kbd_backlight/1.0.3/build/redmibook_kbd_backlight.c:188:42: 错误:missing binary operator before token "("
  188 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0))
      |                                          ^
/var/lib/dkms/redmibook_kbd_backlight/1.0.3/build/redmibook_kbd_backlight.c:191:5: 错误:implicit declaration of function ‘acpi_bus_get_device’; did you mean ‘acpi_is_pnp_device’? [-Werror=implicit-function-declaration]
  191 |     acpi_bus_get_device(handle_EC0, &device);
      |     ^~~~~~~~~~~~~~~~~~~
      |     acpi_is_pnp_device
cc1:有些警告被当作是错误
make[2]: *** [/usr/src/linux-5.19.2-1/scripts/Makefile.build:250:/var/lib/dkms/redmibook_kbd_backlight/1.0.3/build/redmibook_kbd_backlight.o] 错误 1
make[1]: *** [../../../linux-5.19.2-1/Makefile:1863:/var/lib/dkms/redmibook_kbd_backlight/1.0.3/build] 错误 2
make[1]: 离开目录“/usr/src/linux-5.19.2-1-obj/x86_64/default”
make: *** [Makefile:5:all] 错误 2

from modern_laptop.

xmu714 avatar xmu714 commented on June 29, 2024

应该是那个if判断的函数有问题,我这边把那一段判断去除,直接改用device = acpi_fetch_acpi_dev(handle_EC0);,然后手动删掉src那个目录缓存的源代码,重新编译安装成功了,不过为了通用性,估计那个判断还是要想办法修复一下😂

from modern_laptop.

xmu714 avatar xmu714 commented on June 29, 2024

我现在手动改代码之后编译安装成功,然后按F10可以调节背光了,应该就是成功了吧😂
辛苦老哥,剩下就是那个判断逻辑了

from modern_laptop.

vrolife avatar vrolife commented on June 29, 2024

我的锅,没测试过就扔上来。改天得空再弄个CI。e220d2d 这个commit后应该没问题了。

from modern_laptop.

xmu714 avatar xmu714 commented on June 29, 2024

我的锅,没测试过就扔上来。改天得空再弄个CI。e220d2d 这个commit后应该没问题了。

那个LINUX_VERSION_CODEKERNEL_VERSION可能要看下怎么解决没有定义的问题,我当时是直接把整个if块都给换了,直接device = acpi_fetch_acpi_dev(handle_EC0);😂

from modern_laptop.

vrolife avatar vrolife commented on June 29, 2024

LINUX_VERSION_CODE这个宏的问题在这个commit后已经解决了。76e2b35

from modern_laptop.

xmu714 avatar xmu714 commented on June 29, 2024

好的,谢谢老哥

from modern_laptop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.