[U-Boot] [PATCH 2/6] efi_loader: Initial HII database protocols

Heinrich Schuchardt xypron.glpk at gmx.de
Fri Nov 2 08:15:57 UTC 2018


On 11/02/2018 01:32 AM, AKASHI Takahiro wrote:
> On Thu, Nov 01, 2018 at 08:39:04AM +0100, Heinrich Schuchardt wrote:
>> On 11/01/2018 05:47 AM, AKASHI Takahiro wrote:
>>> From: Leif Lindholm <leif.lindholm at linaro.org>
>>>
>>> This patch provides enough implementation of the following protocols to
>>> run EDKII's Shell.efi and UEFI SCT:
>>>
>>>   * EfiHiiDatabaseProtocol
>>>   * EfiHiiStringProtocol
>>>
>>> Not implemented are:
>>>   * ExportPackageLists()
>>>   * RegisterPackageNotify()/UnregisterPackageNotify()
>>>   * SetKeyboardLayout() (i.e. *current* keyboard layout)
>>>
>>
>> <snip />
>>
>>> +		case EFI_HII_PACKAGE_STRINGS:
>>> +			ret = add_strings_package(hii,
>>> +				(struct efi_hii_strings_package *)package);
>>
>> scripts/checkpatch.pl:
>>
>> CHECK: Alignment should match open parenthesis
>> #583: FILE: lib/efi_loader/efi_hii.c:231:
>> +                       ret = add_strings_package(hii,
>> +                               (struct efi_hii_strings_package *)package);
> 
> I've noticed this warning as well as another type of warning, such as
> 
> CHECK: Lines should not end with a '('
> #186: FILE: include/efi_api.h:832:
> +       efi_status_t(EFIAPI *new_package_list)(
> 
> CHECK: spaces preferred around that '*' (ctx:WxV)
> #186: FILE: include/efi_api.h:832:
> +       efi_status_t(EFIAPI *new_package_list)(
> 

These you can ignore. This is a bug you could report to the upstream
maintainer of checkpatch.pl (at kernel.org).

Regards

Heinrich

> Those are quite difficult to fix without sacrificing readability
> or introducing another warning.
> If you have any solution, please let me know.
> 
> |        case EFI_HII_PACKAGE_STRINGS:
> |               struct efi_hii_strings_package *strings_package;
> |
> |               strings_package = (struct efi_hii_strings_package *)package);
> |               ret = add_strings_package(hii, strings_package);
> |                       
> 
> This kinda fix is a non-sense, I believe.
> 
> -Takahiro Akashi
> 
> 
>> Please, adjust the alignment.
>>
>> Best regards
>>
>> Heinrich
> 



More information about the U-Boot mailing list