Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1170814ybm; Wed, 22 May 2019 19:00:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0wMeo03Ur474+6Dx5iGvSd9zWtME9j8X7fSqKIBJ3Yx9goY/vJa5Sw6VN5xsxUQ70JFb5 X-Received: by 2002:a17:90a:dc86:: with SMTP id j6mr145999pjv.141.1558576814203; Wed, 22 May 2019 19:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558576814; cv=none; d=google.com; s=arc-20160816; b=uupEb+Quf82urqPDV4rZObgN9AbwhVAGTahi3B3I40Zkur+2DhiZC1e28PKs4QTZ76 exZcmqUYyvEWC67RO5Jwwk6uLGu27CXsOdJTfl1BCSNahFQC7m/BwCGbH+i2j3/IjMEA GKtqodXaV/U2bXR5JUd6RzfHUyW47KxKrR8hN3eGuVJHPPdENgukkzRqSuEEWkkv9vZa qcN/OprF9r5UdlF7tDlKqhe4WeVow08tgB/bWRF0Q4bYktr+5idl/vegh49k/PWe95jg cUfEPdtGMNmVMehoHgx8g7s/GOB8DL5hRlwyi9jXdNkdld4jx8l2Bb6FrtRV5uSHM7dD MZIA== 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=VeCxUerMSUiEe1VSBy4pwjo+lY6Ie9i6gDJMGA8Iaqo=; b=m3fnftfvIFxXJVrqb4vH/KEnSf7Ciwc2Vd302JsruXjt98dPYGhlxFEb6B0bF71TT1 vI6lerwNZ3Wu3BoNJMvZZjFDhZPbmiClzZYKOUxHi/82Ls2oysyiR56Sud9qidrSLMTw IMidJEGlZGffdMxl7F9GcmtxsvCOTKvRFwmDOs9iB5Tyr3dMZGKAcO7nqg7hXXe6Em0k nbammOfj9dcFekjusxsjXfJObaZBS3t9w4dVYq7jWSIkAnObMfDk2eDgoyHlwwx+oI47 fadWNSI5xiHaZUoVPkymsylU35sZ2G4Xejp0rRQFAKY+hgkUj7197txNV08Fjf3zrPnY VCVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a4rFogx1; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g89si27840577plb.362.2019.05.22.18.59.58; Wed, 22 May 2019 19:00:14 -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=@gmail.com header.s=20161025 header.b=a4rFogx1; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729938AbfEWB4o (ORCPT + 99 others); Wed, 22 May 2019 21:56:44 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:46386 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727305AbfEWB4n (ORCPT ); Wed, 22 May 2019 21:56:43 -0400 Received: by mail-ed1-f66.google.com with SMTP id f37so6642790edb.13 for ; Wed, 22 May 2019 18:56:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=VeCxUerMSUiEe1VSBy4pwjo+lY6Ie9i6gDJMGA8Iaqo=; b=a4rFogx1/clKbND5YbpRBpPdX0an/nN716Pu2fh6o0JIN+LIie20RXWA6ei8QBxE/M dtSIQF2nxSINr/GTsfn3mhZGWUyMy94gHEGWpSjfJlD9TDSH7yhAXbyUKrKcuCfO/mne PRDLz/6ule8aOwm/VBaG9MpFj4UIOXU1U6UnqIpTcQZIzBpSlMiVU0lv/2rzAFtFSAgy Ypgkbeh6K+w+QhDgPEQAPiHzeAddh4ptxtGNVMm2jGw1XO+oFSo8eJuRHdmNE2Qc2DMV cLKT4Ihj4AODdvK4hE3vQyzHDm3YNAFblSLcHZqUE7hdlFAUmHGcqO2DyxtWZG9HYevY 7RgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=VeCxUerMSUiEe1VSBy4pwjo+lY6Ie9i6gDJMGA8Iaqo=; b=GfJOJFM5mQI3+1dGRdFud1dw+jVQ35oeYan6tQUMandAvpIB2RGwNjFbgnp1hbco9c l9jAcsogzD9LsJj5to2AuiIzGzElW1QsQhOnr55AqJQJdTcQGCQlzTk2Z9pm3GzoE9dh 5cTFJvwK4JCLPfNwy5mGfweBmV07vKyPZsi6F5t3xl6NsmVucpc9/4KT3gv1dLoZd8Rf tl29lF3U6kMs7UB/IM7Gst7xkuxxU284SwEFcuDCLKVBV3nbmm25DSxghgoW8WQ/Zi0h 98Yq4YVIuIOGQHdwASfaXKuFZMis4J/3JkDjYauHsQ16xLt3LX3dxrzo0WtncNEFXU8L BWpg== X-Gm-Message-State: APjAAAVtwrMBiF0K9spRkHuWIJbuTdk4TUUOF+ImihTQpqPz9d2ddche tbPZM1tKwHwDtnXkhoR5lCg= X-Received: by 2002:a05:6402:13cf:: with SMTP id a15mr93574743edx.70.1558576601675; Wed, 22 May 2019 18:56:41 -0700 (PDT) Received: from archlinux-epyc ([2a01:4f9:2b:2b15::2]) by smtp.gmail.com with ESMTPSA id d24sm4146285ejt.12.2019.05.22.18.56.40 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 22 May 2019 18:56:41 -0700 (PDT) Date: Wed, 22 May 2019 18:56:39 -0700 From: Nathan Chancellor To: Cliff Whickman , Robin Holt Cc: Arnd Bergmann , Greg Kroah-Hartman , 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: <20190523015639.GB17819@archlinux-epyc> References: <20190503033340.GA7980@archlinux-i9> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190503033340.GA7980@archlinux-i9> 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 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. Cheers, Nathan