Linux kernel source tree
Go to file
Dan Carpenter 01e11d18da ACPI: SBS: Fix present test in acpi_battery_read()
The battery->present variable is a 1 bit bitfield in a u8.  This means
that the "state & (1 << battery->id)" test will only work when
"battery->id" is zero, otherwise ->present is zero.  Fix this by adding
a !!.

Fixes: db1c291af7 ("ACPI: SBS: Make SBS reads table-driven.")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/aQSzr4NynN2mpEvG@stanley.mountain
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2025-11-03 17:29:52 +01:00
Documentation sound fixes for 6.18-rc4 2025-10-31 07:29:09 -07:00
LICENSES
arch Miscellaneous fixes: 2025-11-01 10:20:07 -07:00
block block-6.18-20251031 2025-10-31 12:57:19 -07:00
certs
crypto
drivers ACPI: SBS: Fix present test in acpi_battery_read() 2025-11-03 17:29:52 +01:00
fs xfs: fixes for v6.18-rc4 2025-11-01 10:04:35 -07:00
include regmap: Fixes for v6.18 2025-11-01 10:45:39 -07:00
init
io_uring
ipc
kernel bpf-fixes 2025-10-31 18:22:26 -07:00
lib Second round of Kbuild fixes for 6.19 2025-11-01 10:00:53 -07:00
mm
net bpf-fixes 2025-10-31 18:22:26 -07:00
rust
samples
scripts kconfig/nconf: Initialize the default locale at startup 2025-11-01 00:23:22 -04:00
security
sound
tools objtool: Fix skip_alt_group() for non-alternative STAC/CLAC 2025-11-01 07:43:20 +01:00
usr
virt
.clang-format
.clippy.toml
.cocciconfig
.editorconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap linux_kselftest-kunit-fixes-6.18-rc4 2025-10-30 19:11:27 -07:00
.pylintrc
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS Second round of Kbuild fixes for 6.19 2025-11-01 10:00:53 -07:00
Makefile Linux 6.18-rc4 2025-11-02 11:28:02 -08:00
README

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the reStructuredText markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.