From 3436449540fbfad5b8887a9dd900a1f37a1eec96 Mon Sep 17 00:00:00 2001 From: Jon Grimm Date: Tue, 1 Apr 2003 21:23:53 -0600 Subject: [PATCH] [SCTP] Fix warning and unused (sfr@canb.auug.org.au) Patch submitted by Stephen Rothwell to change 'flags' to unsigned long and remove 'unused' attribute. --- include/net/sctp/sctp.h | 2 +- net/sctp/protocol.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index 5c537d9e7499b..f964badf70629 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h @@ -356,7 +356,7 @@ for (pos = (head)->next;\ static inline void sctp_skb_list_tail(struct sk_buff_head *list, struct sk_buff_head *head) { - int flags __attribute__ ((unused)); + unsigned long flags; sctp_spin_lock_irqsave(&head->lock, flags); sctp_spin_lock(&list->lock); diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index c4e03b9f74a92..5773728dd1feb 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -170,7 +170,7 @@ static void __sctp_get_local_addr_list(struct sctp_protocol *proto) static void sctp_get_local_addr_list(struct sctp_protocol *proto) { - long flags __attribute__ ((unused)); + unsigned long flags; sctp_spin_lock_irqsave(&sctp_proto.local_addr_lock, flags); __sctp_get_local_addr_list(&sctp_proto); @@ -193,7 +193,7 @@ static void __sctp_free_local_addr_list(struct sctp_protocol *proto) /* Free the existing local addresses. */ static void sctp_free_local_addr_list(struct sctp_protocol *proto) { - long flags __attribute__ ((unused)); + unsigned long flags; sctp_spin_lock_irqsave(&proto->local_addr_lock, flags); __sctp_free_local_addr_list(proto); @@ -208,7 +208,7 @@ int sctp_copy_local_addr_list(struct sctp_protocol *proto, struct sockaddr_storage_list *addr; int error = 0; struct list_head *pos; - long flags __attribute__ ((unused)); + unsigned long flags; sctp_spin_lock_irqsave(&proto->local_addr_lock, flags); list_for_each(pos, &proto->local_addr_list) { @@ -543,10 +543,10 @@ out: /* Event handler for inet address addition/deletion events. * Basically, whenever there is an event, we re-build our local address list. */ -static int sctp_inetaddr_event(struct notifier_block *this, unsigned long event, +static int sctp_inetaddr_event(struct notifier_block *this, unsigned long ev, void *ptr) { - long flags __attribute__ ((unused)); + unsigned long flags; sctp_spin_lock_irqsave(&sctp_proto.local_addr_lock, flags); __sctp_free_local_addr_list(&sctp_proto); -- 2.53.0