Received: by 10.192.165.156 with SMTP id m28csp2439337imm; Thu, 12 Apr 2018 14:25:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/pn960ioRXH+YiRS2LPLP85FYmXhuoRpkMSTm3ybuoZVMUlaa4D1ZAKrhl1qf+LD8M3rGc X-Received: by 10.99.119.9 with SMTP id s9mr1936232pgc.276.1523568317303; Thu, 12 Apr 2018 14:25:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523568317; cv=none; d=google.com; s=arc-20160816; b=lpARcUqHontpgLVMVyrTgV6Xt4JkCqkeOITyHv/rpYne9fjIGh60ObOHcUd4P3Z3JQ 96a+SC721V8rdup30ifnoiAqqB0wYgma+tIQQ9b1sVPVDaZnkqgyrjMYUulgM54hFLBS kKQ8WcQ8d0uRm+xZ4+kt1OiLXe4HebooZyHolo89PWtKhMBBPwFBUzUvUFpz3384uVBH hGnoDQ+qZz/5JKJ3CVneq/Xo3dK558I5w6LNH4aNYzKVSljnlVf1YOH5yeeDcc3rHbvw QibmCkFgi0sWdLo2bdvIi8weHf/C0mHDjqIqfcP+x5eVmf2laMguEysIWbZcyPnkM4Gg d/jw== 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=Y5IIhKep3DmenKax6QAw6MNe/5Fbx2Oal8RU8NzFW+I=; b=WhDfwwX3GHcP8XYX3+oBVsKaWQ7oacb5QdyYzqLL8OzLmJ6uS46V3C19t5ucffHOio STwjfu/rKhRxx4TcnoidSW+0eOv8xJK9tWEngVfSsAlwoJx4hUM7BRe5IKQZLTiuuqAq fQHjD7VlBy8li9kTL5iztJwZWQAACMurdcmcrv/TA2S30PvRsyuk61zKZ8gc5r6So0y7 Ndjz4piN9rghjR5EvxJ5bUzAI6DoSJLuyZC3JeLx3OeS85jNcyxyGcilQl7AHGSnGT/G jy8c+qobpoKxPmSptA8mfZ8Ow3x9XTe9qQtxGqCxzrVFecMvhQOT8yGlko3wqWgAd3ms AV1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=niXxNLVa; 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 f7si2758132pgn.476.2018.04.12.14.25.03; Thu, 12 Apr 2018 14:25:17 -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=niXxNLVa; 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 S1753909AbeDLVQ1 (ORCPT + 99 others); Thu, 12 Apr 2018 17:16:27 -0400 Received: from mail-vk0-f66.google.com ([209.85.213.66]:43547 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753469AbeDLVQZ (ORCPT ); Thu, 12 Apr 2018 17:16:25 -0400 Received: by mail-vk0-f66.google.com with SMTP id v134so4154831vkd.10; Thu, 12 Apr 2018 14:16:24 -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=Y5IIhKep3DmenKax6QAw6MNe/5Fbx2Oal8RU8NzFW+I=; b=niXxNLVa9aHQNPY7hELW3rFUgKA9iInCCcb2V+2M/HeaFhQZ58eFHVmHy1pZ6iaa27 3gGJlCEIDrk6N0bAC9c5aBKCp0v3YsEY4uybQ4k7c5bRTc/nbEFyFK46J4FCRc1guJd/ oGwCBggK4mnNu8YAwXwVZ46fUUV0+3KqcBnYnlaHFxCCWO3zqT1U8Ckjt2oc2gtECo3C krOPCbTkhUQBp9kLSFitklt/g3M73V/x7GVOfDDAlsbF6vHsv48vcVu26iYsj+hUJ7uf DLmXafIEYKO3JtTKTFMYGH+Oma7tzYhfONUwSJtjuTqtBghf45tkIMr3l0ShpbMtpm4J N0Yw== 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=Y5IIhKep3DmenKax6QAw6MNe/5Fbx2Oal8RU8NzFW+I=; b=MBeBvCWpipmH7yL7idTgKtoQk7mbbZ+ROHmgifeK7+JUHZebi3IKBUWIk7g4APhAbB rKQoF5iUZT6R4Qtud7KUzYqM1AXqL81sW9iiscLAm4WvaesK4XTmmjX+pgZ76S/OdpKY Lga1CFoC8gVg9GU6veVNu9pnT0zwLkw9Y5uylcyEa2vgI5vmOl8UK5cvlRhFzx0nP+44 PFiJOtqTfucsTv2MxB9V49035wSPUWRsoO1UUj5FkWCSxyNryJ1tIqDxOU6Eq+DBSsA4 7OW1N65zhUmuGecSRNc4gIZiD2Wrh/6Mb0nI31CIrrEYVG0iCYvxy4ytg8+lz3E/irN8 +7bw== X-Gm-Message-State: ALQs6tBYQK+Vf+8w8pNzTjKD9yCeeS6AEk79+pDrhl2hFupgKM/Fcyrt Nv0pqrq6AbkmurKzrBI33fQ/9wW2v90yF3GM/fE= X-Received: by 10.31.228.5 with SMTP id b5mr1996168vkh.120.1523567784058; Thu, 12 Apr 2018 14:16:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.22.112 with HTTP; Thu, 12 Apr 2018 14:16:23 -0700 (PDT) In-Reply-To: <20180412211036.GB18364@bombadil.infradead.org> References: <20180313132639.17387-1-willy@infradead.org> <20180313132639.17387-8-willy@infradead.org> <20180412211036.GB18364@bombadil.infradead.org> From: Ross Zwisler Date: Thu, 12 Apr 2018 15:16:23 -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: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 =E2=80=98idr_init_b= ase=E2=80=99: >> ./linux/../../../../include/linux/radix-tree.h:129:2: warning: >> implicit declaration of function =E2=80=98spin_lock_init=E2=80=99; did y= ou 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/spinloc= k.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_INITI= ALIZER; > +#define DEFINE_SPINLOCK(x) pthread_mutex_t x =3D PTHREAD_MUTEX_INITI= ALIZER > #define __SPIN_LOCK_UNLOCKED(x) (pthread_mutex_t)PTHREAD_MUTEX_IN= ITIALIZER > +#define spin_lock_init(x) pthread_mutex_init(x, NULL) > > #define spin_lock_irqsave(x, f) (void)f, pthread_mutex_lo= ck(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?