No description
Find a file
Masahiro Yamada a23d4c2f5b genksyms: fix syntax error for attribute before init-declarator
A longstanding issue with genksyms is that it has hidden syntax errors.

For example, genksyms fails to parse the following valid code:

    int x, __attribute__((__section__(".init.data")))y;

Here, only 'y' is annotated by the attribute, although I am not aware
of actual uses of this pattern in the kernel tree.

When a syntax error occurs, yyerror() is called. However,
error_with_pos() is a no-op unless the -w option is provided.

You can observe syntax errors by manually passing the -w option.

    $ echo 'int x, __attribute__((__section__(".init.data")))y;' | scripts/genksyms/genksyms -w
    <stdin>:1: syntax error

This commit allows attributes to be placed between a comma and
init_declarator.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Nicolas Schier <n.schier@avm.de>
2025-01-27 07:44:16 +09:00
arch ARC: migrate to the generic rule for built-in DTB 2025-01-18 08:52:09 +09:00
block
certs
crypto
Documentation Documentation/kbuild: Document storage of symbol information 2025-01-11 02:36:36 +09:00
drivers
fs
include export: Add __gendwarfksyms_ptr_ references to exported symbols 2025-01-11 01:25:26 +09:00
init rust: Use gendwarfksyms + extended modversions for CONFIG_MODVERSIONS 2025-01-18 08:51:48 +09:00
io_uring
ipc
kernel modpost: Allow extended modversions without basic MODVERSIONS 2025-01-11 02:36:32 +09:00
lib
LICENSES
mm
net
rust rust: Use gendwarfksyms + extended modversions for CONFIG_MODVERSIONS 2025-01-18 08:51:48 +09:00
samples
scripts genksyms: fix syntax error for attribute before init-declarator 2025-01-27 07:44:16 +09:00
security
sound
tools
usr
virt
.clang-format
.clippy.toml
.cocciconfig
.editorconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS tools: Add gendwarfksyms 2025-01-11 01:25:25 +09:00
Makefile Linux 6.13-rc6 2025-01-05 14:13:40 -08: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 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.