[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <50117E40.8090904@hp.com>
Date: Thu, 26 Jul 2012 11:28:32 -0600
From: Khalid Aziz <khalid.aziz@...com>
To: Matthew Garrett <mjg@...hat.com>
CC: "H. Peter Anvin" <hpa@...or.com>, mikew@...gle.com,
tony.luck@...el.com, keescook@...omium.org,
gong.chen@...ux.intel.com, gregkh@...e.de,
paul.gortmaker@...driver.com, maxin.john@...il.com,
rdunlap@...otime.net, matt.fleming@...el.com, olof@...om.net,
dhowells@...hat.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Shorten constant names for EFI variable attributes
On 07/23/2012 07:26 AM, Matthew Garrett wrote:
> On Fri, Jul 20, 2012 at 03:10:56PM -0700, H. Peter Anvin wrote:
>> On 07/20/2012 03:08 PM, Khalid Aziz wrote:
>>> Replace very long constants for EFI variable attributes
>>> with shorter and more convenient names. Also create an
>>> alias for the current longer names so as to not break
>>> compatibility with current API since these constants
>>> are used by userspace programs. This patch depends on
>>> patch <https://lkml.org/lkml/2012/7/13/313>.
>> I think these some from the EFI specifcation, so NAK IMO.
> From the point of view of making efivars more readable, I'd certainly
> prefer shorter constant names. Keeping an alias is necessary only
> because it's an existing exposed interface. The specification doesn't
> actually require the use of these specific names anywhere, and we've
> taken a more relaxed attitude in other bits of the EFI code.
>
Matthew,
I also do not believe that kernel must use the constant names mentioned
in the specification especially when the name reaches 50 characters. We
can not get away from having to create aliases. Do you think having
aliases in efi.h can cause mixed use of long names and short names in
future code in the kernel? Can we address this by suggesting to future
code authors that they should use the short names in their code? Should
we consider inclusion of this patch in the kernel?
--
Khalid Aziz
khalid.aziz@...com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists