]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sif: Minor cleanup commit
authorKnut Omang <knut.omang@oracle.com>
Thu, 20 Oct 2016 12:06:14 +0000 (14:06 +0200)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 24 Oct 2016 16:06:02 +0000 (09:06 -0700)
- Remove some unused variables
- Minor changes due to bug fixes in hardware header
  file generator

Signed-off-by: Knut Omang <knut.omang@oracle.com>
Reviewed-by: Francisco TriviƱo <francisco.trivino@oracle.com>
drivers/infiniband/hw/sif/psif_hw_data_be.h
drivers/infiniband/hw/sif/psif_hw_data_le.h
drivers/infiniband/hw/sif/psif_hw_print.c
drivers/infiniband/hw/sif/sif_dev.h

index de64fded345a80849630213ab629b807810688d1..7ec8e6ab27e5036e152f7aaac1d4a118b7c31d6c 100644 (file)
@@ -1654,7 +1654,7 @@ struct psif_modify_command {
         */
        u32     notify_when_zero:1;
        /* Manually added spacing to pad out psif_modify_command */
-       u32     pad05:3;
+       u32     pad00:3;
 } PSIF_PACKED; /* struct psif_modify_command [ 5 byte] */
 
 /*
@@ -2146,10 +2146,10 @@ struct psif_csr_modify_qp_ctrl {
         */
        u64     notify_when_zero:1;
        /* Manually added spacing to pad out psif_modify_command */
-       u64     pad06:3;
+       u64     pad00:3;
        /* Inlined cmd_attributes : struct psif_qp_attributes (24 bits) */
-       /* Manually added spacing to pad outpsif_qp_attributes */
-       u64     pad07:7;
+       /* Manually added spacing to pad out psif_qp_attributes */
+       u64     pad01:7;
        /* Change path req_access error if set. */
        u64     req_access_error:1;
        /* Change path MTU if set. */
@@ -3282,7 +3282,7 @@ struct psif_base_addr { /* Subjected to copy and convert */
        /* Number of entries in table. */
        u32     num_entries;
        /* Manually added spacing to pad out base addr */
-       u32     pad08:27;
+       u32     pad00:27;
        /*
         * clog2_extent used for entry alignment. This field used to calculate
         * address for a particular entry. Address to an entry is calculated as
index ddc3157cbb39f83595c3e0604b9424aeb6dacc15..35db0b2614df1c5f4120477b97339c90113410af 100644 (file)
@@ -1631,7 +1631,7 @@ struct psif_modify_qp {
 /* QP number UF and command for either modify or query QP. */
 struct psif_modify_command {
        /* Manually added spacing to pad out psif_modify_command */
-       u32     pad01:3;
+       u32     pad00:3;
        /*
         * This will arm interrupt to be sent when the refcount for the QP index used
         * have reached zero. It should be used when modify to Reset - when interrupt
@@ -2159,11 +2159,11 @@ struct psif_csr_modify_qp_ctrl {
        u16     path_mtu:1;
        /* Change path req_access error if set. */
        u64     req_access_error:1;
-       /* Manually added spacing to pad outpsif_qp_attributes */
-       u64     pad02:7;
+       /* Manually added spacing to pad out psif_qp_attributes */
+       u64     pad00:7;
        /* Inlined cmd_attributes : struct psif_qp_attributes (24 bits) */
        /* Manually added spacing to pad out psif_modify_command */
-       u64     pad03:3;
+       u64     pad01:3;
        /*
         * This will arm interrupt to be sent when the refcount for the QP index used
         * have reached zero. It should be used when modify to Reset - when interrupt
@@ -3286,7 +3286,7 @@ struct psif_base_addr { /* Subjected to copy and convert */
         */
        u32     extent_log2:5;
        /* Manually added spacing to pad out base addr */
-       u32     pad04:27;
+       u32     pad00:27;
        /* Number of entries in table. */
        u32     num_entries;
 } PSIF_PACKED_ALIGNED; /* struct psif_base_addr [24 byte] */
index d9a074fa9280f019ef13ac2ac052820e7dd3f7c6..fdd42d28428c0c6f8c4679521782a6eabcd9ec58 100644 (file)
@@ -2524,7 +2524,7 @@ void write_struct_psif_wr(XFILE *fd,
        xprintf(fd, "  .xrc_hdr = ");
        write_struct_psif_wr_xrc(fd, 0, &(data->xrc_hdr));
        xprintf(fd, "}");
-               }
+}
 
 void write_struct_psif_wr_expand(XFILE *fd,
        int network_order,
index fafe70e220227b2973501b4f94fc50666dba96bc..30bd7282e39dd2f8a1a0d0c4c37e1ad0f9592909 100644 (file)
@@ -295,7 +295,6 @@ struct sif_dev {
        bool registered;        /* Set when we are registered with the verbs layer */
        u64 min_resp_ticks;   /* expected min. hw resp.time in ticks */
 
-       u16 jiffies_sampling_cnt;    /* 1/N counter used to display performance measurement.  */
        /* Support for workaround for #3552 - feature_mask create_do_not_evict_qp: */
        u32 dne_qp;
 
@@ -697,7 +696,6 @@ extern uint sif_rq_size;
 extern ulong sif_eps_log_size;
 extern ushort sif_eps_log_level;
 
-extern ushort sif_perf_sampling_threshold;
 extern uint sif_fmr_cache_flush_threshold;
 
 /* Maximum number of outstanding privileged QP requests supported */