linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Remove CsrEventHandle and functions using it
@ 2012-10-25  5:51 SeongJae Park
  2012-10-25  5:51 ` [PATCH 2/2] Remove struct CsrEvent SeongJae Park
  2012-10-25 19:16 ` [PATCH 1/2] Remove CsrEventHandle and functions using it Greg KH
  0 siblings, 2 replies; 4+ messages in thread
From: SeongJae Park @ 2012-10-25  5:51 UTC (permalink / raw)
  To: linux-kernel; +Cc: gregkh, SeongJae Park

Nobody use CsrEventHandle, Nobody call function using it as parameter.
So, remove it.

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
---
 drivers/staging/csr/csr_framework_ext.h       |   61 -------------------------
 drivers/staging/csr/csr_framework_ext_types.h |    2 -
 2 files changed, 63 deletions(-)

diff --git a/drivers/staging/csr/csr_framework_ext.h b/drivers/staging/csr/csr_framework_ext.h
index 66973e9..7cfbd48 100644
--- a/drivers/staging/csr/csr_framework_ext.h
+++ b/drivers/staging/csr/csr_framework_ext.h
@@ -36,67 +36,6 @@ extern "C" {
 
 /*----------------------------------------------------------------------------*
  *  NAME
- *      CsrEventCreate
- *
- *  DESCRIPTION
- *      Creates an event and returns a handle to the created event.
- *
- *  RETURNS
- *      Possible values:
- *          CSR_RESULT_SUCCESS          in case of success
- *          CSR_FE_RESULT_NO_MORE_EVENTS   in case of out of event resources
- *          CSR_FE_RESULT_INVALID_POINTER  in case the eventHandle pointer is invalid
- *
- *----------------------------------------------------------------------------*/
-CsrResult CsrEventCreate(CsrEventHandle *eventHandle);
-
-/*----------------------------------------------------------------------------*
- *  NAME
- *      CsrEventWait
- *
- *  DESCRIPTION
- *      Wait fore one or more of the event bits to be set.
- *
- *  RETURNS
- *      Possible values:
- *          CSR_RESULT_SUCCESS              in case of success
- *          CSR_FE_RESULT_TIMEOUT              in case of timeout
- *          CSR_FE_RESULT_INVALID_HANDLE       in case the eventHandle is invalid
- *          CSR_FE_RESULT_INVALID_POINTER      in case the eventBits pointer is invalid
- *
- *----------------------------------------------------------------------------*/
-CsrResult CsrEventWait(CsrEventHandle *eventHandle, u16 timeoutInMs, u32 *eventBits);
-
-/*----------------------------------------------------------------------------*
- *  NAME
- *      CsrEventSet
- *
- *  DESCRIPTION
- *      Set an event.
- *
- *  RETURNS
- *      Possible values:
- *          CSR_RESULT_SUCCESS              in case of success
- *          CSR_FE_RESULT_INVALID_HANDLE       in case the eventHandle is invalid
- *
- *----------------------------------------------------------------------------*/
-CsrResult CsrEventSet(CsrEventHandle *eventHandle, u32 eventBits);
-
-/*----------------------------------------------------------------------------*
- *  NAME
- *      CsrEventDestroy
- *
- *  DESCRIPTION
- *      Destroy the event associated.
- *
- *  RETURNS
- *      void
- *
- *----------------------------------------------------------------------------*/
-void CsrEventDestroy(CsrEventHandle *eventHandle);
-
-/*----------------------------------------------------------------------------*
- *  NAME
  *      CsrMutexCreate
  *
  *  DESCRIPTION
diff --git a/drivers/staging/csr/csr_framework_ext_types.h b/drivers/staging/csr/csr_framework_ext_types.h
index 57194ee..d97c2de 100644
--- a/drivers/staging/csr/csr_framework_ext_types.h
+++ b/drivers/staging/csr/csr_framework_ext_types.h
@@ -37,7 +37,6 @@ struct CsrEvent
     unsigned int      wakeup_flag;
 };
 
-typedef struct CsrEvent CsrEventHandle;
 typedef struct semaphore CsrMutexHandle;
 typedef struct CsrThread CsrThreadHandle;
 
@@ -50,7 +49,6 @@ struct CsrEvent
     u32       eventBits;
 };
 
-typedef struct CsrEvent CsrEventHandle;
 typedef pthread_mutex_t CsrMutexHandle;
 typedef pthread_t CsrThreadHandle;
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] Remove struct CsrEvent
  2012-10-25  5:51 [PATCH 1/2] Remove CsrEventHandle and functions using it SeongJae Park
@ 2012-10-25  5:51 ` SeongJae Park
  2012-10-25 19:16 ` [PATCH 1/2] Remove CsrEventHandle and functions using it Greg KH
  1 sibling, 0 replies; 4+ messages in thread
From: SeongJae Park @ 2012-10-25  5:51 UTC (permalink / raw)
  To: linux-kernel; +Cc: gregkh, SeongJae Park

Nobody use struct CsrEvent. Remove it.

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
---
 drivers/staging/csr/csr_framework_ext_types.h |   14 --------------
 1 file changed, 14 deletions(-)

diff --git a/drivers/staging/csr/csr_framework_ext_types.h b/drivers/staging/csr/csr_framework_ext_types.h
index d97c2de..9623eec 100644
--- a/drivers/staging/csr/csr_framework_ext_types.h
+++ b/drivers/staging/csr/csr_framework_ext_types.h
@@ -30,25 +30,11 @@ struct CsrThread
     char                name[16];
 };
 
-struct CsrEvent
-{
-    /* wait_queue for waking the kernel thread */
-    wait_queue_head_t wakeup_q;
-    unsigned int      wakeup_flag;
-};
-
 typedef struct semaphore CsrMutexHandle;
 typedef struct CsrThread CsrThreadHandle;
 
 #else /* __KERNEL __ */
 
-struct CsrEvent
-{
-    pthread_cond_t  event;
-    pthread_mutex_t mutex;
-    u32       eventBits;
-};
-
 typedef pthread_mutex_t CsrMutexHandle;
 typedef pthread_t CsrThreadHandle;
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] Remove CsrEventHandle and functions using it
  2012-10-25  5:51 [PATCH 1/2] Remove CsrEventHandle and functions using it SeongJae Park
  2012-10-25  5:51 ` [PATCH 2/2] Remove struct CsrEvent SeongJae Park
@ 2012-10-25 19:16 ` Greg KH
  2012-10-26  3:13   ` SeongJae Park
  1 sibling, 1 reply; 4+ messages in thread
From: Greg KH @ 2012-10-25 19:16 UTC (permalink / raw)
  To: SeongJae Park; +Cc: linux-kernel

On Thu, Oct 25, 2012 at 02:51:10PM +0900, SeongJae Park wrote:
> Nobody use CsrEventHandle, Nobody call function using it as parameter.
> So, remove it.
> 
> Signed-off-by: SeongJae Park <sj38.park@gmail.com>
> ---
>  drivers/staging/csr/csr_framework_ext.h       |   61 -------------------------
>  drivers/staging/csr/csr_framework_ext_types.h |    2 -
>  2 files changed, 63 deletions(-)

This patch applies with fuzz, which implies that you didn't make it
against the latest tree.  Care to redo it, and the 2/2 patch, against
either my staging-next branch of the staging.git tree, or the next
linux-next release that will happen tomorrow, and resend them?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] Remove CsrEventHandle and functions using it
  2012-10-25 19:16 ` [PATCH 1/2] Remove CsrEventHandle and functions using it Greg KH
@ 2012-10-26  3:13   ` SeongJae Park
  0 siblings, 0 replies; 4+ messages in thread
From: SeongJae Park @ 2012-10-26  3:13 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel

Thank you for comment.
I will make and send patch again.

Thanks and Regards.
SeongJae Park.

On Fri, Oct 26, 2012 at 4:16 AM, Greg KH <gregkh@linuxfoundation.org> wrote:
> On Thu, Oct 25, 2012 at 02:51:10PM +0900, SeongJae Park wrote:
>> Nobody use CsrEventHandle, Nobody call function using it as parameter.
>> So, remove it.
>>
>> Signed-off-by: SeongJae Park <sj38.park@gmail.com>
>> ---
>>  drivers/staging/csr/csr_framework_ext.h       |   61 -------------------------
>>  drivers/staging/csr/csr_framework_ext_types.h |    2 -
>>  2 files changed, 63 deletions(-)
>
> This patch applies with fuzz, which implies that you didn't make it
> against the latest tree.  Care to redo it, and the 2/2 patch, against
> either my staging-next branch of the staging.git tree, or the next
> linux-next release that will happen tomorrow, and resend them?
>
> thanks,
>
> greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-10-26  3:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-25  5:51 [PATCH 1/2] Remove CsrEventHandle and functions using it SeongJae Park
2012-10-25  5:51 ` [PATCH 2/2] Remove struct CsrEvent SeongJae Park
2012-10-25 19:16 ` [PATCH 1/2] Remove CsrEventHandle and functions using it Greg KH
2012-10-26  3:13   ` SeongJae Park

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).