Main-line Linux kernel tree http://www.kernel.org
Go to file
Arnd Bergmann 26f15e5de1 ubsan: add prototypes for internal functions
Most of the functions in ubsan that are only called from generated
code don't have a prototype, which W=1 builds warn about:

lib/ubsan.c:226:6: error: no previous prototype for '__ubsan_handle_divrem_overflow' [-Werror=missing-prototypes]
lib/ubsan.c:307:6: error: no previous prototype for '__ubsan_handle_type_mismatch' [-Werror=missing-prototypes]
lib/ubsan.c:321:6: error: no previous prototype for '__ubsan_handle_type_mismatch_v1' [-Werror=missing-prototypes]
lib/ubsan.c:335:6: error: no previous prototype for '__ubsan_handle_out_of_bounds' [-Werror=missing-prototypes]
lib/ubsan.c:352:6: error: no previous prototype for '__ubsan_handle_shift_out_of_bounds' [-Werror=missing-prototypes]
lib/ubsan.c:394:6: error: no previous prototype for '__ubsan_handle_builtin_unreachable' [-Werror=missing-prototypes]
lib/ubsan.c:404:6: error: no previous prototype for '__ubsan_handle_load_invalid_value' [-Werror=missing-prototypes]

Add prototypes for all of these to lib/ubsan.h, and remove the
one that was already present in ubsan.c.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Fangrui Song <maskray@google.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20230517125102.930491-1-arnd@kernel.org
2023-05-30 16:42:01 -07:00
arch parisc architecture fixes for kernel v6.4-rc2: 2023-05-14 09:54:38 -07:00
block
certs
crypto
Documentation autofs: use flexible array in ioctl structure 2023-05-30 16:42:00 -07:00
drivers lkdtm/bugs: Switch from 1-element array to flexible array 2023-05-30 16:42:00 -07:00
fs befs: Replace all non-returning strlcpy with strscpy 2023-05-30 16:42:00 -07:00
include Compiler Attributes: Add __counted_by macro 2023-05-30 16:42:00 -07:00
init
io_uring
ipc
kernel ftrace: Replace all non-returning strlcpy with strscpy 2023-05-30 16:42:00 -07:00
lib ubsan: add prototypes for internal functions 2023-05-30 16:42:01 -07:00
LICENSES
mm
net
rust
samples
scripts checkpatch: Check for strcpy and strncpy too 2023-05-30 16:42:01 -07:00
security
sound
tools kunit: tool: Enable CONFIG_FORTIFY_SOURCE under UML 2023-05-16 14:07:05 -07:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS string: Add Kunit tests for strcat() family 2023-05-16 14:08:02 -07:00
Makefile kbuild: Enable -fstrict-flex-arrays=3 2023-05-22 12:33:53 -07:00
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 Restructured Text 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.