Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1600845 > unrolled thread

[PATCH] staging: vc04_services: Remove unused functions

Started byJean-Baptiste Abbadie <jb@abbadie.fr>
First post2017-03-14 20:30 +0100
Last post2017-03-14 22:10 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] staging: vc04_services: Remove unused functions Jean-Baptiste Abbadie <jb@abbadie.fr> - 2017-03-14 20:30 +0100
    Re: [PATCH] staging: vc04_services: Remove unused functions Stefan Wahren <stefan.wahren@i2se.com> - 2017-03-14 22:10 +0100

#1600845 — [PATCH] staging: vc04_services: Remove unused functions

FromJean-Baptiste Abbadie <jb@abbadie.fr>
Date2017-03-14 20:30 +0100
Subject[PATCH] staging: vc04_services: Remove unused functions
Message-ID<tl0iS-4M7-25@gated-at.bofh.it>
These four functions are not used and report errors with sparse.

Signed-off-by: Jean-Baptiste Abbadie <jb@abbadie.fr>
---
 .../vc04_services/interface/vchiq_arm/vchiq_shim.c | 50 ----------------------
 1 file changed, 50 deletions(-)

diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c
index 46bb8bd7583b..8af95fc361ed 100644
--- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c
+++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c
@@ -814,56 +814,6 @@ int32_t vchi_get_peer_version(const VCHI_SERVICE_HANDLE_T handle, short *peer_ve
 }
 EXPORT_SYMBOL(vchi_get_peer_version);
 
-/* ----------------------------------------------------------------------
- * read a uint32_t from buffer.
- * network format is defined to be little endian
- * -------------------------------------------------------------------- */
-uint32_t
-vchi_readbuf_uint32(const void *_ptr)
-{
-	const unsigned char *ptr = _ptr;
-	return ptr[0] | (ptr[1] << 8) | (ptr[2] << 16) | (ptr[3] << 24);
-}
-
-/* ----------------------------------------------------------------------
- * write a uint32_t to buffer.
- * network format is defined to be little endian
- * -------------------------------------------------------------------- */
-void
-vchi_writebuf_uint32(void *_ptr, uint32_t value)
-{
-	unsigned char *ptr = _ptr;
-
-	ptr[0] = (unsigned char)((value >> 0)  & 0xFF);
-	ptr[1] = (unsigned char)((value >> 8)  & 0xFF);
-	ptr[2] = (unsigned char)((value >> 16) & 0xFF);
-	ptr[3] = (unsigned char)((value >> 24) & 0xFF);
-}
-
-/* ----------------------------------------------------------------------
- * read a uint16_t from buffer.
- * network format is defined to be little endian
- * -------------------------------------------------------------------- */
-uint16_t
-vchi_readbuf_uint16(const void *_ptr)
-{
-	const unsigned char *ptr = _ptr;
-
-	return ptr[0] | (ptr[1] << 8);
-}
-
-/* ----------------------------------------------------------------------
- * write a uint16_t into the buffer.
- * network format is defined to be little endian
- * -------------------------------------------------------------------- */
-void
-vchi_writebuf_uint16(void *_ptr, uint16_t value)
-{
-	unsigned char *ptr = _ptr;
-	ptr[0] = (value >> 0)  & 0xFF;
-	ptr[1] = (value >> 8)  & 0xFF;
-}
-
 /***********************************************************
  * Name: vchi_service_use
  *
-- 
2.12.0

[toc] | [next] | [standalone]


#1600906

FromStefan Wahren <stefan.wahren@i2se.com>
Date2017-03-14 22:10 +0100
Message-ID<tl1RE-5YL-3@gated-at.bofh.it>
In reply to#1600845
> Jean-Baptiste Abbadie <jb@abbadie.fr> hat am 14. März 2017 um 20:14 geschrieben:
> 
> 
> These four functions are not used and report errors with sparse.
> 
> Signed-off-by: Jean-Baptiste Abbadie <jb@abbadie.fr>

Acked-by: Stefan Wahren <stefan.wahren@i2se.com>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web