From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luc Van Oostenryck Subject: Re: [PATCH 0/2] be more generous with ptrlist repacking Date: Fri, 18 Nov 2016 01:29:19 +0100 Message-ID: <20161118002918.GA35373@macpro.local> References: <20161117172559.29417-1-luc.vanoostenryck@gmail.com> <20161117202523.GA35194@macpro.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-wm0-f65.google.com ([74.125.82.65]:36017 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751134AbcKRA3X (ORCPT ); Thu, 17 Nov 2016 19:29:23 -0500 Received: by mail-wm0-f65.google.com with SMTP id m203so921742wma.3 for ; Thu, 17 Nov 2016 16:29:23 -0800 (PST) Content-Disposition: inline In-Reply-To: Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: Linus Torvalds Cc: Sparse Mailing-list , Christopher Li , Dan Carpenter On Thu, Nov 17, 2016 at 02:03:05PM -0800, Linus Torvalds wrote: > On Thu, Nov 17, 2016 at 12:25 PM, Luc Van Oostenryck > wrote: > > > > Would something like the following be fine? > > This looks good to me, although I didn't actually test it. But it > looks like what I would have expected. > > Some of those inlines look large enough that I wonder how much sense > they make as inlines any more, but I think that's a separate issue. Oh, I absolutely agree. What I would like is something more iterator oriented which keep track of the head-list-nr state. I have a working prototype I made last week but it still needs some more polishing. Luc