Received: by 10.192.165.156 with SMTP id m28csp2440802imm; Thu, 12 Apr 2018 14:26:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx49O1EnWmDFUB5rw/NY/RjumlW4iX3+SSZ4aPL9oEq8qmEN8fCtRaTQOYJZdoo+htISPdQGo X-Received: by 10.99.183.15 with SMTP id t15mr1977406pgf.416.1523568413441; Thu, 12 Apr 2018 14:26:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523568413; cv=none; d=google.com; s=arc-20160816; b=ElRi05qN9SYlmcEqyYQDzS2nOkx8pkSYwUnAwpilXcheivZD85e7rr2gAlLIw2QCeI 0Lejh/ktOn/x4umlmmTo80av5k29yhYoWi824ED1EBI5kx4Qpzi3rV9xg3ZCLIIqM2JZ pSCwV5FT6CPGo15gX/cFDwoiMDtztk2i3lWwwaq62Fg/NKV1r7hF8Ho7F6WUubSR7Dde Cgx5vOLnGgkx89elYXgD+jvySmO6nIyHPMGHgEvzvLfDYkJtPoeHaK3YbUtg/euQP+3E tt/GT9lUnn8wZUwbsvNdT8CfSHdnXFrHRsD8ukJ+3I7HRsspA1Nmqz3nz4WI/TUkLhZx OkGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=U7qEjcQDDzpOq49nKog7j5mj7NvH8obFjGXe8MnWq0M=; b=EDuJEd4r/7YLl6dp5kumg0O8awSCr+doe9j3KicpU9sF/kmnTJKXLuPI6YFjNzuYVb aydAZH1yL9Jeg3PTE5UcfpNYe77AMUi/eR+Tphtjd+e30LYA55p7P7QLbU8xEGIgdxZQ vyJ5QVcKJOG9LcpSYKDFq8z7/OxSz7xT3JSD9fxF8q4PND+9r7RkJaXgNbCWi3QlkWpO FfSplp1/AuomhT5qhSzJGoA0l1xDCWE73GOQ0lK1++P7KZ43nSebtX9ik6VYCrNzhEd3 AgR8pEoY+ReWxYvE5xNK/GFeo1Sou2QyLY9itMcJY+uXBEoFDi072JCrZxX4gPBuXQMQ S0cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=avCIs7eK; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3si2686944pga.424.2018.04.12.14.26.39; Thu, 12 Apr 2018 14:26:53 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=avCIs7eK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753065AbeDLVWG (ORCPT + 99 others); Thu, 12 Apr 2018 17:22:06 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:35560 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752283AbeDLVWF (ORCPT ); Thu, 12 Apr 2018 17:22:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=U7qEjcQDDzpOq49nKog7j5mj7NvH8obFjGXe8MnWq0M=; b=avCIs7eKid0KGG+k9ekpGVl2N2 mldyWWv6axTRtXTuOCs1X23mdO5xfrBRDX1A6o6gWxbtKGsT3ksZ/+aFTMAWZHtwcDbgjr73VNNQm yo306H/R9gWKcgB0oRhMnhM8xUbkIagEGW5wqXQM8j3Wue5vwEWh8VpE+nQCvRPAgMj4QEV/EXmN3 lw4EwOq7NkGqUNsXMqpaab2knumwRWEQJUFcA4rb++RZThHfwWPNuTCvaML8bH+N1Aj+5SHU27rzt TNs9UT5a4aXOQRQnNVOMq1uvu2vopAvg/GcmANk+g07tnate4dNuV5m9iaL57zJ5AElHIN0ZT476t SNGV97WA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1f6jfP-0001ST-Nj; Thu, 12 Apr 2018 21:22:03 +0000 Date: Thu, 12 Apr 2018 14:22:03 -0700 From: Matthew Wilcox To: Ross Zwisler Cc: Andrew Morton , Matthew Wilcox , LKML , Linux MM , linux-fsdevel , Ryusuke Konishi , linux-nilfs@vger.kernel.org Subject: Re: [PATCH v9 07/61] xarray: Add the xa_lock to the radix_tree_root Message-ID: <20180412212203.GD18364@bombadil.infradead.org> References: <20180313132639.17387-1-willy@infradead.org> <20180313132639.17387-8-willy@infradead.org> <20180412211036.GB18364@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 12, 2018 at 03:16:23PM -0600, Ross Zwisler wrote: > On Thu, Apr 12, 2018 at 3:10 PM, Matthew Wilcox wrote: > > On Thu, Apr 12, 2018 at 02:59:32PM -0600, Ross Zwisler wrote: > >> This is causing build breakage in the radix tree test suite in the > >> current linux/master: > >> > >> ./linux/../../../../include/linux/idr.h: In function ‘idr_init_base’: > >> ./linux/../../../../include/linux/radix-tree.h:129:2: warning: > >> implicit declaration of function ‘spin_lock_init’; did you mean > >> ‘spinlock_t’? [-Wimplicit-function-declaration] > > > > Argh. That was added two patches later in > > "xarray: Add definition of struct xarray": > > > > diff --git a/tools/include/linux/spinlock.h b/tools/include/linux/spinlock.h > > index b21b586b9854..4ec4d2cbe27a 100644 > > --- a/tools/include/linux/spinlock.h > > +++ b/tools/include/linux/spinlock.h > > @@ -6,8 +6,9 @@ > > #include > > > > #define spinlock_t pthread_mutex_t > > -#define DEFINE_SPINLOCK(x) pthread_mutex_t x = PTHREAD_MUTEX_INITIALIZER; > > +#define DEFINE_SPINLOCK(x) pthread_mutex_t x = PTHREAD_MUTEX_INITIALIZER > > #define __SPIN_LOCK_UNLOCKED(x) (pthread_mutex_t)PTHREAD_MUTEX_INITIALIZER > > +#define spin_lock_init(x) pthread_mutex_init(x, NULL) > > > > #define spin_lock_irqsave(x, f) (void)f, pthread_mutex_lock(x) > > #define spin_unlock_irqrestore(x, f) (void)f, pthread_mutex_unlock(x) > > > > I didn't pick up that it was needed this early on in the patch series. > > Hmmm..I don't know if it's a patch ordering issue, because this > happens with the current linux/master where presumably all the patches > are present? No, Andrew only merged the first 8 or so because of lack of review of the remaining patches. Even though I cc'd people as hard as I could. Including you. :-P You could, for example, review the DAX patches ...