Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1736358lqm; Fri, 3 May 2024 05:20:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVu2NC41HuKNhjH5S/0TDzte8pQo71J5DUmFDsRWemXqsdnKIoUqmlvAgCCmfILxCniYG8SAOg2SyhgXaOKXmuLb16u0tiG1+IO8nbmAA== X-Google-Smtp-Source: AGHT+IHgi6K6prsjiDpmCfCf71EHtrk+WduAjsmkVR/6WcR6XWD3eQfdqnCWUiMfsn9ay5nw3jHt X-Received: by 2002:a17:907:766f:b0:a59:2d2f:aca with SMTP id kk15-20020a170907766f00b00a592d2f0acamr1760981ejc.56.1714738852728; Fri, 03 May 2024 05:20:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714738852; cv=pass; d=google.com; s=arc-20160816; b=slG1Fg/R5Vjb78AvqglxUyZJWba8wtWHo7HQYYvHoFttkhmmWieYh9Hq1fCzDU5577 oY7dAHUygjhdFjZ1P8TsDGv2pbH7Vlnvs5xDsCqrTgh58zIqUgDOdCXd81w2iWgbZpOg /Cyz+9GZW2Lj1oRlZ0/UDMm+lvJuwCHiSWYieUbe3JWB2aoM0ongjzGq4hYyxqALXk1X yBba51O1erZEmGUsibUgmuQhcUmuQE/l6poL9ZqTEX1Dt7hoq2m8mYnCyBfhZTktg3dA 2lwwiNwUR070lm4FdfztKop5H+uOiMFWoCKXo8+Ce6AfHO35a02rAU0wD6Vub8P+VKdY /Sww== 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=wAR49S+Q3+midVFaG+tbPBcVJqTAyA2eqOKvGm8H1xM=; fh=4YkDDCPiba3FP1c3OULUP7m1cPOFWYObZ+n9+2bAS84=; b=hyoAjk0EM6c2LibqZUUFIHvs3ft44Xf4sxBsia5tAS6GzGePKYocjKC5TNG72eYEuo 8rY0hfFo2pXIuN1wYH7Qxomr5r9XNHEXgMHpv0TW2AF22otnvNTYdHk/KrDd+62zSHBB rCKKnGzJEbivqfoXT9oTnyEqd4xzNoO8ar3uvVHAz9maZeNe3Q6FtiQy9Q09ReRk5r3L v4EQ/KmdOvbf/jESdt9SsklpxCxUKvIXPG1Jnw+iyH+4J3jNtxBsIM6rY+tgftTghpb5 ev7omEhAZ2GzhqFldHR52i4U1Twiwjzc1RlNzmWMO9+w1Hs9y8hzay3BVPhKQR/LqiWv NHpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=cDEZkJUk; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-167632-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167632-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bj23-20020a170906b05700b00a5243ddd65esi1493889ejb.663.2024.05.03.05.20.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 05:20:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167632-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=cDEZkJUk; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-167632-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167632-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6F70D1F23C1E for ; Fri, 3 May 2024 12:20:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 912B8153507; Fri, 3 May 2024 12:20:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="cDEZkJUk" 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 C70B714F9F9; Fri, 3 May 2024 12:20:39 +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=1714738841; cv=none; b=lGlKK378Y2O/0as1F7KPuU5cn55uDjrpvWHDOTmXCht35uoULwuJ+SX3+hrL7DrqoGQd88EsN0FuuAN0sng+tqNCl/QO5AJwEVAPwVuJqlJZ2JvDmPGrn/30yryhmxztyCSjhR9z4O6WaUFWApQImzOOY4Eex4K0mp6l/SZCaWM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714738841; c=relaxed/simple; bh=GmWwVje1unjuK7lL1AHBqfUMZpJj6+qljR/mYjzyXxM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ni3DCrZcOZZt9RItw+N1Ya7ieoojltnilqC/znE+xwdp+u6V/72OOQ9wl402dlXUzm3/LiKwC2hOPRkA8VgaG3L+rjGZm1qcQ6CnrUutkMuPYQJ8JvThnBLc6VJBOfGrP+B7vjLnA6mGZutofKmmHkzI7/6T5LnfiwLCzBCdwhA= 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=cDEZkJUk; 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=wAR49S+Q3+midVFaG+tbPBcVJqTAyA2eqOKvGm8H1xM=; b=cDEZkJUk8dwwEAj7zZcr1bbwY9 k04xJ16jARjmfoHOPbUuv818QfkNpE3lRyb9TOTtmdMEOi2vjaOnmcwcnZPdOzvop36NwuMixbLyu 5AOEyyRGR7xlkXUmW3c8w+sUy1la78b6Kq4GC1iAmCiPhlsJQYb5U81xFgyEzuTasV2VIQdYCH8li iV87FwqmtRyVtEqN+rPTzIR3Tui0vQvnjuBgj2P3/sJJuYVv5f1MQnvA8A8W3vDqJQfeTYlo0GQhG ZgLNDDAmCQO8EM6KEkTo6cdSJukwdMH5ep8clhIR2dYBHjMtOt0/kQHu6+NyMQ/bY3Yx1AoTJx6Tq 5KQoJtGA==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2rtw-000000043Si-38lO; Fri, 03 May 2024 12:20:32 +0000 Date: Fri, 3 May 2024 13:20:32 +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: <20240503095027.747838-1-visitorckw@gmail.com> 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.