Author: arybchik
Date: Mon Jan  2 09:12:06 2017
New Revision: 311062
URL: https://svnweb.freebsd.org/changeset/base/311062

Log:
  MFC r310693
  
  sfxge(4): cleanup: avoid unspecified unsigned
  
  Found by DPDK checkpatch.sh
  
  Sponsored by:   Solarflare Communications, Inc.

Modified:
  stable/10/sys/dev/sfxge/common/ef10_ev.c
  stable/10/sys/dev/sfxge/common/ef10_filter.c
  stable/10/sys/dev/sfxge/common/ef10_nvram.c
  stable/10/sys/dev/sfxge/common/efx_ev.c
  stable/10/sys/dev/sfxge/common/efx_filter.c
  stable/10/sys/dev/sfxge/common/siena_vpd.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/sfxge/common/ef10_ev.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/ef10_ev.c    Mon Jan  2 09:10:37 2017        
(r311061)
+++ stable/10/sys/dev/sfxge/common/ef10_ev.c    Mon Jan  2 09:12:06 2017        
(r311062)
@@ -990,7 +990,7 @@ ef10_ev_mcdi(
        __in_opt        void *arg)
 {
        efx_nic_t *enp = eep->ee_enp;
-       unsigned code;
+       unsigned int code;
        boolean_t should_abort = B_FALSE;
 
        EFX_EV_QSTAT_INCR(eep, EV_MCDI_RESPONSE);

Modified: stable/10/sys/dev/sfxge/common/ef10_filter.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/ef10_filter.c        Mon Jan  2 09:10:37 
2017        (r311061)
+++ stable/10/sys/dev/sfxge/common/ef10_filter.c        Mon Jan  2 09:12:06 
2017        (r311062)
@@ -1246,7 +1246,7 @@ ef10_filter_reconfigure(
        efx_nic_cfg_t *encp = &enp->en_nic_cfg;
        ef10_filter_table_t *table = enp->en_filter.ef_ef10_filter_table;
        efx_filter_flag_t filter_flags;
-       unsigned i;
+       unsigned int i;
        efx_rc_t all_unicst_rc = 0;
        efx_rc_t all_mulcst_rc = 0;
        efx_rc_t rc;

Modified: stable/10/sys/dev/sfxge/common/ef10_nvram.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/ef10_nvram.c Mon Jan  2 09:10:37 2017        
(r311061)
+++ stable/10/sys/dev/sfxge/common/ef10_nvram.c Mon Jan  2 09:12:06 2017        
(r311062)
@@ -772,7 +772,7 @@ ef10_nvram_buffer_create(
        struct tlv_partition_header header;
        struct tlv_partition_trailer trailer;
 
-       unsigned min_buf_size = sizeof (struct tlv_partition_header) +
+       unsigned int min_buf_size = sizeof (struct tlv_partition_header) +
            sizeof (struct tlv_partition_trailer);
        if (partn_size < min_buf_size) {
                rc = EINVAL;

Modified: stable/10/sys/dev/sfxge/common/efx_ev.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/efx_ev.c     Mon Jan  2 09:10:37 2017        
(r311061)
+++ stable/10/sys/dev/sfxge/common/efx_ev.c     Mon Jan  2 09:12:06 2017        
(r311062)
@@ -953,7 +953,7 @@ siena_ev_mcdi(
        __in_opt        void *arg)
 {
        efx_nic_t *enp = eep->ee_enp;
-       unsigned code;
+       unsigned int code;
        boolean_t should_abort = B_FALSE;
 
        EFSYS_ASSERT3U(enp->en_family, ==, EFX_FAMILY_SIENA);

Modified: stable/10/sys/dev/sfxge/common/efx_filter.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/efx_filter.c Mon Jan  2 09:10:37 2017        
(r311061)
+++ stable/10/sys/dev/sfxge/common/efx_filter.c Mon Jan  2 09:12:06 2017        
(r311062)
@@ -970,7 +970,7 @@ siena_filter_search(
        __out           int *filter_index,
        __out           unsigned int *depth_required)
 {
-       unsigned hash, incr, filter_idx, depth;
+       unsigned int hash, incr, filter_idx, depth;
 
        hash = siena_filter_tbl_hash(key);
        incr = siena_filter_tbl_increment(key);

Modified: stable/10/sys/dev/sfxge/common/siena_vpd.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/siena_vpd.c  Mon Jan  2 09:10:37 2017        
(r311061)
+++ stable/10/sys/dev/sfxge/common/siena_vpd.c  Mon Jan  2 09:12:06 2017        
(r311062)
@@ -160,7 +160,7 @@ siena_vpd_init(
 {
        efx_mcdi_iface_t *emip = &(enp->en_mcdi.em_emip);
        caddr_t svpd = NULL;
-       unsigned partn;
+       unsigned int partn;
        size_t size = 0;
        efx_rc_t rc;
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to