mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 17:01:14 +00:00
d69becd307
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> |
||
---|---|---|
.. | ||
b53 | ||
adm6996.c | ||
adm6996.h | ||
ar8216.c | ||
ar8216.h | ||
ar8327.c | ||
ar8327.h | ||
ip17xx.c | ||
psb6970.c | ||
rtl8306.c | ||
rtl8366_smi.c | ||
rtl8366_smi.h | ||
rtl8366rb.c | ||
rtl8366s.c | ||
rtl8367.c | ||
rtl8367b.c | ||
swconfig_leds.c | ||
swconfig.c |