linux-stable/drivers/net/ethernet/renesas
Arnd Bergmann c40845e319 kbuild: make -Woverride-init warnings more consistent
The -Woverride-init warn about code that may be intentional or not,
but the inintentional ones tend to be real bugs, so there is a bit of
disagreement on whether this warning option should be enabled by default
and we have multiple settings in scripts/Makefile.extrawarn as well as
individual subsystems.

Older versions of clang only supported -Wno-initializer-overrides with
the same meaning as gcc's -Woverride-init, though all supported versions
now work with both. Because of this difference, an earlier cleanup of
mine accidentally turned the clang warning off for W=1 builds and only
left it on for W=2, while it's still enabled for gcc with W=1.

There is also one driver that only turns the warning off for newer
versions of gcc but not other compilers, and some but not all the
Makefiles still use a cc-disable-warning conditional that is no
longer needed with supported compilers here.

Address all of the above by removing the special cases for clang
and always turning the warning off unconditionally where it got
in the way, using the syntax that is supported by both compilers.

Fixes: 2cd3271b7a ("kbuild: avoid duplicate warning options")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
2024-03-31 11:32:26 +09:00
..
Kconfig net: ravb: Make reset controller support mandatory 2024-02-06 11:14:56 +01:00
Makefile net: ethernet: renesas: rcar_gen4_ptp: Break out to module 2023-11-23 12:02:49 +01:00
ravb.h ravb: Unify Rx ring maintenance code paths 2024-03-06 11:23:21 +00:00
ravb_main.c ravb: Correct buffer size to map for R-Car Rx 2024-03-11 15:16:57 -07:00
ravb_ptp.c
rcar_gen4_ptp.c net: ethernet: renesas: rcar_gen4_ptp: Break out to module 2023-11-23 12:02:49 +01:00
rcar_gen4_ptp.h net: ethernet: renesas: rcar_gen4_ptp: Get clock increment from clock rate 2023-11-23 12:02:49 +01:00
rswitch.c net: rswitch: Allow jumbo frames 2023-12-10 19:31:42 +00:00
rswitch.h net: rswitch: Allow jumbo frames 2023-12-10 19:31:42 +00:00
sh_eth.c kbuild: make -Woverride-init warnings more consistent 2024-03-31 11:32:26 +09:00
sh_eth.h Revert "sh_eth: remove open coded netif_running()" 2023-03-28 19:23:32 -07:00