]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: unisys: fix typedef of ULTRA_VBUS_CHANNEL_PROTOCOL
authorBenjamin Romer <benjamin.romer@unisys.com>
Fri, 3 Oct 2014 18:09:12 +0000 (14:09 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:06 +0000 (10:29 +0800)
Get rid of the typedef ULTRA_VBUS_CHANNEL_PROTOCOL, in favor of the name
struct ultra_vbus_channel_protocol. This change finishes the warnings
clean up for include/uisqueue.h.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/common-spar/include/channels/vbuschannel.h
drivers/staging/unisys/include/uisqueue.h
drivers/staging/unisys/virtpci/virtpci.c

index 1231c454176fd82ab8b1fbea1e99f9127bec8386..20e0753af94589e1773735e9d89ed26c08425d67 100644 (file)
@@ -47,7 +47,7 @@ static const uuid_le UltraVbusChannelProtocolGuid =
        (ULTRA_check_channel_client(pChannel,                           \
                                    UltraVbusChannelProtocolGuid,       \
                                    "vbus",                             \
-                                   sizeof(ULTRA_VBUS_CHANNEL_PROTOCOL), \
+                                   sizeof(struct ultra_vbus_channel_protocol),\
                                    ULTRA_VBUS_CHANNEL_PROTOCOL_VERSIONID, \
                                    ULTRA_VBUS_CHANNEL_PROTOCOL_SIGNATURE, \
                                    __FILE__, __LINE__, logCtx))
@@ -55,7 +55,7 @@ static const uuid_le UltraVbusChannelProtocolGuid =
 #define ULTRA_VBUS_CHANNEL_OK_SERVER(actualBytes, logCtx)    \
        (ULTRA_check_channel_server(UltraVbusChannelProtocolGuid,       \
                                    "vbus",                             \
-                                   sizeof(ULTRA_VBUS_CHANNEL_PROTOCOL), \
+                                   sizeof(struct ultra_vbus_channel_protocol),\
                                    actualBytes,                        \
                                    __FILE__, __LINE__, logCtx))
 
@@ -75,7 +75,7 @@ typedef struct _ULTRA_VBUS_HEADERINFO {
        u8 reserved[104];
 } ULTRA_VBUS_HEADERINFO;
 
-typedef struct _ULTRA_VBUS_CHANNEL_PROTOCOL {
+struct ultra_vbus_channel_protocol {
        ULTRA_CHANNEL_PROTOCOL ChannelHeader;   /* initialized by server */
        ULTRA_VBUS_HEADERINFO HdrInfo;  /* initialized by server */
        /* the remainder of this channel is filled in by the client */
@@ -86,7 +86,7 @@ typedef struct _ULTRA_VBUS_CHANNEL_PROTOCOL {
        ULTRA_VBUS_DEVICEINFO DevInfo[0];       /* describes client device and
                                                 * driver for */
        /* each device on the bus */
-} ULTRA_VBUS_CHANNEL_PROTOCOL;
+};
 
 #define VBUS_CH_SIZE_EXACT(MAXDEVICES) \
        (sizeof(ULTRA_VBUS_CHANNEL_PROTOCOL) + ((MAXDEVICES) * \
index 19c8d5d7dc8b2f2ef46cbd2402ad1d6a647f056a..6e0ec05a4a4380fdd0727bea8a5c6695839838ce 100644 (file)
@@ -158,7 +158,7 @@ struct bus_info {
        struct device_info **device;
        u64 guest_handle, recv_bus_irq_handle;
        uuid_le bus_inst_uuid;
-       ULTRA_VBUS_CHANNEL_PROTOCOL __iomem *bus_channel;
+       struct ultra_vbus_channel_protocol __iomem *bus_channel;
        int bus_channel_bytes;
        struct proc_dir_entry *proc_dir;        /* proc/uislib/vbus/<x> */
        struct proc_dir_entry *proc_info;       /* proc/uislib/vbus/<x>/info */
index 91f939570b38453609418c0045836ddca1117aae..83f1a00c6bed204fb9bae51f11caebd001454070 100644 (file)
@@ -186,7 +186,7 @@ int WAIT_FOR_IO_CHANNEL(ULTRA_IO_CHANNEL_PROTOCOL __iomem  *chanptr)
 }
 
 /* Write the contents of <info> to the ULTRA_VBUS_CHANNEL_PROTOCOL.ChpInfo. */
-static int write_vbus_chpInfo(ULTRA_VBUS_CHANNEL_PROTOCOL *chan,
+static int write_vbus_chpInfo(struct ultra_vbus_channel_protocol *chan,
                              ULTRA_VBUS_DEVICEINFO *info)
 {
        int off;
@@ -205,7 +205,7 @@ static int write_vbus_chpInfo(ULTRA_VBUS_CHANNEL_PROTOCOL *chan,
 }
 
 /* Write the contents of <info> to the ULTRA_VBUS_CHANNEL_PROTOCOL.BusInfo. */
-static int write_vbus_busInfo(ULTRA_VBUS_CHANNEL_PROTOCOL *chan,
+static int write_vbus_busInfo(struct ultra_vbus_channel_protocol *chan,
                              ULTRA_VBUS_DEVICEINFO *info)
 {
        int off;
@@ -227,7 +227,7 @@ static int write_vbus_busInfo(ULTRA_VBUS_CHANNEL_PROTOCOL *chan,
  * ULTRA_VBUS_CHANNEL_PROTOCOL.DevInfo[<devix>].
  */
 static int
-write_vbus_devInfo(ULTRA_VBUS_CHANNEL_PROTOCOL *chan,
+write_vbus_devInfo(struct ultra_vbus_channel_protocol *chan,
                   ULTRA_VBUS_DEVICEINFO *info, int devix)
 {
        int off;