lkml.org 
[lkml]   [2014]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 03/13] list: Add list_add_(before|after) macros
On Fri, Jun 06, 2014 at 12:51:35PM -0700, Hugh Dickins wrote:
> I'll express my opinion: perhaps it's widely shared, perhaps it is not.
>
> I think a patch like this (and the subsequent conversions) is unhelpful
> churn.
>
> The Linux struct list_head is designed and intended to be used for both
> head and entry, and introducing aliases to make unnecessary distinctions
> just hinders development instead of helping it.
>
> If the reader is confused at first, I hope the reader will soon learn,
> without needing to rely on aliases such as these.

I fully concur with Hugh - the list_head is symmetric for heads vs
entires, and lots of code depends on that.

In addition to that multiple functions that do exactly the same thing
generall are a bad idea.



\
 
 \ /
  Last update: 2014-06-07 16:01    [W:0.147 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site