mirror of
https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9.git
synced 2026-09-10 06:09:48 +08:00
Conflicts:
drop changes to arch/alpha/include/asm/hwrpb.h
arch/ia64/include/asm/sal.h arch/sh/include/asm/thread_info.h
arch/sparc/include/asm/vio.h arch/um/include/shared/net_kern.h
arch/xtensa/include/asm/bootparam.h - unsupported arches
drop drivers/misc/habanalabs/include/common/cpucp_if.h - unsupported
config
drop drivers/staging/r8188eu/include/rtw_cmd.h fs/ksmbd/ksmbd_netlink.h
fs/ksmbd/ntlmssp.h fs/ksmbd/smb2pdu.h
fs/ksmbd/transport_rdma.c drivers/scsi/qla2xxx/qla_edif_bsg.h
fs/ksmbd/xattr.h include/net/ioam6.h - files not in CS9
fs/xfs/scrub/attr.h arch/x86/include/asm/microcode_amd.h
arch/x86/include/asm/microcode_intel.h
drivers/net/ethernet/marvell/octeontx2/af/npc.h
include/sound/sof/channel_map.h sound/soc/intel/atom/sst-mfld-dsp.h
sound/soc/intel/skylake/skl-topology.h drivers/scsi/qla2xxx/qla_edif.c
drivers/scsi/qla2xxx/qla_edif_bsg.h drivers/scsi/mpi3mr/mpi3mr.h -
This patch already applied.
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c
drivers/gpu/drm/nouveau/include/nvfw/hs.h
change done under RHEL-only commit
99fc716fc4 ("Merge DRM changes from upstream v5.17..v5.18")
JIRA: https://issues.redhat.com/browse/RHEL-1848
commit 5224f79096170bf7b92cc8fe42a12f44b91e5f62
Author: Gustavo A. R. Silva <gustavoars@kernel.org>
Date: Mon Feb 14 19:11:44 2022 -0600
treewide: Replace zero-length arrays with flexible-array members
There is a regular need in the kernel to provide a way to declare
having a dynamically sized set of trailing elements in a structure.
Kernel code should always use “flexible array members”[1] for these
cases. The older style of one-element or zero-length arrays should
no longer be used[2].
This code was transformed with the help of Coccinelle:
(next-20220214$ spatch --jobs $(getconf _NPROCESSORS_ONLN) --sp-file script.
cocci --include-headers --dir . > output.patch)
@@
identifier S, member, array;
type T1, T2;
@@
struct S {
...
T1 member;
T2 array[
- 0
];
};
UAPI and wireless changes were intentionally excluded from this patch
and will be sent out separately.
[1] https://en.wikipedia.org/wiki/Flexible_array_member
[2] https://www.kernel.org/doc/html/v5.16/process/deprecated.html#zero-lengt
h-and-one-element-arrays
Link: https://github.com/KSPP/linux/issues/78
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Chris von Recklinghausen <crecklin@redhat.com>