net: sh_eth: Convert cache operations to static functions
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Mon, 30 Jun 2025 18:51:12 +0000 (20:51 +0200)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 10 Jul 2025 17:26:55 +0000 (19:26 +0200)
commit16a900210956fe7c476b2355c7090c2cc078f71d
treebe63eec6b75a989640cc5c361293db004e132fde
parentfc85e55205e518fa148a36db04eec37d65e83e24
net: sh_eth: Convert cache operations to static functions

Turn the current cache operation macros into static functions to improve
compiler coverage checking. This does change the driver behavior slightly,
the driver now expects those cache operation functions to be available on
all architectures on which it is used. This should pose no problem, as the
driver is only used on 32bit and 64bit ARM, which both have those operations.
The CFG_SH_ETHER_ALIGNE_SIZE is converted to SH_ETHER_ALIGN_SIZE and defined
as either 64 on ARM or 16 on SH.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/net/sh_eth.c
drivers/net/sh_eth.h