Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38abaa63 authored by Roland Dreier's avatar Roland Dreier
Browse files

IB/core: Fix sparse warnings about shadowed declarations



Change a couple of variable names to avoid sparse warnings about
symbols being shadowed.

Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent c8f6a362
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -301,7 +301,7 @@ struct ib_fmr_pool *ib_create_fmr_pool(struct ib_pd *pd,

	{
		struct ib_pool_fmr *fmr;
		struct ib_fmr_attr attr = {
		struct ib_fmr_attr fmr_attr = {
			.max_pages  = params->max_pages_per_fmr,
			.max_maps   = pool->max_remaps,
			.page_shift = params->page_shift
@@ -321,7 +321,7 @@ struct ib_fmr_pool *ib_create_fmr_pool(struct ib_pd *pd,
			fmr->ref_count        = 0;
			INIT_HLIST_NODE(&fmr->cache_node);

			fmr->fmr = ib_alloc_fmr(pd, params->access, &attr);
			fmr->fmr = ib_alloc_fmr(pd, params->access, &fmr_attr);
			if (IS_ERR(fmr->fmr)) {
				printk(KERN_WARNING "fmr_create failed for FMR %d", i);
				kfree(fmr);
+0 −2
Original line number Diff line number Diff line
@@ -714,8 +714,6 @@ int ib_device_register_sysfs(struct ib_device *device)
		if (ret)
			goto err_put;
	} else {
		int i;

		for (i = 1; i <= device->phys_port_cnt; ++i) {
			ret = add_port(device, i);
			if (ret)