Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1350725ybm; Wed, 22 May 2019 22:55:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxf5e1rbjefr1QjlQm4XWaqOgPZ3Yirx+Rrm2Iqy5srGCLdqxeDT5rXsEuttgLWNigkpFnC X-Received: by 2002:a65:4786:: with SMTP id e6mr10443612pgs.85.1558590904539; Wed, 22 May 2019 22:55:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558590904; cv=none; d=google.com; s=arc-20160816; b=aXbg/o3dUfrxrdRhTyqaWWZbCqs6NMbDnWmLQWMP+jE2lh4EZWme3chGwGsQHQgGTN Gy9n7cuT35IPwpbnj9c5PxoKWodnw0/Gu6k8SVCxXrMN2wACIKDW7VjmVu3q1yD1HNor G33Xpi5zl4TzkjwOUiK4JtzQFguZxkPmqiSuOudepYRDRXE1Zy+OkjcS20yvXbnDMAvM QMX4kL6LBt2dQmJTMKTytZTom2u4b3quum7idN6ZlQ4N0AFxm+CDAB5jtgB3+V5wPxCl Iz5Rc7aUJsW+lT3eICMh8XxOKnEHblzKWloLRp68q1ke+vQh4rOA7RBCwzOejsjzLTDB 8qBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bBa7UJl3zWWeMrZ2MH3kGa3qiXT7EmDCSARLW8RiXaw=; b=oCr9xS7YnjoHL66NQVCkEmoxPGTWof28OLIrLKv5b9nAtP1R4A8q3elpT5JD4vISrF 1lCCWKZyV9+4IPxaFu+6kuecekkscAwGKMpk9JhK8aJFUBEwSjm7rB8XfsSiXVZYDQxu MtNvCbZdLnt87fOTS4rdpGoxEw7GgoBEg5IInOpDSM2YINc8/J4AjcOq1ukvBByNR8Db HxUYHHGFnzzskkajBSErfPXUs3FCeGeCe95rO4Ww54QnM1HPDrMV/3AT587GfWQuxe96 CfcM3+Ovy/i1YzSmPiDD/KaeZ2r7WyVRxDgWSHlaHsMem4zjwGyLfjENBW7c1OE080O2 +SdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="CmiFpU/t"; 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 c8si29119202pfn.208.2019.05.22.22.54.49; Wed, 22 May 2019 22:55:04 -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; dkim=pass header.i=@kernel.org header.s=default header.b="CmiFpU/t"; 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 S1729859AbfEWFxB (ORCPT + 99 others); Thu, 23 May 2019 01:53:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:44044 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725806AbfEWFxB (ORCPT ); Thu, 23 May 2019 01:53:01 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 7A63C2075E; Thu, 23 May 2019 05:53:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558590781; bh=tax24nmBc628VmVjaF783AtVlysAZD6fCJGwTezeGjM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CmiFpU/tt/UQvKhkn2236vqNC/YozN9lFSm4XiW03lKqrccWSyLvTdLlr03/2UA3M ryAHMnWBeh8CwIYNHMYhcynpGmw6h/iG3xxauTq+qFbPFtZr0P5gjIqPInQcDY7SuF uraQf5X7iaoEd5DZmzYTG42sbkRLn2pmdhW1I/3M= Date: Thu, 23 May 2019 07:52:58 +0200 From: Greg Kroah-Hartman To: Nathan Chancellor Cc: Cliff Whickman , Robin Holt , Arnd Bergmann , linux-kernel@vger.kernel.org, Nick Desaulniers , clang-built-linux@googlegroups.com Subject: Re: -Wuninitialized warning in drivers/misc/sgi-xp/xpc_partition.c Message-ID: <20190523055258.GC22946@kroah.com> References: <20190503033340.GA7980@archlinux-i9> <20190523015639.GB17819@archlinux-epyc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190523015639.GB17819@archlinux-epyc> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 22, 2019 at 06:56:39PM -0700, Nathan Chancellor wrote: > On Thu, May 02, 2019 at 08:33:40PM -0700, Nathan Chancellor wrote: > > Hi all, > > > > When building with -Wuninitialized, Clang warns: > > > > drivers/misc/sgi-xp/xpc_partition.c:73:14: warning: variable 'buf' is uninitialized when used within its own initialization [-Wuninitialized] > > void *buf = buf; > > ~~~ ^~~ > > 1 warning generated. > > > > I am not really sure how to properly initialize buf in this instance. > > I would assume it would involve xpc_kmalloc_cacheline_aligned like > > further down in the function but maybe not, this function isn't entirely > > clear. Could we get your input, this is one of the last warnings I see > > in a few allyesconfig builds. > > > > Thanks, > > Nathan > > Hi all, > > Friendly ping for comments/input. This is one of a few remaining > warnings I see, it'd be nice to get it fixed up so we can turn it on for > the whole kernel. Patches are gladly welcome :) thanks, greg k-h