Received: by 10.192.165.156 with SMTP id m28csp2436268imm; Thu, 12 Apr 2018 14:21:42 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/8f5UkF1tgUbelYW6FrVtKzDFL/0FVym4vb4ZkWExJY2ZnSAIoyn5fzDXZp/h4tfa+zgKS X-Received: by 2002:a17:902:6046:: with SMTP id a6-v6mr311169plt.138.1523568102018; Thu, 12 Apr 2018 14:21:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523568101; cv=none; d=google.com; s=arc-20160816; b=Opj7mdl9oY4TJHbejtoUENwphxMVSA3LHJiIkJ0aCe8ZoCCc0p8CJSH/vJMGRKIfqL LgpNZ5jeXUkPzxscQ5C93KLdqkkQ5iX59ODq7oMI1iMelpSlO9PN9n3QNTJb4Zx6xmM4 sQtgnWiQSXtGzUQo4og+EHjGxoYv5ZdsdQp4GQ03P61pbZv25wlN4eZWBlVYqj737Zcz vuNEUM5cmtREDBkNX221wg/7w7Dmwijr4UW8TfRCxBvju33lz5PYyafSRiOOygRz/3qf Usn6qsa/QUpOm9c545NEaglW64Tjg6beQ03ze9hL4iiZZd5Hzyfck4bMK7IXV37arwKC 6Ulw== 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=OsKUX0QV+N05Od7oweT6fR8623V/nmVlEU3udQw6ZKY=; b=DtvOl8yQFkUmeUZ5p2taUe13j0EKX8RhFrkhVz+EM4Ob35AHlT4EdXOLeDp4jrzzqm sHDSL2cVOix9rwu93MJCkxwJkbn+TUI/KLeduzPuNji9r+HHqjvulQKpWxVtTucX1ANv dogorGKVJGPb2ZhIRjng8N9G4nHpQl9jG3qORP03N5JCwavP80A8qwHLC6/IjnD7blRz EyWEWpsfhstp+P9d1QWk/bbORyEiEi7ossYLO6V5ePq91L++/AaNO8vkUuPwRJhZYsJm Gb/cLMpbSovUjHiQ6V2yq4c9PfHkl/PoWc78aXW7Tt3GiewOujI9+QGGiurwFUv7nkuF Hj6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Zo5pvshU; 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 h33-v6si4054090plh.483.2018.04.12.14.21.27; Thu, 12 Apr 2018 14:21:41 -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=Zo5pvshU; 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 S1753391AbeDLVKl (ORCPT + 99 others); Thu, 12 Apr 2018 17:10:41 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:34040 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752235AbeDLVKj (ORCPT ); Thu, 12 Apr 2018 17:10:39 -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=OsKUX0QV+N05Od7oweT6fR8623V/nmVlEU3udQw6ZKY=; b=Zo5pvshUoFSydCo7lpgLpRa2ac HdL5lDO3B8jtP0XR72oar7UQRdR2bhVFs1KCHHmJK4hToRwQJ/ppnQbn0VKPbQWeFkxUZpDAm4qU4 DddQ1o2RXAigrrrZFAAkOnmB78PU3k9athD0NK1jE7irzGKMxMeOcCaXmSjm3y96Div39bxz5qrSy dB3ASa8O/8dvooaQL3r45jWXAgm+iX7DtgEHaxwtqv5vCshW+ZtIks1vVITG+xLKDltSbK1OUOQfM UODlgBLzRf/iA4JyXNkZUk8YBn6QPjAtfRyEN90eGEPKkFlv+oFQVFlcxSDQwSDYtnarTbEbPu6BL /aIMX41A==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1f6jUL-00068Q-4h; Thu, 12 Apr 2018 21:10:37 +0000 Date: Thu, 12 Apr 2018 14:10:36 -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: <20180412211036.GB18364@bombadil.infradead.org> References: <20180313132639.17387-1-willy@infradead.org> <20180313132639.17387-8-willy@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 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.