[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] checkpatch: Supress warning in function pointer
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH] checkpatch: Supress warning in function pointer typedefs |
Date: |
Tue, 21 Mar 2017 12:37:01 +0000 |
On 16 March 2017 at 11:14, Vinzenz 'evilissimo' Feenstra
<address@hidden> wrote:
> From: Vinzenz Feenstra <address@hidden>
>
> When importing dynamically functions via `GetProcAddress` in windows
> related code, it is quite common to make a typedef for the resulting
> function pointer. When the function to be imported, has a stdcall
> calling convention, usually the `WINAPI` macro is used. This patch adds an
> exception in the checkpatch.pl script to allow the calling convention
> specification in function pointer typedefs, to be `WINAPI`.
>
> Signed-off-by: Vinzenz Feenstra <address@hidden>
Could you provide an example of the kind of source line that provokes
the incorrect warning and the checkpatch output that results,
please?
thanks
-- PMM