Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp735255ybi; Fri, 26 Jul 2019 18:47:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwogg2hY1NVcbyHOse3CdCIyjbJF/pp+3dnuXRz+0ZzRCBMjA3PAPSjmd5fp/7JhePXsg6k X-Received: by 2002:a62:38c6:: with SMTP id f189mr25346516pfa.157.1564192054241; Fri, 26 Jul 2019 18:47:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564192054; cv=none; d=google.com; s=arc-20160816; b=YAt2qsFmRQRabyC6fZoCBcxGxXX3Vp9MQ2lGs4wr9FBjWMkDd7j5jAeAV/3jlmE9X+ 5YMCm0ITnQyTTswg1Y1CYCheitDI1n4d90jFBpOFn8e86CwZXc8erYkJVGJEWW/O/dcr U56VEo/r96O0n3Oxnc8mc48BN7zUqlhbFtoP/fCGQzRK/K6MC+gNjuEoAWv+VitR2tD4 Zqd1rt5TQZtZiqsan2y2Cs1EJok967NgpLpUPwXd4UyXR2Kn79HkHWmpLTi2fwe0wCT5 Lgb7B4XLP9aQMVqGb5ca+UEMoltmkGrOGnPV69tWzPB3DAjVTy3WgdLTKhb/wuPt60LW NqRA== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=oTrpNEUdjJKSThahkGk2pnf71rDJjQdyGo8wGxoBjy8=; b=Q2pldSaBio+q2B1B+q7vYFpX7uQ4gs0CijaY+C+1+ay5dGkzxL3i1xEd9OOsvWL4U9 TluK383ghVmu84Hn6NMkGQ7RqpVC4jj08rXR5xMVdZaReL/M9wmlYT0Ma7+QGNsY52XM /dsPFa1KfEJhb8/55dZzgBIzcFdrNXk4T5RDdzy6qw5oUzFuPMvoDSgrHfb563jzbA4T fnsejfErcTdksCsmLYa+f89zitVrR2mGQ1vdz8dVAdPvtNVLElRQAUe/MU5SWv+aovOr kraPgszASQUCjrqzK6BAv3Z3HNItQqM78EtMA00GRtyjrN/sePGHX25UN7dJ7K/dYShA faPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EMACdf8L; 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 w3si22262133pgl.499.2019.07.26.18.47.19; Fri, 26 Jul 2019 18:47:34 -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=@kernel.org header.s=default header.b=EMACdf8L; 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 S1726947AbfG0BoW (ORCPT + 99 others); Fri, 26 Jul 2019 21:44:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:50498 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbfG0BoW (ORCPT ); Fri, 26 Jul 2019 21:44:22 -0400 Received: from localhost.localdomain (c-73-223-200-170.hsd1.ca.comcast.net [73.223.200.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A31BA20659; Sat, 27 Jul 2019 01:44:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564191861; bh=aTBZ5M1seZ2gARSGojfCgMkCIsMPIkP9O8QlLyAL5ao=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=EMACdf8LFnO0rdUoh2YJJqdAKkT1y74GYYiDezdi8ChDplEqb1rc2C9TnbSGy3r5h X+aNAEtjhHNOs7i6IYUfgwNY3QqNCK2FuBpF9S7a6OjlWVRWQwUu60Awq7IB+jKXsz CrQozuVy583/GQO0fie0uddzKSJQXol1zdM7WRUo= Date: Fri, 26 Jul 2019 18:44:19 -0700 From: Andrew Morton To: Michel Lespinasse Cc: Davidlohr Bueso , Peter Zijlstra , David Howells , "Uladzislau Rezki (Sony)" , LKML Subject: Re: [PATCH v3 2/3] augmented rbtree: add new RB_DECLARE_CALLBACKS_MAX macro Message-Id: <20190726184419.37adea1e227fc793c32427be@linux-foundation.org> In-Reply-To: References: <20190703040156.56953-1-walken@google.com> <20190703040156.56953-3-walken@google.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 8 Jul 2019 05:24:09 -0700 Michel Lespinasse wrote: > Syncing up with v5.2, I see that there is a new use for augmented > rbtrees in mm/vmalloc.c which does not compile after applying my > patchset. > > It's an easy fix though: It still doesn't build. lib/rbtree_test.c: In function check_augmented: lib/rbtree_test.c:225:35: error: implicit declaration of function augment_recompute [-Werror=implicit-function-declaration] WARN_ON_ONCE(node->augmented != augment_recompute(node)); I think I'll just do this: --- a/lib/rbtree_test.c~augmented-rbtree-add-new-rb_declare_callbacks_max-macro-fix-2 +++ a/lib/rbtree_test.c @@ -220,10 +220,6 @@ static void check_augmented(int nr_nodes struct rb_node *rb; check(nr_nodes); - for (rb = rb_first(&root.rb_root); rb; rb = rb_next(rb)) { - struct test_node *node = rb_entry(rb, struct test_node, rb); - WARN_ON_ONCE(node->augmented != augment_recompute(node)); - } } static int __init rbtree_test_init(void) although there may be something we can do here to restore the lost coverage?