All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bin Meng <bmeng.cn@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2 10/12] sysinfo: Move #ifdef so that operations are always defined
Date: Thu, 21 Jan 2021 14:54:34 +0800	[thread overview]
Message-ID: <CAEUhbmWvC4DZ1aav1aQYkcidWzthsKYm4ejRpxpd4h7hc2=3YQ@mail.gmail.com> (raw)
In-Reply-To: <20210121020642.551093-3-sjg@chromium.org>

On Thu, Jan 21, 2021 at 10:07 AM Simon Glass <sjg@chromium.org> wrote:
>
> 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>
> ---
>
> Changes in v2:
> - Add new patch to fix sysinfo with CONFIG_IS_ENABLED()
>
>  include/sysinfo.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

  reply	other threads:[~2021-01-21  6:54 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-21  2:06 [PATCH v2 00/12] smbios: Enhancements for more flexibility Simon Glass
2021-01-21  2:06 ` [PATCH v2 01/12] README: Add doumentation for version information Simon Glass
2021-01-21  5:52   ` Bin Meng
2021-01-21  2:06 ` [PATCH v2 02/12] Makefile: Provide numeric versions Simon Glass
2021-01-21  5:54   ` Bin Meng
2021-01-21  2:06 ` [PATCH v2 03/12] smbios: Move smbios_write_type to the C file Simon Glass
2021-01-21  5:55   ` Bin Meng
2021-01-21  2:06 ` [PATCH v2 04/12] smbios: Use char consistently for the eos member Simon Glass
2021-01-21  5:56   ` Bin Meng
2021-01-21  2:06 ` [PATCH v2 05/12] smbios: Set BIOS release version Simon Glass
2021-01-21  6:37   ` Bin Meng
2021-01-21  2:06 ` [PATCH v2 06/12] smbios: Use a struct to keep track of context Simon Glass
2021-01-21  6:37   ` Bin Meng
2021-01-21  2:06 ` [PATCH v2 07/12] smbios: Drop the eos parameter Simon Glass
2021-01-21  6:37   ` Bin Meng
2021-01-21  2:06 ` [PATCH v2 08/12] smbios: Track the end of the string table Simon Glass
2021-01-21  6:37   ` Bin Meng
2021-01-21  2:06 ` [PATCH v2 09/12] smbios: Add more options for the BIOS version string Simon Glass
2021-01-21  6:54   ` Bin Meng
2021-01-21  2:06 ` [PATCH v2 10/12] sysinfo: Move #ifdef so that operations are always defined Simon Glass
2021-01-21  6:54   ` Bin Meng [this message]
2021-01-21  2:06 ` [PATCH v2 11/12] x86: coral: Add sysinfo ops Simon Glass
2021-01-21  6:54   ` Bin Meng
2021-01-21 17:32     ` Simon Glass
2021-01-21  2:06 ` [PATCH v2 12/12] smbios: Allow a few values to come from sysinfo Simon Glass
2021-01-21  6:54   ` Bin Meng
2021-01-21 17:32     ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEUhbmWvC4DZ1aav1aQYkcidWzthsKYm4ejRpxpd4h7hc2=3YQ@mail.gmail.com' \
    --to=bmeng.cn@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.