mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
![]() A new warning in clang points out a use of bitwise OR with boolean
expressions in this driver:
drivers/platform/x86/thinkpad_acpi.c:9061:11: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
else if ((strlencmp(cmd, "level disengaged") == 0) |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
||
drivers/platform/x86/thinkpad_acpi.c:9061:11: note: cast one or both operands to int to silence this warning
1 error generated.
This should clearly be a logical OR so change it to fix the warning.
Fixes:
|
||
---|---|---|
.. | ||
dell | ||
intel | ||
acer-wireless.c | ||
acer-wmi.c | ||
acerhdf.c | ||
adv_swbutton.c | ||
amd-pmc.c | ||
amilo-rfkill.c | ||
apple-gmux.c | ||
asus-laptop.c | ||
asus-nb-wmi.c | ||
asus-wireless.c | ||
asus-wmi.c | ||
asus-wmi.h | ||
classmate-laptop.c | ||
compal-laptop.c | ||
dual_accel_detect.h | ||
eeepc-laptop.c | ||
eeepc-wmi.c | ||
firmware_attributes_class.c | ||
firmware_attributes_class.h | ||
fujitsu-laptop.c | ||
fujitsu-tablet.c | ||
gigabyte-wmi.c | ||
gpd-pocket-fan.c | ||
hdaps.c | ||
hp-wmi.c | ||
hp_accel.c | ||
huawei-wmi.c | ||
i2c-multi-instantiate.c | ||
ibm_rtl.c | ||
ideapad-laptop.c | ||
intel_ips.c | ||
intel_ips.h | ||
intel_scu_ipc.c | ||
intel_scu_ipcutil.c | ||
intel_scu_pcidrv.c | ||
intel_scu_pltdrv.c | ||
intel_scu_wdt.c | ||
Kconfig | ||
lg-laptop.c | ||
Makefile | ||
meraki-mx100.c | ||
mlx-platform.c | ||
msi-laptop.c | ||
msi-wmi.c | ||
mxm-wmi.c | ||
nvidia-wmi-ec-backlight.c | ||
panasonic-laptop.c | ||
pcengines-apuv2.c | ||
peaq-wmi.c | ||
pmc_atom.c | ||
samsung-laptop.c | ||
samsung-q10.c | ||
sony-laptop.c | ||
system76_acpi.c | ||
tc1100-wmi.c | ||
think-lmi.c | ||
think-lmi.h | ||
thinkpad_acpi.c | ||
topstar-laptop.c | ||
toshiba-wmi.c | ||
toshiba_acpi.c | ||
toshiba_bluetooth.c | ||
toshiba_haps.c | ||
touchscreen_dmi.c | ||
uv_sysfs.c | ||
wireless-hotkey.c | ||
wmi-bmof.c | ||
wmi.c | ||
xiaomi-wmi.c | ||
xo1-rfkill.c | ||
xo15-ebook.c |