* [U-Boot] [PATCH 1/1] docs: kernel-doc: fix parsing of function pointers
@ 2018-09-03 18:50 Heinrich Schuchardt
2018-10-08 18:06 ` [U-Boot] [U-Boot, " Tom Rini
0 siblings, 1 reply; 3+ messages in thread
From: Heinrich Schuchardt @ 2018-09-03 18:50 UTC (permalink / raw)
To: u-boot
kernel-doc fails to parse function definitions like the one below
efi_status_t efi_create_event(uint32_t type, efi_uintn_t notify_tpl,
void (EFIAPI *notify_function) (
struct efi_event *event,
void *context),
void *notify_context, efi_guid_t *group,
struct efi_event **event)
{
due to the "EFIAPI" attribute preceding the function name.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
I am submitted the same patch to the Kernel upstream:
https://lkml.org/lkml/2018/9/3/1185
---
scripts/kernel-doc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index 31a34ced55a3..597e3223b791 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1381,7 +1381,7 @@ sub create_parameterlist($$$$) {
} elsif ($arg =~ m/\(.+\)\s*\(/) {
# pointer-to-function
$arg =~ tr/#/,/;
- $arg =~ m/[^\(]+\(\*?\s*([\w\.]*)\s*\)/;
+ $arg =~ m/[^\(]+\([\w\s]*\*?\s*([\w\.]*)\s*\)/;
$param = $1;
$type = $arg;
$type =~ s/([^\(]+\(\*?)\s*$param/$1/;
--
2.18.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [U-Boot, 1/1] docs: kernel-doc: fix parsing of function pointers
2018-09-03 18:50 [U-Boot] [PATCH 1/1] docs: kernel-doc: fix parsing of function pointers Heinrich Schuchardt
@ 2018-10-08 18:06 ` Tom Rini
2018-10-08 23:26 ` Heinrich Schuchardt
0 siblings, 1 reply; 3+ messages in thread
From: Tom Rini @ 2018-10-08 18:06 UTC (permalink / raw)
To: u-boot
On Mon, Sep 03, 2018 at 08:50:03PM +0200, Heinrich Schuchardt wrote:
> kernel-doc fails to parse function definitions like the one below
>
> efi_status_t efi_create_event(uint32_t type, efi_uintn_t notify_tpl,
> void (EFIAPI *notify_function) (
> struct efi_event *event,
> void *context),
> void *notify_context, efi_guid_t *group,
> struct efi_event **event)
> {
>
> due to the "EFIAPI" attribute preceding the function name.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
> I am submitted the same patch to the Kernel upstream:
> https://lkml.org/lkml/2018/9/3/1185
Looking at the lkml thread this seems to have not reached a conclusion.
Are you planning to push some v2 there that tries to address some of the
oddities there? Or should we just make this a local correction?
Thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181008/ea5bc487/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [U-Boot, 1/1] docs: kernel-doc: fix parsing of function pointers
2018-10-08 18:06 ` [U-Boot] [U-Boot, " Tom Rini
@ 2018-10-08 23:26 ` Heinrich Schuchardt
0 siblings, 0 replies; 3+ messages in thread
From: Heinrich Schuchardt @ 2018-10-08 23:26 UTC (permalink / raw)
To: u-boot
On 10/08/2018 08:06 PM, Tom Rini wrote:
> On Mon, Sep 03, 2018 at 08:50:03PM +0200, Heinrich Schuchardt wrote:
>
>> kernel-doc fails to parse function definitions like the one below
>>
>> efi_status_t efi_create_event(uint32_t type, efi_uintn_t notify_tpl,
>> void (EFIAPI *notify_function) (
>> struct efi_event *event,
>> void *context),
>> void *notify_context, efi_guid_t *group,
>> struct efi_event **event)
>> {
>>
>> due to the "EFIAPI" attribute preceding the function name.
>>
>> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
>> ---
>> I am submitted the same patch to the Kernel upstream:
>> https://lkml.org/lkml/2018/9/3/1185
>
> Looking at the lkml thread this seems to have not reached a conclusion.
> Are you planning to push some v2 there that tries to address some of the
> oddities there? Or should we just make this a local correction?
> Thanks!
>
Hello Tom,
I will have to rework the patch. We should stay in sync with the Linux
version.
I have marked it as "changes requested" in Patchwork now.
Best regards
Heinrich
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-10-08 23:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-03 18:50 [U-Boot] [PATCH 1/1] docs: kernel-doc: fix parsing of function pointers Heinrich Schuchardt
2018-10-08 18:06 ` [U-Boot] [U-Boot, " Tom Rini
2018-10-08 23:26 ` Heinrich Schuchardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox