devfreq: add compatibility wrapper for moved governor.h - #1087
Salendarsingh Gaud (sgaud-quic) wants to merge 1 commit into
Conversation
Commit 6df46fd ("FROMGIT: PM / devfreq: Move governor.h to a public header location") was backported into qcom-6.18.y, relocating drivers/devfreq/governor.h to include/linux/devfreq-governor.h. Out-of-tree kernel modules (e.g. kgsl-dlkm) that build against qcom-6.18.y add drivers/devfreq/ to their include search path via ccflags-y += -I$(KERNEL_SRC)/drivers/devfreq and use: #include "governor.h" After the move that file is gone, causing a build failure for every Yocto target that builds kgsl-dlkm: governor_msm_adreno_tz.c:30:10: fatal error: governor.h: No such file or directory governor_gpubw_mon.c:14:10: fatal error: governor.h: No such file or directory Add a compatibility wrapper at the old location that transparently redirects to the new public header. This is the standard Linux kernel pattern for header relocations and avoids breaking existing out-of-tree consumers while they migrate. New in-tree and out-of-tree drivers must use #include <linux/devfreq-governor.h> directly. This shim will be removed once all known consumers are updated. Fixes: 6df46fd ("FROMGIT: PM / devfreq: Move governor.h to a public header location") Signed-off-by: Salendarsingh Gaud <sgaud@qti.qualcomm.com>
|
Merge Check Failed: No CR Numbers Found Error: No Change Request numbers were found. Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests. |
PR #1087 — validate-patchPR: #1087
Final Summary
|
PR #1087 — checker-log-analyzerPR: #1087
Detailed report: Full report
|
devfreq: add compatibility wrapper for moved governor.h
Problem
All Yocto nightly builds against
qcom-6.18.ytip are failing with:Root Cause
Commit
6df46fd1d1b5(FROMGIT: PM / devfreq: Move governor.h to a public header location) was backported intoqcom-6.18.y, relocatingdrivers/devfreq/governor.h→include/linux/devfreq-governor.h.Out-of-tree modules such as
kgsl-dlkmbuild with:and include the header as:
kgsl-dlkmv1.0.14 guards the new path behindKERNEL_VERSION(6, 19, 0)(matching the upstream mainline target), so on
qcom-6.18.ythe old pathis taken — but the file is gone.
Fix
Add a compatibility wrapper at
drivers/devfreq/governor.hthattransparently forwards to
<linux/devfreq-governor.h>. This is thestandard Linux kernel pattern for header relocations (used widely across
subsystems) and avoids breaking existing out-of-tree consumers while they
migrate.
New drivers must use
#include <linux/devfreq-governor.h>directly.This shim can be dropped once all known consumers (kgsl-dlkm etc.) are
updated to use the new path.
Related
KERNEL_VERSION(6, 19, 0)to__has_include(<linux/devfreq-governor.h>)Fixes: 6df46fd ("FROMGIT: PM / devfreq: Move governor.h to a public header location")