Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Dec 2016 11:19:54 +0000 (UTC)
From:      Andrew Rybchenko <arybchik@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r310693 - head/sys/dev/sfxge/common
Message-ID:  <201612281119.uBSBJsDp057546@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arybchik
Date: Wed Dec 28 11:19:54 2016
New Revision: 310693
URL: https://svnweb.freebsd.org/changeset/base/310693

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

Modified:
  head/sys/dev/sfxge/common/ef10_ev.c
  head/sys/dev/sfxge/common/ef10_filter.c
  head/sys/dev/sfxge/common/ef10_nvram.c
  head/sys/dev/sfxge/common/efx_ev.c
  head/sys/dev/sfxge/common/efx_filter.c
  head/sys/dev/sfxge/common/siena_vpd.c

Modified: head/sys/dev/sfxge/common/ef10_ev.c
==============================================================================
--- head/sys/dev/sfxge/common/ef10_ev.c	Wed Dec 28 11:11:15 2016	(r310692)
+++ head/sys/dev/sfxge/common/ef10_ev.c	Wed Dec 28 11:19:54 2016	(r310693)
@@ -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: head/sys/dev/sfxge/common/ef10_filter.c
==============================================================================
--- head/sys/dev/sfxge/common/ef10_filter.c	Wed Dec 28 11:11:15 2016	(r310692)
+++ head/sys/dev/sfxge/common/ef10_filter.c	Wed Dec 28 11:19:54 2016	(r310693)
@@ -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: head/sys/dev/sfxge/common/ef10_nvram.c
==============================================================================
--- head/sys/dev/sfxge/common/ef10_nvram.c	Wed Dec 28 11:11:15 2016	(r310692)
+++ head/sys/dev/sfxge/common/ef10_nvram.c	Wed Dec 28 11:19:54 2016	(r310693)
@@ -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: head/sys/dev/sfxge/common/efx_ev.c
==============================================================================
--- head/sys/dev/sfxge/common/efx_ev.c	Wed Dec 28 11:11:15 2016	(r310692)
+++ head/sys/dev/sfxge/common/efx_ev.c	Wed Dec 28 11:19:54 2016	(r310693)
@@ -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: head/sys/dev/sfxge/common/efx_filter.c
==============================================================================
--- head/sys/dev/sfxge/common/efx_filter.c	Wed Dec 28 11:11:15 2016	(r310692)
+++ head/sys/dev/sfxge/common/efx_filter.c	Wed Dec 28 11:19:54 2016	(r310693)
@@ -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: head/sys/dev/sfxge/common/siena_vpd.c
==============================================================================
--- head/sys/dev/sfxge/common/siena_vpd.c	Wed Dec 28 11:11:15 2016	(r310692)
+++ head/sys/dev/sfxge/common/siena_vpd.c	Wed Dec 28 11:19:54 2016	(r310693)
@@ -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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612281119.uBSBJsDp057546>