openwrtv3/package/kernel
Christian Lamparter 3fce12568a kernel: modules: fix kmod-regmap redux
Jonas Gorski commented on the previous patch:
|This is actually the wrong fix and papers over an issue in one of our
|local patches.
|
|We intentionally allow regmap to be built as a module, see
|
|/target/linux/generic/hack-4.14/259-regmap_dynamic.patch
|[...]
|[The regulator code] optionally supports regmap thanks to the stubs
|provided if regmap is disabled - which breaks if you compile regmap
|as a module.

In order to mitigate this issue, this patch reverts the previous patch
and replaces the existing IS_ENABLED(CONFIG_REGMAP) with
IS_REACHABLE(CONFIG_REGMAP). This solves this particular issue as the
regulator code will now automatically fallback to the regmap stubs in
case the kmod-regmap module is enabled, but nothing else sets
CONFIG_REGMAP=y.

Note: There's still a potential issue that this patch doesn't solve:
If someone ever wants to make a OpenWrt kernel package for a
regulator module that requires the REGMAP feature for a target that
doesn't set CONFIG_REGMAP=y but has CONFIG_REGULATOR=y, the resulting
kmod-regulator-xyz package will not work on the target.
Luckily, there aren't any in-tree OpenWrt kernel module packages for
regulators at the moment. On the bright side: regmap is a critical
part nowadays and all new and upcoming architectures require it by
default. This will likely only ever be a problem for legacy targets
and devices that cannot afford to enable REGMAP.

Cc: Jonas Gorski <jonas.gorski@gmail.com>
Cc: John Crispin <john@phrozen.org>
Fixes: d00913d121 ("kernel: modules: fix kmod-regmap")
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2018-08-06 07:17:12 +02:00
..
acx-mac80211 acx-mac80211: fix build on kernel 4.9 2017-11-22 08:21:53 +01:00
ar7-atm ar7-atm: fix function signatures with expected ones 2017-10-29 23:41:00 +01:00
ath10k-ct ath10k-ct: fix build with current mac80211 package 2018-07-30 15:03:44 +02:00
avila-wdt build: use KERNEL_MAKE_FLAGS for kernel file compilations 2017-10-29 16:17:05 +01:00
brcm2708-gpu-fw brcm2708: Update brcm2708-gpu-fw package 2018-06-07 09:00:13 +02:00
broadcom-wl broadcom-wl: fix compilation with 4.14 2018-02-11 23:15:05 +01:00
button-hotplug build: use KERNEL_MAKE_FLAGS for kernel file compilations 2017-10-29 16:17:05 +01:00
dtc/patches package: kernel: dtc: Add DTO support 2017-11-06 16:39:41 +01:00
gpio-button-hotplug build: use KERNEL_MAKE_FLAGS for kernel file compilations 2017-10-29 16:17:05 +01:00
gpio-nct5104d kernel: gpio-nct5104d remove boardname check 2018-07-12 08:51:27 +02:00
hwmon-gsc build: use KERNEL_MAKE_FLAGS for kernel file compilations 2017-10-29 16:17:05 +01:00
i2c-gpio-custom build: use KERNEL_MAKE_FLAGS for kernel file compilations 2017-10-29 16:17:05 +01:00
kmod-sched-cake kmod-sched-cake: bump to 20180728 optional gso split 2018-08-02 22:00:19 +01:00
lantiq ltq-vdsl-fw: fix ltq-vdsl-vr9-vectoring-fw-installer package install 2018-06-21 12:00:12 +02:00
leds-apu2 kernel: leds-apu2 remove boardname check 2018-07-16 15:12:17 +02:00
linux kernel: modules: fix kmod-regmap redux 2018-08-06 07:17:12 +02:00
mac80211 mac80211: brcmfmac: backport patch for per-firmware features 2018-07-31 09:45:03 +02:00
mt76 mt76: update to the latest version 2018-07-13 16:36:56 +02:00
mwlwifi mwlwifi: update to version 10.3.8.0-20180615 2018-06-19 14:32:47 +02:00
om-watchdog treewide: use the generic board_name function 2017-07-15 23:13:34 +02:00
rotary-gpio-custom build: use KERNEL_MAKE_FLAGS for kernel file compilations 2017-10-29 16:17:05 +01:00
rtc-rv5c386a build: use KERNEL_MAKE_FLAGS for kernel file compilations 2017-10-29 16:17:05 +01:00
spi-gpio-custom build: use KERNEL_MAKE_FLAGS for kernel file compilations 2017-10-29 16:17:05 +01:00
trelay build: add KERNEL_MAKE and KERNEL_MAKE_FLAGS variables and move to kernel.mk 2017-06-07 18:31:10 +02:00
w1-gpio-custom build: use KERNEL_MAKE_FLAGS for kernel file compilations 2017-10-29 16:17:05 +01:00