Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4745347imm; Mon, 15 Oct 2018 22:16:45 -0700 (PDT) X-Google-Smtp-Source: ACcGV608P+hxt4xPiokKyZ4cliFEpzRKMd/nWrbpBA1hdjOxC4luVLe4Px2E7vHirwnSFMARW+Fc X-Received: by 2002:a17:902:bd45:: with SMTP id b5-v6mr19710057plx.171.1539667005389; Mon, 15 Oct 2018 22:16:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539667005; cv=none; d=google.com; s=arc-20160816; b=NCIsreM5iATGCCtk2db+dEVFYqofHvfZxBafm387CSCoRP75M1aL8iIWuU0+UH+aYv s52z64mHd9dACAWKTLHbo6/HFL121hs/Y/su5TnTqKYIXt/Rs77ViJiRdpEfML7ZXUfe xaQGom2qGbPzi7HvqM7cs+20LKeMKVDNDbVwvciBE/vHQyQnYtxBQ7H3Pd9JROgVX4kU l1S+lT/64YPIiZg3XcBNdzVXG1nk/CUizPML6FIp0CjJAUpM3nmRT5QgSdWUvZbIHJuF 1JbPE4+AGWBZ9dHPgb8KB46T7QRazCFp+WvMNsmiRrIX7m7fGDTT9fVp25LqKDhbcsH8 psVA== 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 :references:in-reply-to:from:subject:cc:to:message-id:date; bh=CWrII/xPI/OYmsq9idYB99+Spco6nuh9lcSJqoZJtUM=; b=JWdi27F40h2jyg6+maAWSBtv8pahEof9lPfQU/M7nz12+YpV+CHV/Rfp1H/gZdMxrt SCGcJmVcW2+pirCpZ2pe3X2Od2ixXrZCGOHwO8l2OBfqX1jd/PAqfPdBummljgFnXp2m YUICEYU/MXFG9cVY7rZHxlaT/0KZ0dBcC5VXEFKRi3cK2BamBm5TDVOUC4eXXrQh3qR6 cioK8yC0MdQScOpC7raPlPESK0eT6qF4j9bR5Kr8ZPz8gZIUFNsmuljkGq3yyZxODmgd 6NwcCoK5zs+IUlfsKOZskO4deknLwq5nXdZWYnDYLBpzpZDMEk0afGNSXfe7tUihzGB0 t3FQ== ARC-Authentication-Results: i=1; mx.google.com; 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 1-v6si13185987plr.72.2018.10.15.22.16.27; Mon, 15 Oct 2018 22:16:45 -0700 (PDT) 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; 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 S1727836AbeJPNEm (ORCPT + 99 others); Tue, 16 Oct 2018 09:04:42 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:43634 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727008AbeJPNEm (ORCPT ); Tue, 16 Oct 2018 09:04:42 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::cf9]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 4E57C1456E0B9; Mon, 15 Oct 2018 22:16:03 -0700 (PDT) Date: Mon, 15 Oct 2018 22:16:02 -0700 (PDT) Message-Id: <20181015.221602.1800911512004774943.davem@davemloft.net> To: kyeongdon.kim@lge.com Cc: ktkhai@virtuozzo.com, viro@zeniv.linux.org.uk, garsilva@embeddedor.com, jbaron@akamai.com, dvlasenk@redhat.com, xiyou.wangcong@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: fix waring in af_unix From: David Miller In-Reply-To: <1539340454-67970-1-git-send-email-kyeongdon.kim@lge.com> References: <1539340454-67970-1-git-send-email-kyeongdon.kim@lge.com> X-Mailer: Mew version 6.7 on Emacs 26 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 15 Oct 2018 22:16:03 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kyeongdon Kim Date: Fri, 12 Oct 2018 19:34:14 +0900 > This fixes the "'hash' may be used uninitialized in this function" > > net/unix/af_unix.c:1041:20: warning: 'hash' may be used uninitialized in this function [-Wmaybe-uninitialized] > addr->hash = hash ^ sk->sk_type; > ^ > > Signed-off-by: Kyeongdon Kim Please put the initialization at the start of unix_mkname() as a similar situation exists elsewhere in this file, and the compiler will eventually warn there too.