All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG] checkpatch: false positive storage class location
@ 2017-07-04 19:29 ` Heinrich Schuchardt
  0 siblings, 0 replies; 8+ messages in thread
From: Heinrich Schuchardt @ 2017-07-04 19:29 UTC (permalink / raw)
  To: Andy Whitcroft, Joe Perches; +Cc: linux-kernel, u-boot, Heinrich Schuchardt

The U-Boot project uses the same scripts/checkpatch.pl as the Linux
kernel. I ran upon the problem below when working on U-Boot. But I
guess it should be fixed in the Linux upstream.

Running checkpatch for this email produces
WARNING: storage class should be at the beginning of the declaration

This relates to the parameter with asmlinkage.

asmlinkage is at the start of the parameter so I think this a false
positive.

Signed-off-by: Heinrich.Schuchardt <xypron.glpk@gmx.de>
---

 cmd/bootefi.c | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

diff --git a/cmd/bootefi.c b/cmd/bootefi.c
index 771300ee94..4df468307c 100644
--- a/cmd/bootefi.c
+++ b/cmd/bootefi.c
@@ -147,6 +147,12 @@ static void *copy_fdt(void *fdt)
 	return new_fdt;
 }
 
+static ulong efi_do_enter(void *image_handle,
+		struct efi_system_table *st, asmlinkage ulong (*entry)(
+		void *image_handle, struct efi_system_table *st))
+{
+	return 0;
+}
+
 /*
 end
 */
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-07-05 12:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-04 19:29 [BUG] checkpatch: false positive storage class location Heinrich Schuchardt
2017-07-04 19:29 ` [U-Boot] " Heinrich Schuchardt
2017-07-04 20:44 ` Joe Perches
2017-07-04 20:44   ` [U-Boot] " Joe Perches
2017-07-04 21:08   ` Heinrich Schuchardt
2017-07-04 21:08     ` [U-Boot] " Heinrich Schuchardt
2017-07-05 12:01     ` Joe Perches
2017-07-05 12:01       ` [U-Boot] " Joe Perches

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.