This function requires access to env.h but it is a lot to include just
for the env_get() function. It eventually pulls in linux/byteorder which
causes a conflict with exfat which has its own byteorder functions.
Move the function to a C file instead.
Add includes to some other files to keep the build working.
Series-to: u-boot
Series-cc: trini
Series-cc: Jerome Forissier <jerome.forissier@linaro.org>
Series-version: 2
Cover-changes: 2
- Add patches for other files exposed by this change
Cover-letter:
Deal with exfat versus byteorder
Since exfat has its own byteorder functions we need to be careful about
including the normal U-Boot byteorder headers in code included by exfat.
One chain for include/linux/byteorder/little_endian.h is like this:
In file included from arch/sandbox/include/asm/byteorder.h:19,
from arch/sandbox/include/asm/byteorder.h:19,
from include/compiler.h:132,
from include/env.h:12,
from include/command.h:13,
from include/net-common.h:7,
from include/net.h:6,
from include/efi.h:23,
from include/blk.h:12,
from include/part.h:9,
from include/fs_internal.h:11,
from fs/exfat/io.c:52:
This series tidies things up so that efi.h can include net.h as
required.
END
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
If there is no network support it doesn't make sense to try to read
these variables. Add a condition to handle this.
This is needed so that env_get_ip() is not called when it is no-longer
a static inline, but included in net/ code.
Signed-off-by: Simon Glass <sjg@chromium.org>
This file reads from the environment but does not include the correct
header. Update it.
Drop the unnecessary config.h while we are here.
Signed-off-by: Simon Glass <sjg@chromium.org>
We don't need to include command.h just for this declaration. It
eventually pulls in linux/byteorder which causes a conflict with exfat
which has its own byteorder functions.
Use a forward declaration instead.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
2025-04-30 08:37:27 -06:00
23 changed files with 55 additions and 29 deletions
* Copyright 2019 Ramon Fried <rfried.dev@gmail.com>
*/
#include<env.h>
#include<net.h>
#include<net/pcap.h>
#include<time.h>
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.