Skip to content

linuxPackages.qc71_laptop: install module through modules_install - #588440

Draft
vpayno wants to merge 1 commit into
NixOS:masterfrom
vpayno:master-fix-kernel-qc71_laptop
Draft

vpayno wants to merge 1 commit into
NixOS:masterfrom
vpayno:master-fix-kernel-qc71_laptop

Conversation

@vpayno

@vpayno vpayno commented Nov 15, 2026

Copy link
Copy Markdown
Contributor
./result
└── lib
    └── modules
        └── 6.18.63
            └── extra
                └── qc71_laptop.ko
./result
└── lib
    └── modules
        └── 6.18.63
            └── extra
                ├── qc71_laptop.ko.cer
                └── qc71_laptop.ko.xz

Things done

@nixpkgs-ci
nixpkgs-ci Bot requested a review from aacebedo November 15, 2026 02:28
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. labels Nov 15, 2026
@vpayno

vpayno commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 588440
Commit: 2fd3337e733033ae6b4789452ace923a120c7d8e


x86_64-linux

❌ 1 package failed to build:
  • linuxKernel.packages.linux_6_1.qc71_laptop
✅ 7 packages built:
  • linuxKernel.packages.linux_6_12.qc71_laptop
  • linuxPackages.qc71_laptop (linuxKernel.packages.linux_6_18.qc71_laptop)
  • linuxKernel.packages.linux_6_6.qc71_laptop
  • linuxPackages_latest.qc71_laptop (linuxKernel.packages.linux_7_3.qc71_laptop)
  • linuxPackages_xanmod.qc71_laptop (linuxKernel.packages.linux_xanmod.qc71_laptop)
  • linuxPackages_xanmod_latest.qc71_laptop (linuxKernel.packages.linux_xanmod_latest.qc71_laptop, linuxPackages_xanmod_stable.qc71_laptop)
  • linuxPackages_zen.qc71_laptop (linuxKernel.packages.linux_zen.qc71_laptop)

linuxKernel.packages.linux_6_1.qc71_laptop
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /build/source/battery.o
/build/source/battery.c:103:27: error: initialization of 'int (*)(struct power_supply *, struct acpi_battery_hook *)' from incompatible pointer type 'int (*)(struct power_supply *)' [8;;https://gcc.gnu.org/onlinedocs/gcc-16.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types�-Wincompatible-pointer-types8;;�]
  103 |         .add_battery    = qc71_laptop_batt_add,
      |                           ^~~~~~~~~~~~~~~~~~~~
/build/source/battery.c:103:27: note: (near initialization for 'qc71_laptop_batt_hook.add_battery')
/build/source/battery.c:80:12: note: 'qc71_laptop_batt_add' declared here
   80 | static int qc71_laptop_batt_add(struct power_supply *battery)
      |            ^~~~~~~~~~~~~~~~~~~~
/build/source/battery.c:104:27: error: initialization of 'int (*)(struct power_supply *, struct acpi_battery_hook *)' from incompatible pointer type 'int (*)(struct power_supply *)' [8;;https://gcc.gnu.org/onlinedocs/gcc-16.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types�-Wincompatible-pointer-types8;;�]
  104 |         .remove_battery = qc71_laptop_batt_remove,
      |                           ^~~~~~~~~~~~~~~~~~~~~~~
/build/source/battery.c:104:27: note: (near initialization for 'qc71_laptop_batt_hook.remove_battery')
/build/source/battery.c:92:12: note: 'qc71_laptop_batt_remove' declared here
   92 | static int qc71_laptop_batt_remove(struct power_supply *battery)
      |            ^~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [/nix/store/p9hcbs1xlnaxhyk7bbxygq744vrqx0fm-linux-6.1.192-dev/lib/modules/6.1.192/source/scripts/Makefile.build:250: /build/source/battery.o] Error 1
make[1]: *** [/nix/store/p9hcbs1xlnaxhyk7bbxygq744vrqx0fm-linux-6.1.192-dev/lib/modules/6.1.192/source/Makefile:2040: /build/source] Error 2
make[1]: Leaving directory '/nix/store/p9hcbs1xlnaxhyk7bbxygq744vrqx0fm-linux-6.1.192-dev/lib/modules/6.1.192/build'
make: *** [Makefile:25: all] Error 2

@vpayno

vpayno commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

The module also fails on the master branch for linuxPackages_6_1.qc71_laptop.

It last succeeded for 6.1.190: https://hydra.nixos.org/build/353090391

Upstream hasn't been updated since January, 7 2025: https://github.com/pobrn/qc71_laptop/

@vpayno
vpayno force-pushed the master-fix-kernel-qc71_laptop branch from 2fd3337 to a636730 Compare November 21, 2026 04:56
```text
./result
└── lib
    └── modules
        └── 6.18.63
            └── extra
                └── qc71_laptop.ko
```

```text
./result
└── lib
    └── modules
        └── 6.18.63
            └── extra
                ├── qc71_laptop.ko.cer
                └── qc71_laptop.ko.xz
```
@vpayno
vpayno force-pushed the master-fix-kernel-qc71_laptop branch from a636730 to d9031b8 Compare November 27, 2026 22:18
@vpayno

vpayno commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 588440
Commit: d9031b862ae5d386cdbada670444a0e85b9a9061


x86_64-linux

❌ 1 package failed to build:
  • linuxKernel.packages.linux_6_1.qc71_laptop
✅ 7 packages built:
  • linuxPackages_xanmod_stable.qc71_laptop (linuxKernel.packages.linux_xanmod_stable.qc71_laptop, linuxKernel.packages.linux_xanmod_latest.qc71_laptop, linuxPackages_xanmod_latest.qc71_laptop)
  • linuxKernel.packages.linux_6_6.qc71_laptop
  • linuxPackages_zen.qc71_laptop (linuxKernel.packages.linux_zen.qc71_laptop)
  • linuxKernel.packages.linux_6_12.qc71_laptop
  • linuxPackages.qc71_laptop (linuxKernel.packages.linux_6_18.qc71_laptop)
  • linuxPackages_xanmod.qc71_laptop (linuxKernel.packages.linux_xanmod.qc71_laptop)
  • linuxPackages_latest.qc71_laptop (linuxKernel.packages.linux_7_3.qc71_laptop)

linuxKernel.packages.linux_6_1.qc71_laptop
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /build/source/battery.o
/build/source/battery.c:103:27: error: initialization of 'int (*)(struct power_supply *, struct acpi_battery_hook *)' from incompatible pointer type 'int (*)(struct power_supply *)' [8;;https://gcc.gnu.org/onlinedocs/gcc-16.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types�-Wincompatible-pointer-types8;;�]
  103 |         .add_battery    = qc71_laptop_batt_add,
      |                           ^~~~~~~~~~~~~~~~~~~~
/build/source/battery.c:103:27: note: (near initialization for 'qc71_laptop_batt_hook.add_battery')
/build/source/battery.c:80:12: note: 'qc71_laptop_batt_add' declared here
   80 | static int qc71_laptop_batt_add(struct power_supply *battery)
      |            ^~~~~~~~~~~~~~~~~~~~
/build/source/battery.c:104:27: error: initialization of 'int (*)(struct power_supply *, struct acpi_battery_hook *)' from incompatible pointer type 'int (*)(struct power_supply *)' [8;;https://gcc.gnu.org/onlinedocs/gcc-16.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types�-Wincompatible-pointer-types8;;�]
  104 |         .remove_battery = qc71_laptop_batt_remove,
      |                           ^~~~~~~~~~~~~~~~~~~~~~~
/build/source/battery.c:104:27: note: (near initialization for 'qc71_laptop_batt_hook.remove_battery')
/build/source/battery.c:92:12: note: 'qc71_laptop_batt_remove' declared here
   92 | static int qc71_laptop_batt_remove(struct power_supply *battery)
      |            ^~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [/nix/store/darcvdcxd8nqd56c767ds30hyx9xzis4-linux-6.1.193-dev/lib/modules/6.1.193/source/scripts/Makefile.build:250: /build/source/battery.o] Error 1
make[1]: *** [/nix/store/darcvdcxd8nqd56c767ds30hyx9xzis4-linux-6.1.193-dev/lib/modules/6.1.193/source/Makefile:2040: /build/source] Error 2
make[1]: Leaving directory '/nix/store/darcvdcxd8nqd56c767ds30hyx9xzis4-linux-6.1.193-dev/lib/modules/6.1.193/build'
make: *** [Makefile:25: all] Error 2

@vpayno

vpayno commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

With the new 6.1.193 kernel the module is still failing to build.

Since in theory it should be very easy with NixOS to switch from 6.1 LTS to 6.6, 6.12 or 6.18 LTS and the fact the module isn't maintained upstream, would we mark this module as broken for 6.1?

As 6.1 and 6.6 have will be EOL in 2027-12, should users of this module be encourage to move to a newer LTS kernel (6.12 & 6.18 will be EOL in 2028-12)?

@vpayno
vpayno marked this pull request as draft November 27, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant