All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sctp: remove unused union (sctp_cmsg_data_t) definition .
@ 2009-07-30  6:38 Rami Rosen
  2009-07-30  6:55 ` Wei Yongjun
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Rami Rosen @ 2009-07-30  6:38 UTC (permalink / raw)
  To: linux-sctp

[-- Attachment #1: Type: text/plain, Size: 170 bytes --]

Hi,
This patch removes an unused union definition (sctp_cmsg_data_t)
from include/net/sctp/user.h.

Regards,
Rami Rosen


Signed-off-by: Rami Rosen <rosenrami@gmail.com>

[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 449 bytes --]

diff --git a/include/net/sctp/user.h b/include/net/sctp/user.h
index 1580c04..be2334a 100644
--- a/include/net/sctp/user.h
+++ b/include/net/sctp/user.h
@@ -210,12 +210,6 @@ enum sctp_sinfo_flags {
 };
 
 
-typedef union {
-	__u8   			raw;
-	struct sctp_initmsg	init;
-	struct sctp_sndrcvinfo	sndrcv;
-} sctp_cmsg_data_t;
-
 /* These are cmsg_types.  */
 typedef enum sctp_cmsg_type {
 	SCTP_INIT,              /* 5.2.1 SCTP Initiation Structure */

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

* Re: [PATCH] sctp: remove unused union (sctp_cmsg_data_t) definition
  2009-07-30  6:38 [PATCH] sctp: remove unused union (sctp_cmsg_data_t) definition Rami Rosen
@ 2009-07-30  6:55 ` Wei Yongjun
  2009-07-30  7:04 ` Rami Rosen
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Wei Yongjun @ 2009-07-30  6:55 UTC (permalink / raw)
  To: linux-sctp

Rami Rosen wrote:
> Hi,
> This patch removes an unused union definition (sctp_cmsg_data_t)
> from include/net/sctp/user.h.
>
> Regards,
> Rami Rosen
>
>
> Signed-off-by: Rami Rosen <rosenrami@gmail.com>
>   

sctp_cmsg_data_t  is not used by kernel source code, but it still used
by lksctp-tools.




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

* Re: [PATCH] sctp: remove unused union (sctp_cmsg_data_t) definition .
  2009-07-30  6:38 [PATCH] sctp: remove unused union (sctp_cmsg_data_t) definition Rami Rosen
  2009-07-30  6:55 ` Wei Yongjun
@ 2009-07-30  7:04 ` Rami Rosen
  2009-07-30  7:07 ` Wei Yongjun
  2009-07-30 14:28 ` Vlad Yasevich
  3 siblings, 0 replies; 5+ messages in thread
From: Rami Rosen @ 2009-07-30  7:04 UTC (permalink / raw)
  To: linux-sctp

>it still used by lksctp-tools.
I know; wouldn't it be more suitable to put it in include/linux/sctp.h ?

Regards,
Rami Rosen


On Thu, Jul 30, 2009 at 9:55 AM, Wei Yongjun<yjwei@cn.fujitsu.com> wrote:
> Rami Rosen wrote:
>> Hi,
>> This patch removes an unused union definition (sctp_cmsg_data_t)
>> from include/net/sctp/user.h.
>>
>> Regards,
>> Rami Rosen
>>
>>
>> Signed-off-by: Rami Rosen <rosenrami@gmail.com>
>>
>
> sctp_cmsg_data_t  is not used by kernel source code, but it still used
> by lksctp-tools.
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

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

* Re: [PATCH] sctp: remove unused union (sctp_cmsg_data_t) definition
  2009-07-30  6:38 [PATCH] sctp: remove unused union (sctp_cmsg_data_t) definition Rami Rosen
  2009-07-30  6:55 ` Wei Yongjun
  2009-07-30  7:04 ` Rami Rosen
@ 2009-07-30  7:07 ` Wei Yongjun
  2009-07-30 14:28 ` Vlad Yasevich
  3 siblings, 0 replies; 5+ messages in thread
From: Wei Yongjun @ 2009-07-30  7:07 UTC (permalink / raw)
  To: linux-sctp

Rami Rosen wrote:
>> it still used by lksctp-tools.
>>     
> I know; wouldn't it be more suitable to put it in include/linux/sctp.h ?
>   

include/linux/sctp.h is used by kernel source code only.

> Regards,
> Rami Rosen
>
>
> On Thu, Jul 30, 2009 at 9:55 AM, Wei Yongjun<yjwei@cn.fujitsu.com> wrote:
>   
>> Rami Rosen wrote:
>>     
>>> Hi,
>>> This patch removes an unused union definition (sctp_cmsg_data_t)
>>> from include/net/sctp/user.h.
>>>
>>> Regards,
>>> Rami Rosen
>>>
>>>
>>> Signed-off-by: Rami Rosen <rosenrami@gmail.com>
>>>
>>>       
>> sctp_cmsg_data_t  is not used by kernel source code, but it still used
>> by lksctp-tools.
>>
>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>>     
>
>
>
>   



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

* Re: [PATCH] sctp: remove unused union (sctp_cmsg_data_t) definition
  2009-07-30  6:38 [PATCH] sctp: remove unused union (sctp_cmsg_data_t) definition Rami Rosen
                   ` (2 preceding siblings ...)
  2009-07-30  7:07 ` Wei Yongjun
@ 2009-07-30 14:28 ` Vlad Yasevich
  3 siblings, 0 replies; 5+ messages in thread
From: Vlad Yasevich @ 2009-07-30 14:28 UTC (permalink / raw)
  To: linux-sctp

Wei Yongjun wrote:
> Rami Rosen wrote:
>>> it still used by lksctp-tools.
>>>     
>> I know; wouldn't it be more suitable to put it in include/linux/sctp.h ?
>>   
> 
> include/linux/sctp.h is used by kernel source code only.

/usr/include/netinet/sctp.h is the proper place for that definition.  If
it's not used by the kernel, it has no business living in the kernel tree.

-vlad


> 
>> Regards,
>> Rami Rosen
>>
>>
>> On Thu, Jul 30, 2009 at 9:55 AM, Wei Yongjun<yjwei@cn.fujitsu.com> wrote:
>>   
>>> Rami Rosen wrote:
>>>     
>>>> Hi,
>>>> This patch removes an unused union definition (sctp_cmsg_data_t)
>>>> from include/net/sctp/user.h.
>>>>
>>>> Regards,
>>>> Rami Rosen
>>>>
>>>>
>>>> Signed-off-by: Rami Rosen <rosenrami@gmail.com>
>>>>
>>>>       
>>> sctp_cmsg_data_t  is not used by kernel source code, but it still used
>>> by lksctp-tools.
>>>
>>>
>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>
>>>     
>>
>>
>>   
> 
> 


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

end of thread, other threads:[~2009-07-30 14:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-30  6:38 [PATCH] sctp: remove unused union (sctp_cmsg_data_t) definition Rami Rosen
2009-07-30  6:55 ` Wei Yongjun
2009-07-30  7:04 ` Rami Rosen
2009-07-30  7:07 ` Wei Yongjun
2009-07-30 14:28 ` Vlad Yasevich

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.