mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 3/3] scripts: imd: remove duplicate macro definitions
Date: Tue, 18 Feb 2020 15:16:36 +0100	[thread overview]
Message-ID: <20200218141636.6486-3-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20200218141636.6486-1-a.fatoum@pengutronix.de>

include/scripts/linux/kernel.h included via #include <linux/kernel.h>
later on already defines these three macros. Remove them here to avoid
the warnings about the duplicate macro definition.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 scripts/bareboximd.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/scripts/bareboximd.c b/scripts/bareboximd.c
index cf1b8f693ac0..e5000e0aea5b 100644
--- a/scripts/bareboximd.c
+++ b/scripts/bareboximd.c
@@ -16,10 +16,6 @@
  *
  */
 
-#define __ALIGN_MASK(x, mask)	(((x) + (mask)) & ~(mask))
-#define ALIGN(x, a)		__ALIGN_MASK(x, (typeof(x))(a) - 1)
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
-
 #include <stdio.h>
 #include <sys/types.h>
 #include <stdint.h>
-- 
2.25.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2020-02-18 14:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-18 14:16 [PATCH 1/3] gpiolib: use correct format specifier for ptrdiff_t Ahmad Fatoum
2020-02-18 14:16 ` [PATCH 2/3] scripts: define ALIGN(x) in scripts' <linux/kernel.h> Ahmad Fatoum
2020-02-18 14:16 ` Ahmad Fatoum [this message]
2020-02-19  7:54 ` [PATCH 1/3] gpiolib: use correct format specifier for ptrdiff_t Sascha Hauer

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=20200218141636.6486-3-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox