public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 00/11] zap: Do not use macros that are equivalent to IS_ENABLED(CONFIG_...)
@ 2015-12-18  2:04 Masahiro Yamada
  2015-12-18  2:05 ` [U-Boot] [PATCH 01/11] image: zap IMAGE_ENABLE_RAMDISK_HIGH Masahiro Yamada
                   ` (11 more replies)
  0 siblings, 12 replies; 16+ messages in thread
From: Masahiro Yamada @ 2015-12-18  2:04 UTC (permalink / raw)
  To: u-boot


Please stop such coding habit as follows:

  #ifdef CONFIG_FOO
  #  define ENABLE_FOO   1
  #else
  #  define ENABLE_FOO   0
  #endif

Use IS_ENABLED(CONFIG_FOO), instead.



Masahiro Yamada (11):
  image: zap IMAGE_ENABLE_RAMDISK_HIGH
  image: zap IMAGE_ENABLE_OF_LIBFDT
  image: zap IMAGE_BOOT_GET_CMDLINE
  image: zap IMAGE_OF_BOARD_SETUP
  image: zap IMAGE_OF_SYSTEM_SETUP
  ARM: bootm: BOOTM_ENABLE_SERIAL_TAG
  ARM: bootm: BOOTM_ENABLE_CMDLINE_TAG
  ARM: bootm: BOOTM_ENABLE_REVISION_TAG
  ARM: bootm: BOOTM_ENABLE_MEMORY_TAG
  ARM: bootm: BOOTM_ENABLE_INITRD_TAG
  ARM: bootm: drop redundant #ifdef conditional

 arch/arc/lib/bootm.c         |  2 +-
 arch/arm/include/asm/bootm.h | 22 ----------------------
 arch/arm/lib/bootm.c         | 16 +++++++---------
 common/image-fdt.c           |  6 +++---
 common/image.c               | 10 +++++-----
 include/image.h              | 30 ------------------------------
 6 files changed, 16 insertions(+), 70 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-12-19 20:29 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-18  2:04 [U-Boot] [PATCH 00/11] zap: Do not use macros that are equivalent to IS_ENABLED(CONFIG_...) Masahiro Yamada
2015-12-18  2:05 ` [U-Boot] [PATCH 01/11] image: zap IMAGE_ENABLE_RAMDISK_HIGH Masahiro Yamada
2015-12-18  2:05 ` [U-Boot] [PATCH 02/11] image: zap IMAGE_ENABLE_OF_LIBFDT Masahiro Yamada
2015-12-18  2:05 ` [U-Boot] [PATCH 03/11] image: zap IMAGE_BOOT_GET_CMDLINE Masahiro Yamada
2015-12-18  2:05 ` [U-Boot] [PATCH 04/11] image: zap IMAGE_OF_BOARD_SETUP Masahiro Yamada
2015-12-18  2:05 ` [U-Boot] [PATCH 05/11] image: zap IMAGE_OF_SYSTEM_SETUP Masahiro Yamada
2015-12-18  2:05 ` [U-Boot] [PATCH 06/11] ARM: bootm: BOOTM_ENABLE_SERIAL_TAG Masahiro Yamada
2015-12-18  2:05 ` [U-Boot] [PATCH 07/11] ARM: bootm: BOOTM_ENABLE_CMDLINE_TAG Masahiro Yamada
2015-12-18  2:05 ` [U-Boot] [PATCH 08/11] ARM: bootm: BOOTM_ENABLE_REVISION_TAG Masahiro Yamada
2015-12-18  2:05 ` [U-Boot] [PATCH 09/11] ARM: bootm: BOOTM_ENABLE_MEMORY_TAG Masahiro Yamada
2015-12-18  2:05 ` [U-Boot] [PATCH 10/11] ARM: bootm: BOOTM_ENABLE_INITRD_TAG Masahiro Yamada
2015-12-18  2:05 ` [U-Boot] [PATCH 11/11] ARM: bootm: drop redundant #ifdef conditional Masahiro Yamada
2015-12-18  3:23 ` [U-Boot] [PATCH 00/11] zap: Do not use macros that are equivalent to IS_ENABLED(CONFIG_...) Marek Vasut
2015-12-18 18:57   ` Simon Glass
2015-12-19  8:39     ` Masahiro Yamada
2015-12-19 20:29       ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox