From: Jens Wiklander <jens.wiklander@linaro.org>
To: u-boot@lists.denx.de, linux-btrfs@vger.kernel.org
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Arnd Bergmann <arnd@arndb.de>, Huan Wang <alison.wang@nxp.com>,
Angelo Dureghello <angelo@kernel-space.org>,
Daniel Schwierzeck <daniel.schwierzeck@gmail.com>,
Wolfgang Denk <wd@denx.de>, Marek Vasut <marex@denx.de>,
Nobuhiro Iwamatsu <iwamatsu@nigauri.org>,
Marek Behun <kabel@kernel.org>, Qu Wenruo <wqu@suse.com>,
Tom Rini <trini@konsulko.com>,
Jens Wiklander <jens.wiklander@linaro.org>
Subject: [PATCH 7/8] linux/unaligned: remove unused access_ok.h
Date: Mon, 22 May 2023 14:22:37 +0200 [thread overview]
Message-ID: <20230522122238.4191762-8-jens.wiklander@linaro.org> (raw)
In-Reply-To: <20230522122238.4191762-1-jens.wiklander@linaro.org>
linux/unaligned/access_ok.h is unused, so remove it.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
---
include/linux/unaligned/access_ok.h | 66 -----------------------------
1 file changed, 66 deletions(-)
delete mode 100644 include/linux/unaligned/access_ok.h
diff --git a/include/linux/unaligned/access_ok.h b/include/linux/unaligned/access_ok.h
deleted file mode 100644
index 5f46eee23c38..000000000000
--- a/include/linux/unaligned/access_ok.h
+++ /dev/null
@@ -1,66 +0,0 @@
-#ifndef _LINUX_UNALIGNED_ACCESS_OK_H
-#define _LINUX_UNALIGNED_ACCESS_OK_H
-
-#include <asm/byteorder.h>
-
-static inline u16 get_unaligned_le16(const void *p)
-{
- return le16_to_cpup((__le16 *)p);
-}
-
-static inline u32 get_unaligned_le32(const void *p)
-{
- return le32_to_cpup((__le32 *)p);
-}
-
-static inline u64 get_unaligned_le64(const void *p)
-{
- return le64_to_cpup((__le64 *)p);
-}
-
-static inline u16 get_unaligned_be16(const void *p)
-{
- return be16_to_cpup((__be16 *)p);
-}
-
-static inline u32 get_unaligned_be32(const void *p)
-{
- return be32_to_cpup((__be32 *)p);
-}
-
-static inline u64 get_unaligned_be64(const void *p)
-{
- return be64_to_cpup((__be64 *)p);
-}
-
-static inline void put_unaligned_le16(u16 val, void *p)
-{
- *((__le16 *)p) = cpu_to_le16(val);
-}
-
-static inline void put_unaligned_le32(u32 val, void *p)
-{
- *((__le32 *)p) = cpu_to_le32(val);
-}
-
-static inline void put_unaligned_le64(u64 val, void *p)
-{
- *((__le64 *)p) = cpu_to_le64(val);
-}
-
-static inline void put_unaligned_be16(u16 val, void *p)
-{
- *((__be16 *)p) = cpu_to_be16(val);
-}
-
-static inline void put_unaligned_be32(u32 val, void *p)
-{
- *((__be32 *)p) = cpu_to_be32(val);
-}
-
-static inline void put_unaligned_be64(u64 val, void *p)
-{
- *((__be64 *)p) = cpu_to_be64(val);
-}
-
-#endif /* _LINUX_UNALIGNED_ACCESS_OK_H */
--
2.34.1
next prev parent reply other threads:[~2023-05-22 12:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-22 12:22 [PATCH 0/8] Cleanup unaligned access macros Jens Wiklander
2023-05-22 12:22 ` [PATCH 1/8] arm: use asm-generic/unaligned.h Jens Wiklander
2023-05-22 12:22 ` [PATCH 2/8] sh: " Jens Wiklander
2023-05-22 12:22 ` [PATCH 3/8] mips: " Jens Wiklander
2023-05-22 12:22 ` [PATCH 4/8] m68k: " Jens Wiklander
2023-05-28 18:54 ` Angelo Dureghello
2023-05-22 12:22 ` [PATCH 5/8] powerpc: " Jens Wiklander
2023-05-22 12:22 ` [PATCH 6/8] fs/btrfs: use asm/unaligned.h Jens Wiklander
2023-05-22 12:22 ` Jens Wiklander [this message]
2023-05-22 12:22 ` [PATCH 8/8] asm-generic: simplify unaligned.h Jens Wiklander
2023-05-22 20:34 ` [PATCH 0/8] Cleanup unaligned access macros Ilias Apalodimas
2023-05-23 18:56 ` Tom Rini
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=20230522122238.4191762-8-jens.wiklander@linaro.org \
--to=jens.wiklander@linaro.org \
--cc=alison.wang@nxp.com \
--cc=angelo@kernel-space.org \
--cc=arnd@arndb.de \
--cc=daniel.schwierzeck@gmail.com \
--cc=ilias.apalodimas@linaro.org \
--cc=iwamatsu@nigauri.org \
--cc=kabel@kernel.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=marex@denx.de \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=wd@denx.de \
--cc=wqu@suse.com \
/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.