From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Sun, 8 Dec 2019 09:12:26 +0800 Subject: [PATCH v6 006/102] net: Move the checksum functions to lib/ In-Reply-To: References: <20191207044315.51770-1-sjg@chromium.org> <20191206213936.v6.6.I2a2a041d7e3ff9e9cabad573c81e1d0c6d90d617@changeid> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Dec 8, 2019 at 9:10 AM Bin Meng wrote: > > On Sat, Dec 7, 2019 at 12:46 PM Simon Glass wrote: > > > > These functions are used by code outside the network support, so move them > > to lib/ to be more accessible. > > > > Without this, the functions are only accessible in SPL/TPL only if > > CONFIG_SPL/TPL_NET are defined. Many boards do not enable those option but > > still want to do checksums in this format. > > > > Fix up a few code-style nits while we are here. > > > > Signed-off-by: Simon Glass > > Acked-by: Joe Hershberger > > --- > > > > Changes in v6: > > - Expand commit message to mention SPL/TPL specifically > > > > Changes in v5: None > > Changes in v4: > > - Expand commit message to better explain the need to checksum functions > > > > Changes in v3: None > > Changes in v2: None > > > > lib/Makefile | 2 +- > > lib/net_utils.c | 48 ++++++++++++++++++++++++++++++++++++++++ > > net/Makefile | 1 - > > net/checksum.c | 59 ------------------------------------------------- > > 4 files changed, 49 insertions(+), 61 deletions(-) > > delete mode 100644 net/checksum.c > > > > Reviewed-by: Bin Meng applied to u-boot-x86/next, thanks!