Maxim Levitsky fe9d9ad89a KVM: Remove subtle "struct kvm_stats_desc" pseudo-overlay
JIRA: https://issues.redhat.com/browse/RHEL-151869

commit da142f3d373a6ddaca0119615a8db2175ddc4121
Author: Sean Christopherson <seanjc@google.com>
Date:   Fri Dec 5 15:26:55 2025 -0800

    KVM: Remove subtle "struct kvm_stats_desc" pseudo-overlay

    Remove KVM's internal pseudo-overlay of kvm_stats_desc, which subtly
    aliases the flexible name[] in the uAPI definition with a fixed-size array
    of the same name.  The unusual embedded structure results in compiler
    warnings due to -Wflex-array-member-not-at-end, and also necessitates an
    extra level of dereferencing in KVM.  To avoid the "overlay", define the
    uAPI structure to have a fixed-size name when building for the kernel.

    Opportunistically clean up the indentation for the stats macros, and
    replace spaces with tabs.

    No functional change intended.

    Reported-by: Gustavo A. R. Silva <gustavoars@kernel.org>
    Closes: https://lore.kernel.org/all/aPfNKRpLfhmhYqfP@kspp
    Acked-by: Marc Zyngier <maz@kernel.org>
    Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>
    [..]
    Acked-by: Anup Patel <anup@brainfault.org>
    Reviewed-by: Bibo Mao <maobibo@loongson.cn>
    Acked-by: Gustavo A. R. Silva <gustavoars@kernel.org>
    Link: https://patch.msgid.link/20251205232655.445294-1-seanjc@google.com
    Signed-off-by: Sean Christopherson <seanjc@google.com>

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
2026-07-21 14:12:07 -04:00
2026-07-15 11:04:26 -04:00
2026-07-01 16:16:28 -04:00

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.
S
Description
No description provided
Readme
2.8 GiB
Languages
C 97.5%
Assembly 1%
Shell 0.6%
Python 0.3%
Makefile 0.3%