From: Sascha Hauer <s.hauer@pengutronix.de>
To: "open list:BAREBOX" <barebox@lists.infradead.org>
Subject: [PATCH 1/2] omap3-usb-loader: Fix compilation
Date: Wed, 10 Jan 2024 15:17:11 +0100 [thread overview]
Message-ID: <20240110-scripts-omap3-usb-loader-fix-compilation-v1-1-0503f170fa59@pengutronix.de> (raw)
In-Reply-To: <20240110-scripts-omap3-usb-loader-fix-compilation-v1-0-0503f170fa59@pengutronix.de>
Since a4a04ec768e ("scripts: common: fix read_file_2 for windows")
common.c includes compiler.h which defines cpu_to_le32 and friends
which are also defined in omap3-usb-loader.c. Drop the duplicated
definitions from omap3-usb-loader.c to make it compile again.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
scripts/omap3-usb-loader.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/scripts/omap3-usb-loader.c b/scripts/omap3-usb-loader.c
index 31a03be8e7..d9422a0916 100644
--- a/scripts/omap3-usb-loader.c
+++ b/scripts/omap3-usb-loader.c
@@ -19,10 +19,6 @@
#define PROG_NAME "OMAP Loader"
#define VERSION "1.0.0"
-#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
-#define OMAP_IS_BIG_ENDIAN
-#endif
-
#include <unistd.h> /* for usleep and friends */
#include <getopt.h>
#include <errno.h>
@@ -46,15 +42,6 @@
#define OMAP_USB_BULK_OUT 0x01
#define OMAP_ASIC_ID_LEN 69
-#ifdef OMAP_IS_BIG_ENDIAN
-#define cpu_to_le32(v) (((v & 0xff) << 24) | ((v & 0xff00) << 8) | \
- ((v & 0xff0000) >> 8) | ((v & 0xff000000) >> 24))
-#define le32_to_cpu(v) cpu_to_le32(v)
-#else
-#define cpu_to_le32(v) (v)
-#define le32_to_cpu(v) (v)
-#endif
-
/*
* taken from x-loader/drivers/usb/usb.c
* All credit to Martin Mueller
--
2.39.2
next prev parent reply other threads:[~2024-01-10 14:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-10 14:17 [PATCH 0/2] omap3-usb-loader fixes Sascha Hauer
2024-01-10 14:17 ` Sascha Hauer [this message]
2024-01-10 14:17 ` [PATCH 2/2] omap3-usb-loader: Fix for big endian hosts Sascha Hauer
2024-01-11 14:09 ` [PATCH 0/2] omap3-usb-loader fixes 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=20240110-scripts-omap3-usb-loader-fix-compilation-v1-1-0503f170fa59@pengutronix.de \
--to=s.hauer@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