aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2006-07-30 12:43:43 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-27 14:58:52 -0400
commit3d5b2510f6e361e2203e163c03b93d0026de5629 (patch)
tree0ea75b71862103a6c095948a2eecb68ded92fdcd /include/linux
parent066202dd48cf3296b6cc22b5fcf89aef33fa0efc (diff)
USB: making the kernel -Wshadow clean - USB & completion
include/linux/usb.h causes a lot of -Wshadow warnings - fix them. include/linux/usb.h:901: warning: declaration of 'complete' shadows a global declaration include/linux/completion.h:52: warning: shadowed declaration is here include/linux/usb.h:932: warning: declaration of 'complete' shadows a global declaration include/linux/completion.h:52: warning: shadowed declaration is here include/linux/usb.h:967: warning: declaration of 'complete' shadows a global declaration include/linux/completion.h:52: warning: shadowed declaration is here Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/usb.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h
index e22f4b386605..3d5cfa731680 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -932,7 +932,7 @@ struct urb
932 * @setup_packet: pointer to the setup_packet buffer 932 * @setup_packet: pointer to the setup_packet buffer
933 * @transfer_buffer: pointer to the transfer buffer 933 * @transfer_buffer: pointer to the transfer buffer
934 * @buffer_length: length of the transfer buffer 934 * @buffer_length: length of the transfer buffer
935 * @complete: pointer to the usb_complete_t function 935 * @complete_fn: pointer to the usb_complete_t function
936 * @context: what to set the urb context to. 936 * @context: what to set the urb context to.
937 * 937 *
938 * Initializes a control urb with the proper information needed to submit 938 * Initializes a control urb with the proper information needed to submit
@@ -944,7 +944,7 @@ static inline void usb_fill_control_urb (struct urb *urb,
944 unsigned char *setup_packet, 944 unsigned char *setup_packet,
945 void *transfer_buffer, 945 void *transfer_buffer,
946 int buffer_length, 946 int buffer_length,
947 usb_complete_t complete, 947 usb_complete_t complete_fn,
948 void *context) 948 void *context)
949{ 949{
950 spin_lock_init(&urb->lock); 950 spin_lock_init(&urb->lock);
@@ -953,7 +953,7 @@ static inline void usb_fill_control_urb (struct urb *urb,
953 urb->setup_packet = setup_packet; 953 urb->setup_packet = setup_packet;
954 urb->transfer_buffer = transfer_buffer; 954 urb->transfer_buffer = transfer_buffer;
955 urb->transfer_buffer_length = buffer_length; 955 urb->transfer_buffer_length = buffer_length;
956 urb->complete = complete; 956 urb->complete = complete_fn;
957 urb->context = context; 957 urb->context = context;
958} 958}
959 959
@@ -964,7 +964,7 @@ static inline void usb_fill_control_urb (struct urb *urb,
964 * @pipe: the endpoint pipe 964 * @pipe: the endpoint pipe
965 * @transfer_buffer: pointer to the transfer buffer 965 * @transfer_buffer: pointer to the transfer buffer
966 * @buffer_length: length of the transfer buffer 966 * @buffer_length: length of the transfer buffer
967 * @complete: pointer to the usb_complete_t function 967 * @complete_fn: pointer to the usb_complete_t function
968 * @context: what to set the urb context to. 968 * @context: what to set the urb context to.
969 * 969 *
970 * Initializes a bulk urb with the proper information needed to submit it 970 * Initializes a bulk urb with the proper information needed to submit it
@@ -975,7 +975,7 @@ static inline void usb_fill_bulk_urb (struct urb *urb,
975 unsigned int pipe, 975 unsigned int pipe,
976 void *transfer_buffer, 976 void *transfer_buffer,
977 int buffer_length, 977 int buffer_length,
978 usb_complete_t complete, 978 usb_complete_t complete_fn,
979 void *context) 979 void *context)
980{ 980{
981 spin_lock_init(&urb->lock); 981 spin_lock_init(&urb->lock);
@@ -983,7 +983,7 @@ static inline void usb_fill_bulk_urb (struct urb *urb,
983 urb->pipe = pipe; 983 urb->pipe = pipe;
984 urb->transfer_buffer = transfer_buffer; 984 urb->transfer_buffer = transfer_buffer;
985 urb->transfer_buffer_length = buffer_length; 985 urb->transfer_buffer_length = buffer_length;
986 urb->complete = complete; 986 urb->complete = complete_fn;
987 urb->context = context; 987 urb->context = context;
988} 988}
989 989
@@ -994,7 +994,7 @@ static inline void usb_fill_bulk_urb (struct urb *urb,
994 * @pipe: the endpoint pipe 994 * @pipe: the endpoint pipe
995 * @transfer_buffer: pointer to the transfer buffer 995 * @transfer_buffer: pointer to the transfer buffer
996 * @buffer_length: length of the transfer buffer 996 * @buffer_length: length of the transfer buffer
997 * @complete: pointer to the usb_complete_t function 997 * @complete_fn: pointer to the usb_complete_t function
998 * @context: what to set the urb context to. 998 * @context: what to set the urb context to.
999 * @interval: what to set the urb interval to, encoded like 999 * @interval: what to set the urb interval to, encoded like
1000 * the endpoint descriptor's bInterval value. 1000 * the endpoint descriptor's bInterval value.
@@ -1010,7 +1010,7 @@ static inline void usb_fill_int_urb (struct urb *urb,
1010 unsigned int pipe, 1010 unsigned int pipe,
1011 void *transfer_buffer, 1011 void *transfer_buffer,
1012 int buffer_length, 1012 int buffer_length,
1013 usb_complete_t complete, 1013 usb_complete_t complete_fn,
1014 void *context, 1014 void *context,
1015 int interval) 1015 int interval)
1016{ 1016{
@@ -1019,7 +1019,7 @@ static inline void usb_fill_int_urb (struct urb *urb,
1019 urb->pipe = pipe; 1019 urb->pipe = pipe;
1020 urb->transfer_buffer = transfer_buffer; 1020 urb->transfer_buffer = transfer_buffer;
1021 urb->transfer_buffer_length = buffer_length; 1021 urb->transfer_buffer_length = buffer_length;
1022 urb->complete = complete; 1022 urb->complete = complete_fn;
1023 urb->context = context; 1023 urb->context = context;
1024 if (dev->speed == USB_SPEED_HIGH) 1024 if (dev->speed == USB_SPEED_HIGH)
1025 urb->interval = 1 << (interval - 1); 1025 urb->interval = 1 << (interval - 1);