openwrt/target/linux/generic
Aleksander Jan Bajkowski 7d48684612 kernel: use struct group to wipe psb6970 volatile priv data
Instead of reference vlan and do strange subtraction, use the handy
struct_group() to create a virtual struct of the same size of the
members. This permits to have a more secure memset and fix compilation
warning in 6.1 where additional checks are done.

Fix compilation warning:
| inlined from 'psb6970_reset_switch' at drivers/net/phy/psb6970.c:275:2:
| ./include/linux/fortify-string.h:314:25: error: call to '__write_overflow_field'
| declared with attribute warning: detected write beyond size of field
| (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
|  314 |                         __write_overflow_field(p_size_field, size);
|      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|cc1: all warnings being treated as errors

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
(cherry picked from commit d69becd307)
2023-06-10 19:06:15 +02:00
..
backport-5.15 kernel: backport libcap workaround for BPF selftests 2023-06-09 13:20:44 +02:00
files kernel: use struct group to wipe psb6970 volatile priv data 2023-06-10 19:06:15 +02:00
hack-5.15 kernel: bump 5.15 to 5.15.113 2023-05-29 13:04:14 +01:00
image target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
other-files initramfs: switch to tmpfs to fix ujail 2020-11-27 01:23:43 +00:00
pending-5.15 kernel: Backport mvneta crash fix to 5.15 2023-06-08 15:33:14 +02:00
config-5.15 kernel: Set CONFIG_FRAME_WARN depending on target 2023-06-02 21:18:41 +02:00
config-filter generic: filter out CONFIG_PAHOLE_HAS_SPLIT_BTF 2023-05-25 09:35:31 +01:00
PATCHES kernel: update PATCHES with a stricter policy 2013-07-09 20:52:07 +00:00