Received: by 10.192.165.156 with SMTP id m28csp2473469imm; Thu, 12 Apr 2018 15:06:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Cmb9KOT469EctuPU1WoTVIxQkebnJyHfzxt6fPlklBG7fi5lxIZ+XuOqF7Ti6YAVtx16u X-Received: by 2002:a17:902:28c3:: with SMTP id f61-v6mr2815462plb.114.1523570782802; Thu, 12 Apr 2018 15:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523570782; cv=none; d=google.com; s=arc-20160816; b=gi3NCdqdnHmW1bIxoVGj29VSSh6Z6KJyg5dHeD8qcY7DHTuGGKUK9/s+NvYQr8/AvL M3pDox18qjZLfuo4obutUDm5kWKFd9xs2O1CVyDNcVVrnQcgT8XSyfjErKGvZntM7i4A yVWQCvtfU/UmCbO6O12qwYr+Tu3Oqp0iTTOZlWonhq8Lu8kKaMUNOZl37lSdIOPPgUac ENNxjftdgmCniyA4GuJa9X9tO0QypJd61BYL5b+vq5tBYbelmiAiYKqtwdkDZfKC40OR 2AlGN4eWHiwegvHUa78JuIEU03v6PHYZLnpSVbym5T1t9pWt6twBDczxsGzS/Uui3qF8 j5lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=9Y1llrgSfh7x2wFH1APr3MQVdkrBGtW/XXpbVPYzgZk=; b=cOQbwE9B1ggInhVAaksKhVb/3HmJz1OU/6+b2l/hnmB7MYXFSezI/scdQsubLGTCy6 QC3I1PRb1KA5eV458GI50rmZB0lepD+NyBtVcDH6abks6s6YiYXNV1gsfxKHVcFGzI5t ReVBhZhRFlzSHKSh1ST48vImvDOTQmPtGqHN8lA1jUm231DXnCNokwGEBOfYRdHdLK4L ImVn4XtfxvYsZw+OvYaZ2Bvm/TmwdoE89AqvElS/p5nVZMhxoou2MR9kheqoqeFHcSyv nUyz3pRgMH5W1Uyd+Zs9FDEGMdg322jHwrkdYYkRvuLOvEb1Vcf7mqjlqlFXpZtTfEj0 zEoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NNKZFGiK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u3si3312699pfl.151.2018.04.12.15.06.06; Thu, 12 Apr 2018 15:06:22 -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=pass header.i=@gmail.com header.s=20161025 header.b=NNKZFGiK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753047AbeDLV1f (ORCPT + 99 others); Thu, 12 Apr 2018 17:27:35 -0400 Received: from mail-ua0-f195.google.com ([209.85.217.195]:34964 "EHLO mail-ua0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751624AbeDLV1d (ORCPT ); Thu, 12 Apr 2018 17:27:33 -0400 Received: by mail-ua0-f195.google.com with SMTP id c3so4476490uae.2; Thu, 12 Apr 2018 14:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=9Y1llrgSfh7x2wFH1APr3MQVdkrBGtW/XXpbVPYzgZk=; b=NNKZFGiK4NTwh9yKvhW7r/8hRZELNiTtXKw1gqN3KTB7tAuD2/djtyF8qWKhjQwEhp ebtqZM+ppWZntkm8KyNEF2hpsJj8JdIkAf/GClA6JTwcL/bvlYoas2jfQkBZ7ilI5SYL MP6BlvuMq5byVhIjg4DY10vPlZMcm/ltLRz9tN0Klfu7jtFwmhYJA1TrndacDlFHZNGi 9IlMTVcO67CNMfu6XkLtki7kK/zFFexZLFOw7PX7VMz1fpXsvAF2zwWpkBw9sqWmRDEW ZInuOkIv7oT7N3MhBnGi6Kruu7ivLt6EU+4+2j2Ge1TWVAE5QTeEKbqy8C0kNeg3yYtY /UGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=9Y1llrgSfh7x2wFH1APr3MQVdkrBGtW/XXpbVPYzgZk=; b=iMVQaNv8EJzbGYrPkC48RSgnAxjHPXrTk8vKnBExv+6VxZJy26RX0I3CXaAYOAQf+E Rha9EzDltO5VeL5QlLUcoxmCPGSOF/amJazUv+q32UdxSO0MZlTkCb2DuSqeW+cNQHoi NxbDqyI8B6tUtsDz53YftWqaaccuSeeu2v/NdY6SZ7Af89k+YMyeyth5OsDKj8gN/WwB 3hrUXg0IxvrldxF9KrXO3QZ9hiDDjQR/8hwVsanzc2fsBjmv8PHM2BHuVJTHY5yYivpe HYkRcnARkeRn37ncA8Rdjz0niSjG+G5FicYHEU12TNyztToztBPY2kSzGtJm8Q4dgNXW ABug== X-Gm-Message-State: ALQs6tA3In+KSxTeEZhDVerhNJTSfGhEfOW1QdBefQYGbuxZi/pcyJdv pk9bCw9TpEVhKAebvSJudF3IhS4M9YuOXaUqH8c= X-Received: by 10.176.91.201 with SMTP id z9mr2001941uae.97.1523568453000; Thu, 12 Apr 2018 14:27:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.22.112 with HTTP; Thu, 12 Apr 2018 14:27:32 -0700 (PDT) In-Reply-To: <20180412212203.GD18364@bombadil.infradead.org> References: <20180313132639.17387-1-willy@infradead.org> <20180313132639.17387-8-willy@infradead.org> <20180412211036.GB18364@bombadil.infradead.org> <20180412212203.GD18364@bombadil.infradead.org> From: Ross Zwisler Date: Thu, 12 Apr 2018 15:27:32 -0600 Message-ID: Subject: Re: [PATCH v9 07/61] xarray: Add the xa_lock to the radix_tree_root To: Matthew Wilcox Cc: Andrew Morton , Matthew Wilcox , LKML , Linux MM , linux-fsdevel , Ryusuke Konishi , linux-nilfs@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 3:22 PM, Matthew Wilcox wrote= : > On Thu, Apr 12, 2018 at 03:16:23PM -0600, Ross Zwisler wrote: >> On Thu, Apr 12, 2018 at 3:10 PM, Matthew Wilcox wr= ote: >> > 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 =E2=80=98idr_ini= t_base=E2=80=99: >> >> ./linux/../../../../include/linux/radix-tree.h:129:2: warning: >> >> implicit declaration of function =E2=80=98spin_lock_init=E2=80=99; di= d you mean >> >> =E2=80=98spinlock_t=E2=80=99? [-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/spin= lock.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 =3D PTHREAD_MUTEX_IN= ITIALIZER; >> > +#define DEFINE_SPINLOCK(x) pthread_mutex_t x =3D PTHREAD_MUTEX_IN= ITIALIZER >> > #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 ... Fair enough. Let's get the radix tree working, and in the mean time I'll throw it into my xfstests testing setup & take a look at the DAX patches.