]> git.dujemihanovic.xyz Git - u-boot.git/commit
sysinfo: Move #ifdef so that operations are always defined
authorSimon Glass <sjg@chromium.org>
Fri, 5 Feb 2021 04:17:21 +0000 (21:17 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sat, 6 Feb 2021 11:20:29 +0000 (19:20 +0800)
commit2b8e5c8dfa01e60e616ed75cf333ac4cda8977ef
tree1f97aadb3caaf2c11034596e966662f3065fedaf
parente9adaa75bb38ded5cf4e460270315afd891d141c
sysinfo: Move #ifdef so that operations are always defined

At present the struct is not available unless SYSINFO is enabled. This is
annoying since code it is not possible to use compile-time checks like
CONFIG_IS_ENABLED(SYSINFO) with this header.

Fix it by moving the #ifdef.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
include/sysinfo.h