]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal/thresholds: Fix uapi header macros leading to a compilation error
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 12 Dec 2024 20:13:10 +0000 (21:13 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 16 Dec 2024 20:30:20 +0000 (21:30 +0100)
commit65c8c78cc74d5bcbc43f1f785a004796a2d78360
tree8fb54b4f66d801545adc6890b84d69f30bdc5c1b
parent78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8
thermal/thresholds: Fix uapi header macros leading to a compilation error

The macros giving the direction of the crossing thresholds use the BIT
macro which is not exported to the userspace. Consequently when an
userspace program includes the header, it fails to compile.

Replace the macros by their litteral to allow the compilation of
userspace program using this header.

Fixes: 445936f9e258 ("thermal: core: Add user thresholds support")
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://patch.msgid.link/20241212201311.4143196-1-daniel.lezcano@linaro.org
[ rjw: Add Fixes: ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/uapi/linux/thermal.h