From: Aymen Qader <qader.aymen@gmail.com>
To: unlisted-recipients:; (no To-header on input)
Cc: Aymen Qader <qader.aymen@gmail.com>,
Eric Anholt <eric@anholt.net>,
Stefan Wahren <stefan.wahren@i2se.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-rpi-kernel@lists.infradead.org,
linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v3 3/4] staging: vc04_services: Remove unused macros
Date: Mon, 24 Sep 2018 18:27:42 +0100 [thread overview]
Message-ID: <20180924172743.21153-4-qader.aymen@gmail.com> (raw)
In-Reply-To: <20180924172743.21153-1-qader.aymen@gmail.com>
This patch removes the macros and structs associated with the
"vchi_msg_queuev_ex" function, which was previously removed in 49bec49.
Also fixes the checkpatch.pl errors:
ERROR: Macros with complex values should be enclosed in parentheses
ERROR: space required after that ','
Signed-off-by: Aymen Qader <qader.aymen@gmail.com>
---
.../vc04_services/interface/vchi/vchi.h | 38 -------------------
1 file changed, 38 deletions(-)
diff --git a/drivers/staging/vc04_services/interface/vchi/vchi.h b/drivers/staging/vc04_services/interface/vchi/vchi.h
index cb2582a4eb6a..f96676227ddc 100644
--- a/drivers/staging/vc04_services/interface/vchi/vchi.h
+++ b/drivers/staging/vc04_services/interface/vchi/vchi.h
@@ -60,46 +60,8 @@ struct vchi_version {
#define VCHI_VERSION(v_) { v_, v_ }
#define VCHI_VERSION_EX(v_, m_) { v_, m_ }
-typedef enum {
- VCHI_VEC_POINTER,
- VCHI_VEC_HANDLE,
- VCHI_VEC_LIST
-} VCHI_MSG_VECTOR_TYPE_T;
-
-typedef struct vchi_msg_vector_ex {
-
- VCHI_MSG_VECTOR_TYPE_T type;
- union {
- // a memory handle
- struct {
- VCHI_MEM_HANDLE_T handle;
- uint32_t offset;
- int32_t vec_len;
- } handle;
-
- // an ordinary data pointer
- struct {
- const void *vec_base;
- int32_t vec_len;
- } ptr;
-
- // a nested vector list
- struct {
- struct vchi_msg_vector_ex *vec;
- uint32_t vec_len;
- } list;
- } u;
-} VCHI_MSG_VECTOR_EX_T;
-
-// Construct an entry in a msg vector for a pointer (p) of length (l)
-#define VCHI_VEC_POINTER(p,l) VCHI_VEC_POINTER, { { (VCHI_MEM_HANDLE_T)(p), (l) } }
-
-// Construct an entry in a msg vector for a message handle (h), starting at offset (o) of length (l)
-#define VCHI_VEC_HANDLE(h,o,l) VCHI_VEC_HANDLE, { { (h), (o), (l) } }
-
// Macros to manipulate 'FOURCC' values
#define MAKE_FOURCC(x) ((int32_t)((x[0] << 24) | (x[1] << 16) | (x[2] << 8) | x[3]))
-#define FOURCC_TO_CHAR(x) (x >> 24) & 0xFF,(x >> 16) & 0xFF,(x >> 8) & 0xFF, x & 0xFF
// Opaque service information
struct opaque_vchi_service_t;
--
2.17.1
next prev parent reply other threads:[~2018-09-24 17:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-23 14:06 [PATCH v2 0/5] staging: vc04_services: Fix checkpatch.pl errors Aymen Qader
2018-09-23 14:06 ` [PATCH v2 1/5] staging: vc04_services: Fix "space prohibited" Aymen Qader
2018-09-23 14:06 ` [PATCH v2 2/5] staging: vc04_services: Use tabs instead of spaces Aymen Qader
2018-09-23 14:06 ` [PATCH v2 3/5] staging: vc04_services: Add spaces after commas Aymen Qader
2018-09-23 14:06 ` [PATCH v2 4/5] staging: vc04_services: Surround complex macros Aymen Qader
2018-09-24 9:58 ` Dan Carpenter
2018-09-23 14:06 ` [PATCH v2 5/5] staging: vc04_services: Remove spaces after '*' Aymen Qader
2018-09-24 10:02 ` Dan Carpenter
2018-09-24 10:06 ` [PATCH v2 0/5] staging: vc04_services: Fix checkpatch.pl errors Dan Carpenter
2018-09-24 17:27 ` [PATCH v3 0/4] " Aymen Qader
2018-09-24 17:27 ` [PATCH v3 1/4] staging: vc04_services: Fix "space prohibited" Aymen Qader
2018-09-24 17:27 ` [PATCH v3 2/4] staging: vc04_services: Use tabs instead of spaces Aymen Qader
2018-09-24 17:27 ` Aymen Qader [this message]
2018-09-24 17:27 ` [PATCH v3 4/4] staging: vc04_services: Remove spaces after '*' Aymen Qader
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=20180924172743.21153-4-qader.aymen@gmail.com \
--to=qader.aymen@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=eric@anholt.net \
--cc=gregkh@linuxfoundation.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=stefan.wahren@i2se.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome