Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp837991imu; Tue, 11 Dec 2018 08:19:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/Ux3dDRfaImZpiAX3RXTRfYaefBEi/t5pGtBQP++t8Q0IzoCM48jIaJUjtq6ATLcHWniVbC X-Received: by 2002:a63:ee4c:: with SMTP id n12mr14691319pgk.21.1544545154109; Tue, 11 Dec 2018 08:19:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544545154; cv=none; d=google.com; s=arc-20160816; b=drVqNEFtICNzHHISKo6vXs68bP/hS2wKXvBw6Wt8rMyL+WOAvWby25WWeEu8Kuu7Xg pQcIQTSmOwDSN/d6zGwR33/JV6gZEKxGgirE3MZWi6+vh4xio09FxOZIhgjQET8SOKR1 PQ40nVLx46wnRObpuXfSoRhUo7xs0SVAUQkrKd4kcwdyG0fdfAF3PFybmrOEFepKUKOV 8d1IzaEZVv4r8+Yfnccvm6rNLJkErC61EoVy3cxE0P4njbGpLvrcRyLb06loLuLpEP6V zZMUT3TRa4vymlFXCn7ASg7dsD73i39zh5CdjvmWWUK1klvHYffrLk4QmZ6iOlpd2C7i UhVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dFzyfUw2cbjIH3EmAIO+P1n7rGx80qkAOYWY3ua0qDY=; b=itWrsisMJVgjtH7DnLFdHxn4OLMDyeor28XDerUH6dUPOSO3+7utAmvV8ULBJxX4O3 k5M88Nc99GXwyYYnClaYck9Yznbwwe7k0TwZAA/78sprohxJMyxvcJH2q5pDsXQnnq7/ LpfkDZEAZBGFwWoZ91EYsPQebZQw5MS3v3t4MxrtlEHyEAiLOZqncK61DBdheeAJU9MF OhO+hUvk88Eor5UuvCb0UVvGdcIihC8OUgEMVBx12dSSC7+z6PVQHKJHRjK6p6Pave50 v7ZFWnoPUk36Yg0j/k9rmMm97nzlBZi+KutOy5BR30hTLUnq5/oQKIqGKOW1BLpdzZQH Eskw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OsDpLOJU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 19si12111923pgp.186.2018.12.11.08.18.59; Tue, 11 Dec 2018 08:19:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OsDpLOJU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728944AbeLKQRY (ORCPT + 99 others); Tue, 11 Dec 2018 11:17:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:35724 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728506AbeLKPrP (ORCPT ); Tue, 11 Dec 2018 10:47:15 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E5025208E7; Tue, 11 Dec 2018 15:47:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544543235; bh=RWtfUAkUTRnWDiF0gi0MfuJHadAjjlYFtP8A7nb2Qho=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OsDpLOJU5jAUwBzDhOZjG0xVEm6x5u2DKJf+1asZZ9ENOz2GHaZ8tPHvf4m4ILaPC sfR3ftaJyyw6alWRRpTaeCs2GmV3OMKY6GDhQJUAYn/IS9kauHHA8i094wXZANxNTt y7zBySBUDN+0peIWM7jYEyPSHn03HltxjnaloBE0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tariq Toukan , "David S. Miller" , Sasha Levin Subject: [PATCH 4.4 65/91] net/mlx4_core: Fix uninitialized variable compilation warning Date: Tue, 11 Dec 2018 16:41:24 +0100 Message-Id: <20181211151611.462739330@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181211151606.026852373@linuxfoundation.org> References: <20181211151606.026852373@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 3ea7e7ea53c9f6ee41cb69a29c375fe9dd9a56a7 ] Initialize the uid variable to zero to avoid the compilation warning. Fixes: 7a89399ffad7 ("net/mlx4: Add mlx4_bitmap zone allocator") Signed-off-by: Tariq Toukan Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx4/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx4/alloc.c b/drivers/net/ethernet/mellanox/mlx4/alloc.c index 0c51c69f802f..a4912b11e54f 100644 --- a/drivers/net/ethernet/mellanox/mlx4/alloc.c +++ b/drivers/net/ethernet/mellanox/mlx4/alloc.c @@ -339,7 +339,7 @@ void mlx4_zone_allocator_destroy(struct mlx4_zone_allocator *zone_alloc) static u32 __mlx4_alloc_from_zone(struct mlx4_zone_entry *zone, int count, int align, u32 skip_mask, u32 *puid) { - u32 uid; + u32 uid = 0; u32 res; struct mlx4_zone_allocator *zone_alloc = zone->allocator; struct mlx4_zone_entry *curr_node; -- 2.19.1