Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1759242lqm; Fri, 3 May 2024 06:02:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUrCmZn4dEPFtZQgxNLsbUauBLZGOk6FAlDGxoe0mYCJsr6knvUlaz2xREXWmQTg1k76RpijwIMVghlmES3UNvdbKEDcMuiLdoudAKFrg== X-Google-Smtp-Source: AGHT+IF/9/Ojbgm+ZSL9pZDh2x2pmOVoBmKZ2jQNoLPntZGBxR3r31zeo/hIXbkc3OLe0JQY1PXZ X-Received: by 2002:a17:902:f645:b0:1dc:3d5:bdcc with SMTP id m5-20020a170902f64500b001dc03d5bdccmr2807995plg.42.1714741338707; Fri, 03 May 2024 06:02:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714741338; cv=pass; d=google.com; s=arc-20160816; b=lR+QRLIiW3JdOHh6J88FKVdlUqnHlqHTkZIAy6DGVqFng7SNwFDwZZFipnvLP6KIpx GC3dj5HN6PYk7h0Hrftoh1FKJ3G9XFrio1IBp9DxVtJGtsImOJUmGRcCOTucvuDUaGEP ScgUUPmb05V82VhEwFWqdGRLHe+e2pu5Yj8UvwoWYzEUMF9bP6tq73PZRnkpgJUFy1Cs rxvH/qOUvVMIVLCwxCZpchCNVO0dhUH8bx6q/dPRMRF24OR3RFs73BlJg3OkLT54O5Pf gU7KCdInv3rGeZqtTWDVbuycfCCySstQ1DRJUAtUPK8TFEvK2wNeOg0VRF9buR97COuP JEZA== 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=bGe9iHk592FnREABAAmLC2RGIJEqDWrEFBPZ0kIuDqc=; fh=q88f0qC39dgSlMpz2ngBxYdQFxXg4gUK/XI9ZgQSiME=; b=b1uk+LsP7V3ELkOMAxBKTC53y0DkW7jpUNTlOs+v7gPZwL9Cfr87HKdZugVu+KnJXd EITE/1n1AYC5ylD1JL1ZwLImlvA6tuG2rcYCFBX21tcDOHur1Xa1C6S227RUfZZUml6k CnuYf1gz0sa6nKq8kqVqM3pjwZhLx13CflwqzZ29qe/zjnSCDmNadomgof8VIdJfIdu4 2CGsTlU0s1Ox5IapVK2He53n9x/E6v9xTzAvy4TWT37za8zkgVjSJrJPXQZ2SUlr4z9t wIIbGSo/0G4+HUsbGkNBhsNBRVTa6fzqJC36QAMON1dDBUzew6T4C7lKFdK3PZ9m3s8w LkpA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lueoNTY3; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-167663-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167663-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l4-20020a170902f68400b001eb992b788esi2835266plg.464.2024.05.03.06.02.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 06:02:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167663-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lueoNTY3; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-167663-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167663-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 27864B217D7 for ; Fri, 3 May 2024 13:01:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3ECD15357F; Fri, 3 May 2024 13:01:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lueoNTY3" Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0893457CAF for ; Fri, 3 May 2024 13:01:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714741274; cv=none; b=rCsYVOlJ1g6CUKRvmbN/TmjvAfZZ3jFBokPnxQLY1ntYbJN9IyqcBMvv/UrrnbnVD3KzruFKgDJgmBsWoX4xmFgkrpRKnDiLs2kNKdlO045HM15NPZ03M+9ybImnzM/PsDB7BT1W8zbt0Evem52PsrANWgBdIVYcVnJ6bbM2uDs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714741274; c=relaxed/simple; bh=Do5NaWPJRdTJS4p6Fav8hWLBi76YtLLBb0d9D3r76fY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ivy5/3Q0AvbXlN4uuI61zQeXl315+G9gU7c3/bjNqVWgHVOosnzOUG/6H7kgcZP7abf5p2BS4SGEz8X9O0fFYfL7+URMOPaY2o+dKCPrIJIExTNDva7FHZmFjqbpusRC/IpBk3GJVJKJQCAvbT935dWvFNbzJfGYwjuIr+Z6oB4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=lueoNTY3; arc=none smtp.client-ip=209.85.216.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-2b27e960016so1034345a91.1 for ; Fri, 03 May 2024 06:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714741272; x=1715346072; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=bGe9iHk592FnREABAAmLC2RGIJEqDWrEFBPZ0kIuDqc=; b=lueoNTY3D4Fl8Kn4KaTz1jOJboL+CSHBJjZ02BLnysc44Aomgts295U+8FhserpXcG 48yms9U6PaHiYIB1kS4jbahivcmPcsCHiVk+mbcW4LlJ7rSFgxXafq1m538ks6R+buQH f82saqSfFLivUuWIXphKEDQDOnDwLXWgsThAQVLuTHaYDjz0Q3l4n8QB9YBOdYb96xA3 UqMwODJTkjG613GzLfBJg9uA4iY1UONT6RFrum0jwyLQKcmtaYcfBwA75Vf+eXsBfIGR b7RiroITPDlb2N4HxyA4nEwf4hEGfg0wIUdcaCUjZUp3vB/VHXt0Mxr99oRBDFn1Zw+q 74hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714741272; x=1715346072; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bGe9iHk592FnREABAAmLC2RGIJEqDWrEFBPZ0kIuDqc=; b=XE8BU9lATyY9Hnx0O06ze6YeHJR0tMjGwzoM9K+IWse2Jt+iS0Rqp1Hulb2bf6sW8A zGC7WQJMvB32nyzDOEzNssMooVj1DBiX4vSw/1tndXuprDUBlOKGlWrALfkA7fKufNkP ciOcTGF9HDwHNj+UdK+Qlw/L1SXeNTLTxspshuauVZU5rpb84dH3aRblD9fdAe/KYkrv JfMcwmJ4Tvg4uplUVSAGziqBNokUlMf0qQ6XNSM/Dyg1wzfruC3He42GPbZ3/xg4deum +bjXzJSO08i51MGo8MaGN0Sl30PU1OgoqtDY8aNA9R8nbE0OxbenwM3+ix/kBKMmSG3/ MUMw== X-Forwarded-Encrypted: i=1; AJvYcCXXlc+bjnwl4LsdR//XxBIs4znmN7WoeUri1R0BmZHIw9wHV5wyh4GmYbAQPwuhPMfKRZ1jSizS0Fo6npPvfA/Eam7cGjiHhapT1wCK X-Gm-Message-State: AOJu0YwP1rEEkMnwCWE6mmDHgz8DOg8TdUUfA57xKnaywBKVDeAX5Pz9 8NSSV2+WjDR3yQM3gE/5otpqVwbAURL9Get+u3lxkXSeIYefNRdxquHTZfa9 X-Received: by 2002:a17:90a:9b09:b0:2b2:b080:dd35 with SMTP id f9-20020a17090a9b0900b002b2b080dd35mr2533129pjp.0.1714741270628; Fri, 03 May 2024 06:01:10 -0700 (PDT) Received: from visitorckw-System-Product-Name ([140.113.216.168]) by smtp.gmail.com with ESMTPSA id sz15-20020a17090b2d4f00b002aff85b97dfsm4977761pjb.27.2024.05.03.06.01.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 06:01:10 -0700 (PDT) Date: Fri, 3 May 2024 21:01:06 +0800 From: Kuan-Wei Chiu To: Matthew Wilcox 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 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? Regards, Kuan-Wei