From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA579C432C0 for ; Thu, 21 Nov 2019 11:11:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A6A2220721 for ; Thu, 21 Nov 2019 11:11:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726750AbfKULLf (ORCPT ); Thu, 21 Nov 2019 06:11:35 -0500 Received: from smtprelay0073.hostedemail.com ([216.40.44.73]:59779 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726165AbfKULLf (ORCPT ); Thu, 21 Nov 2019 06:11:35 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id B400F18224D7B; Thu, 21 Nov 2019 11:11:33 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: team37_64653de87240c X-Filterd-Recvd-Size: 2559 Received: from XPS-9350.home (unknown [47.151.135.224]) (Authenticated sender: joe@perches.com) by omf19.hostedemail.com (Postfix) with ESMTPA; Thu, 21 Nov 2019 11:11:29 +0000 (UTC) Message-ID: <6f444819493c5d55fee3871fcb7c067085726c2d.camel@perches.com> Subject: Re: [PATCH v4 02/10] lib: introduce generic min max heap From: Joe Perches To: Ian Rogers , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Andrew Morton , Masahiro Yamada , Kees Cook , Catalin Marinas , Petr Mladek , Mauro Carvalho Chehab , Qian Cai , Joe Lawrence , Tetsuo Handa , "Uladzislau Rezki (Sony)" , Andy Shevchenko , Ard Biesheuvel , "David S. Miller" , Kent Overstreet , Gary Hook , Arnd Bergmann , Kan Liang , linux-kernel@vger.kernel.org Cc: Stephane Eranian , Andi Kleen Date: Thu, 21 Nov 2019 03:11:06 -0800 In-Reply-To: <20191116011845.177150-3-irogers@google.com> References: <20191114003042.85252-1-irogers@google.com> <20191116011845.177150-1-irogers@google.com> <20191116011845.177150-3-irogers@google.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.34.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2019-11-15 at 17:18 -0800, Ian Rogers wrote: > Supports push, pop and converting an array into a heap. > Based-on-work-by: Peter Zijlstra (Intel) [] > diff --git a/include/linux/min_max_heap.h b/include/linux/min_max_heap.h [] > +/* Sift the element at pos down the heap. */ > +static inline void min_max_heapify(struct min_max_heap *heap, int pos, > + const struct min_max_heap_callbacks *func) s/inline/__always_inline/g > +static void min_max_heap_pop_push(struct min_max_heap *heap, > + const void *element, > + const struct min_max_heap_callbacks *func) And this still misses the inline attribute