Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp89816yba; Thu, 2 May 2019 20:36:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDvOCiRrFSz0xniGumEjoNOfsYR0gr+N8xEy/do/mZCEJUNV4+6Zbr1+E/Vt95HBQmRwuH X-Received: by 2002:a17:902:20cb:: with SMTP id v11mr7584320plg.324.1556854586996; Thu, 02 May 2019 20:36:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556854586; cv=none; d=google.com; s=arc-20160816; b=Rty+grA03uie8o/MkwPiKE3TK2mWbPvonKnHXiAsa0P+YKqbnPVqbVg6Y3tMhgXSwv eUH7zGf//Tl47gJYiNyXmvoq2Wv3nByy7PQtE1J1/O3qEvig5la7QhVd1Qx5z8HqnNZv QiX6udvGAnZz+LofPY0aA7r5dbkCDu1XwvzgMzkaye/PTL5Ug0QuqPPUfEhRlqOMbs5H HDqBBKlphj6UvzWZe+RZn7nsy0wrd05xvmkU1IFX6MCuOZAWiqUZI+uEVvGJ6wPau+FX A6Ah4O7Gd/BpZ6MEiWf7rC7nyzEvwSG9FmWTe3TkGdLvxo6HcsqvXn2gCw9UZ1D+cksG B2ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=RdojDANAJ6rzclEPLAA4FdcSP1GiFYCSI8+a3mJzXmI=; b=ujg3+GYee0466bryLtO0CvZv8zfLtdlwk+rTMcDH77DfxEFtl6JCzj7os8LFZuNFJu LHA2Ab0r+V3iHx6iyIZPvYxX0FejZzU9y2cf7D8Mg4ZrnAVh6y24LQuHpQYeOUeLfn+A ZFXUcbQjaOixrU2Eq2YOTbzmtZPURgJYO1tqCScrH+gxyQtujdgfQJFF6s0QE+SDt32w iPsHwm/EMxWWRR35g8+n3jBZE0lA1NnaRJB3oZSd8WvPTKfPYFi8uyFcir0UNQ1yxcFV n5NcdA/hTcOGZHFagYveZbntPZWwi/R2qwLI8z51Pq86B2YiuVQVYi1uv9e5QtiNCvot UjYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sBotVlkf; 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 d40si1081363pla.87.2019.05.02.20.36.11; Thu, 02 May 2019 20:36:26 -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=sBotVlkf; 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 S1726265AbfECDdq (ORCPT + 99 others); Thu, 2 May 2019 23:33:46 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:42518 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbfECDdp (ORCPT ); Thu, 2 May 2019 23:33:45 -0400 Received: by mail-ed1-f67.google.com with SMTP id l25so4348830eda.9 for ; Thu, 02 May 2019 20:33:44 -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:mime-version:content-disposition :user-agent; bh=RdojDANAJ6rzclEPLAA4FdcSP1GiFYCSI8+a3mJzXmI=; b=sBotVlkfKKZhxUaYy9XvO+EUUTHs8VDdZ9d2b8+7Yu8V+9yfbQjMmQfIVL46zxU35N CIyqpEit6G/j5dqs20bTv8PB6UYJmiEpyn379hyP63eOmsh7BRJv3pxXN9HCnWzs76MU GSOw4PV1v2wwKP3COFu3mZZzMa3iJWwQzczQ8SO1jp4GD48+lyNnt4txrqpJDyVo7hNP jLEFyEMhQ71v7Dfk8i9nazI6dgcPNDMbYkImEVUL/PD+XW/W1SpgmrwP2YGwin/QdTES r9Lrvb33kLOfYwX2/tSZmE5R4az/pFs/xdCsQR9Vathyz36YesXZFJDzLkKoOlJ4hEny 6r0Q== 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:mime-version :content-disposition:user-agent; bh=RdojDANAJ6rzclEPLAA4FdcSP1GiFYCSI8+a3mJzXmI=; b=O1QI/NKbNSryk20rls+PYsKKVjlbw41fQyQTScI0T7w6UBsTdccPQ8CN3PPmkSYDeC ayhKp0FCGArN2cv7/z92FVafQl4C6pbAabacRzDc1QM3NOywL9r0xjlEkK3pmmNzrvs5 kdESK3PcFMsXUijywwVOUsMxleAnNwxCuf4fLv8UGbBAL0H4re7DwnDaBPly9X4o5Yfj OONPfKeEolN1O9IjMSi4ZjUoRzA7lyHkuc5bHI7mI8wjs5Dv4E19t0WDL5SVr12LIw2+ UzmINcqXMoZMMzA0mQIwuuQ+7gye0ijQ1vHxxmEvnIR6NExIcLcvOhC2oqBwVAvaBl9y 0ZrQ== X-Gm-Message-State: APjAAAUNoMkJ+sGnw1KMEw0Y0YN8xrfC/WwYC45H2a35uUmFIdDqtr7I znPK49YTD3tANWXPX9DEfOE= X-Received: by 2002:a50:8c03:: with SMTP id p3mr5401146edp.267.1556854423921; Thu, 02 May 2019 20:33:43 -0700 (PDT) Received: from archlinux-i9 ([2a01:4f9:2b:2b84::2]) by smtp.gmail.com with ESMTPSA id g32sm258988ede.88.2019.05.02.20.33.42 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 02 May 2019 20:33:42 -0700 (PDT) Date: Thu, 2 May 2019 20:33:40 -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: -Wuninitialized warning in drivers/misc/sgi-xp/xpc_partition.c Message-ID: <20190503033340.GA7980@archlinux-i9> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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