Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1778984lqm; Fri, 3 May 2024 06:29:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0T+vmXC+zyAPG/5tlHO7pNVpnY7ZX0wI6RTj1r0eHlPEGz+gQ6uv/e+/gB62BbRRVM8HoRV5OiNJYxGRdrlg3gQqLG0RNfuzJTosEvg== X-Google-Smtp-Source: AGHT+IGvJSog2Wg+lBru1wGu6uCeEvDshSqmz+Xr1a1DWeim4LT4InXs3cklakZCyw4eoM03un6Y X-Received: by 2002:a17:90a:d0c2:b0:2b1:a31e:9aba with SMTP id y2-20020a17090ad0c200b002b1a31e9abamr3070364pjw.38.1714742969267; Fri, 03 May 2024 06:29:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714742969; cv=pass; d=google.com; s=arc-20160816; b=bYpIZkMkk9SDmF5AjKp+ohE8WKSgmpd8DLJIyVJ6xcoDr1+40a+euylOUcmap97Y1u ehf/h9kfi34hk0XJJRtLWmD3a8dn+6ohqROu3vISgvTLs8KWPoTFaVlw2vKUQ96ByA1K DG/pL+2WpGAh4ibxF3Wk4MRjEoWuG0uutBAfkvavo99KwA6BbKaq5XlM/jodHm3ze77+ cFvmiVt3SIHoDU3+yPtta+fqG8IC1rsP0yCY/wer93k6epz11pAdOkwtZldeA968oUzW DbcWpKZ8Vc3VLeCBAdC9ZBmiWEHlerISUgLOrAZ7CJUbRh94ZXWxoCIm4KpLTS3okwzf Ysbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=B4vGEHzdNP0JI6MVfnMEc2HH+iREkCFMbJn5Sb6HqFk=; fh=4YkDDCPiba3FP1c3OULUP7m1cPOFWYObZ+n9+2bAS84=; b=T48NCVu4sk8A8FwtWLOwRejwBp/MQF0m9DZxsbYrivFO84DH612uR5aMaroO9ERcsu EjdyFRvFiuEiVXsi+BIyPthSsky55gyc65D1b194M3CcKa+dPPr0JZm0cPUXFIT+qD1J TPDhYJunUBXWZX5Q5v79Rk6Tb02HQuxICsOrNv3zOV2+xCDptTIU0NLonslqs7BOiEwo vtQW9C2wl5/FiYe/TZvNwDMPMjkvo97Cheb1o0gM8s3DNDIwTusd9fUwZvHV/tZSr+Vv 3V80FEPwndoImPTblig+fbgIqkZ+pjK9M1vGqHr2QxBHnlIySquxTQ3SabyMEiI/YjYk PmVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=vyLLstx7; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-167705-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167705-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ip11-20020a17090b314b00b002b142ee0bfasi3087061pjb.74.2024.05.03.06.29.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 06:29:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167705-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=vyLLstx7; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-167705-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167705-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DF50B28325D for ; Fri, 3 May 2024 13:29:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 154E215381D; Fri, 3 May 2024 13:29:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="vyLLstx7" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (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 CF70115357A; Fri, 3 May 2024 13:29:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714742961; cv=none; b=Ph4Ss778ZBNp8xojyTytcXoEVoBhfkhdWxCTYnd4DG35boGk0Rta4vM2MkJjLBJYRiTcdBSPVoIR2Hm11oBeKhNvnaAgQbhQn6Q5hUp/3BEXW1DtaNx85CVQzmz/BKTEbOBw4Z/9a7XanBMNhOhuSpdfSuMluj5SvsS/JzsfIFA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714742961; c=relaxed/simple; bh=EpMKjbaB80+4IW6xe42kSBS3TKnJUW1btmMLZFFNbK4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eTYvBQWJA1RsYVBUuo41d5sLOgG+hFSy/dcF0ESYN4A2wug5qZUF5odKmt6eJLQZOpshnOlxpf9VaVUU1SgQdBduK6aE4gnrW7Llt4BFqEiHhm8fabjJnf1NqeJ+HBM3f5dM6/wdFsVuWpHjVVgnFer+Q+rPy1coNCbNCp2728Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=vyLLstx7; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=B4vGEHzdNP0JI6MVfnMEc2HH+iREkCFMbJn5Sb6HqFk=; b=vyLLstx71zYQ4dLqtph2CDUj+p 4fnR6BL+Okz+uf4nf849UeSXiDvMt+xq7tyKuk0lm914JHid160ckzKjMqDnGRrB92NX/rV4DG/4J DdQZ2cFbc7fMdr1eLEOpLfXaDJb42IX9fPpf8TfE+uib6H2/eY22UbRTA/SH8GTX68ufvPrAch9EE ABPi6BKh+FehylrEaqHRW5UPjwlPUztLXVkmasu812PxMNZ3gNcKg15FrNpj3d/EikJ/f1qJ+jLkG RuzWOMg4g3xEY1B6oOy6K9m2VBMDGLXDOqgcAcN2A+ORCVk0u5/AspambjlJfRt9TROFVnZaox04h NKMaPoIw==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2syO-00000004AOu-3hKo; Fri, 03 May 2024 13:29:13 +0000 Date: Fri, 3 May 2024 14:29:12 +0100 From: Matthew Wilcox To: Kuan-Wei Chiu Cc: akpm@linux-foundation.org, Liam.Howlett@oracle.com, nathan@kernel.org, ndesaulniers@google.com, morbo@google.com, justinstitt@google.com, linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org, linux-mm@kvack.org, llvm@lists.linux.dev, jserv@ccns.ncku.edu.tw Subject: Re: [PATCH] maple_tree: Fix build failure with W=1 and LLVM=1 Message-ID: References: <20240503095027.747838-1-visitorckw@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, May 03, 2024 at 09:01:06PM +0800, Kuan-Wei Chiu wrote: > On Fri, May 03, 2024 at 01:20:32PM +0100, Matthew Wilcox wrote: > > On Fri, May 03, 2024 at 05:50:27PM +0800, Kuan-Wei Chiu wrote: > > > When compiling library code using "make W=1 LLVM=1 lib/", clang > > > generated the following compilation errors: > > > > > > lib/maple_tree.c:351:21: error: unused function 'mte_set_full' [-Werror,-Wunused-function] > > > static inline void *mte_set_full(const struct maple_enode *node) > > > > Uh, clang is wrong to flag these as an error. They're just not used > > yet. > > I think it's because the kernel defaults to treating all compilation > warnings as errors. If you turn off the option to treat compilation > warnings as errors, they will be treated as warnings instead. Should I > update my commit message to change compilation errors to compilation > warnings? just don't use W=1 and clang.