lkml.org 
[lkml]   [2012]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Shorten constant names for EFI variable attributes
On 07/20/2012 04:34 PM, H. Peter Anvin wrote:
> On 07/20/2012 03:30 PM, Khalid Aziz wrote:
>>
>> This patch is based upon earlier discussion at
>> <https://lkml.org/lkml/2012/7/13/320>.
>>
>> You are right that EFI specification uses exactly these long names for
>> the constants, but does that mean kernel must also use the exact same
>> long constant names? I can see doing that for the sake of consistency.
>> At the same time, can we make the kernel code more readable and retain
>> compatibility with existing API by using aliases? I slightly prefer
>> making kernel code more readable, but I could go either way.
>>
>
> I think it makes the kernel code less readable, because now you not
> only need to understand the kernel code and the EFI spec, but also how
> the two maps onto each other. The fact that you then have to introduce
> aliases indicates to me that you're doing something actively broken.
>
> -hpa
>
As I think more about it, existence of aliases could also potentially
create confusion where someone adding new code to kernel chooses to use
the long name instead. Maybe unless we can make a clean break from long
names, it is not worth doing this and that is going to be problematic
because of the existing usage in userspace programs.

Matthew, do you have a different point of view?

--
Khalid
khalid.aziz@hp.com



\
 
 \ /
  Last update: 2012-07-21 01:21    [W:0.064 / U:0.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site