From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42B1C33F7; Thu, 25 Aug 2022 16:10:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC67DC433C1; Thu, 25 Aug 2022 16:10:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661443809; bh=YeZpqXiWIj2UfGQAr0U2HYO2aQK9k8WY7/sp89p4GTs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aaMwx8JKmkkb6t5r8pvyF2YpWKpX4SjF9KqZKXHKxAL2bkLj59sosnMbT7KLDUXeC MuZWH6jEnAENICgMXZmj9CyIeWZ+czj2hzTq+ho/6licNb3A79kj1ztNs829U+02RU 8EP7yZJje2Ytht8AmmDi0pymRSWyH8oBa0sKGWHEODAaouA1/NuEvpUbZL2Lqg0iDx cgW2AjPInr+1TzJpqxo+ByAWUS0UB7hrTOBH8Eyt3bTQib9A/pAbTq+UycoR7NWyIR FD4f9HKnND++p5ItBYfnfD+z28AEdJcFaONZgYX4lKwG+PkJgLKel3wDhWV0ERgRBK DfrtefSXYKcuQ== Date: Thu, 25 Aug 2022 09:10:07 -0700 From: Nathan Chancellor To: Naresh Kamboju Cc: Mike Kravetz , linux-mm , Andrew Morton , open list , regressions@lists.linux.dev, clang-built-linux , Muchun Song , Andrea Arcangeli , "Aneesh Kumar K.V" , Axel Rasmussen , David Hildenbrand , Davidlohr Bueso , James Houghton , "Kirill A. Shutemov" , Miaohe Lin , Michal Hocko , Mina Almasry , Naoya Horiguchi , Pasha Tatashin , Peter Xu , Prakash Sangappa , llvm@lists.linux.dev Subject: Re: [next] x86: fs/hugetlbfs/inode.c:673:16: error: variable 'm_index' is uninitialized when used here [-Werror,-Wuninitialized] Message-ID: References: Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi Naresh, On Thu, Aug 25, 2022 at 04:13:30PM +0530, Naresh Kamboju wrote: > The x86_64 and i386 clang builds failed due to these warnings / errors > on Linux next-20220825. > > Reported-by: Linux Kernel Functional Testing > > fs/hugetlbfs/inode.c:673:16: error: variable 'm_index' is > uninitialized when used here [-Werror,-Wuninitialized] > m_start, m_index, truncate_op); > ^~~~~~~ > fs/hugetlbfs/inode.c:651:26: note: initialize the variable 'm_index' > to silence this warning > pgoff_t m_start, m_index; > ^ > = 0 > 1 error generated. Thank you for the report! Commit fcc0d3d00d74 ("hugetlb: handle truncate racing with page faults") introduced this warning; the Intel folks caught this as well: https://lore.kernel.org/202208251012.g1mOhhxy-lkp@intel.com/ As an aside, can you please update your contact for our mailing list to llvm@lists.linux.dev? We do not use the Google Groups list anymore. Cheers, Nathan