openwrt/target/linux/generic/files/drivers/net/phy
Aleksander Jan Bajkowski d69becd307 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>
2023-06-08 17:25:22 +02:00
..
b53 generic: b53: rename exported symbols to avoid upstream conflict 2023-06-02 21:20:53 +02:00
adm6996.c target: remove obsolete kernel version switches for 4.19 2020-10-30 19:45:24 +01:00
adm6996.h
ar8216.c kernek: use struct_group to wipe ar8216 volatile priv data 2023-05-22 22:28:18 +02:00
ar8216.h kernek: use struct_group to wipe ar8216 volatile priv data 2023-05-22 22:28:18 +02:00
ar8327.c generic: fix compilation warning for ar8xxx swconfig 2022-03-27 04:51:38 +01:00
ar8327.h treewide: rename POWER_ON_STRIP register 2020-07-25 21:50:50 +02:00
ip17xx.c kernel: remove an unused callback from the ip17xx switch driver 2020-12-05 12:06:28 +01:00
psb6970.c kernel: use struct group to wipe psb6970 volatile priv data 2023-06-08 17:25:22 +02:00
rtl8306.c generic: drop outdated kernel version switches in local drivers 2020-05-17 18:35:59 +02:00
rtl8366_smi.c generic: drop outdated kernel version switches in local drivers 2020-05-17 18:35:59 +02:00
rtl8366_smi.h
rtl8366rb.c
rtl8366s.c
rtl8367.c
rtl8367b.c kernel: rtl8367b: fix external interface modes 2020-06-11 21:50:01 +08:00
swconfig_leds.c kernel: refresh swconfig_leds to handle new trigger locking 2023-05-22 22:28:17 +02:00
swconfig.c kernel: 6.1: fix swconfig not working 2023-05-30 01:58:20 +02:00