From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D2DCC5CFFE for ; Tue, 11 Dec 2018 15:51:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C6B292145D for ; Tue, 11 Dec 2018 15:51:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544543488; bh=5xPVe/tki8YPMA4tZUeSXYKUz6SCW7YfaIZ9KkZ+KJo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=nFAu5vCLHdnq1jw1dA0VkNglgi6K05CIzs6VHNWy83Rh6vgwyASbC1RNu8ZiEz4FQ rxsIK465n13QFjUVEQ/yDcnI2DeMzZVrAc2VbxKmUiG52+BrRr/B6HVgRP9zdETR0E Ks6iz/QTBZs4NiKI5xKRRXAjt9uolEMkhPFQbFeA= DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C6B292145D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729494AbeLKPv1 (ORCPT ); Tue, 11 Dec 2018 10:51:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:40044 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729031AbeLKPvX (ORCPT ); Tue, 11 Dec 2018 10:51:23 -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 D539A20855; Tue, 11 Dec 2018 15:51:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544543483; bh=5xPVe/tki8YPMA4tZUeSXYKUz6SCW7YfaIZ9KkZ+KJo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lfZG15wkjtEEFdrK4+u7Q+qMbNS8JvEJe7CFf8stVFP8BLn6OsXpVO+nW0WTj5qHj BOFpWVoSpWBzHWkv+OLkLSG1b7vnSPRDT8FibJp/HSnp7QEu1r05ICBTQjNz2F6S1/ TUPGWGXM1qWRBRMFkGtf8TZc3GTV61zynj5qK8xE= 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.14 16/67] net/mlx4_core: Fix uninitialized variable compilation warning Date: Tue, 11 Dec 2018 16:41:16 +0100 Message-Id: <20181211151631.204866396@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181211151630.378216233@linuxfoundation.org> References: <20181211151630.378216233@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.14-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 6dabd983e7e0..94f4dc4a77e9 100644 --- a/drivers/net/ethernet/mellanox/mlx4/alloc.c +++ b/drivers/net/ethernet/mellanox/mlx4/alloc.c @@ -337,7 +337,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