Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752266AbdGDT3Z (ORCPT ); Tue, 4 Jul 2017 15:29:25 -0400 Received: from mout.gmx.net ([212.227.15.18]:58704 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752184AbdGDT3Y (ORCPT ); Tue, 4 Jul 2017 15:29:24 -0400 From: Heinrich Schuchardt To: Andy Whitcroft , Joe Perches Cc: linux-kernel@vger.kernel.org, u-boot@lists.denx.de, Heinrich Schuchardt Subject: [BUG] checkpatch: false positive storage class location Date: Tue, 4 Jul 2017 21:29:01 +0200 Message-Id: <20170704192901.23126-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.11.0 X-Provags-ID: V03:K0:XPLshWMT9tY2GhEp9UY+9NzkE7+Aoe5RRSjsoIpT8WNiYtwbaqT Ou3rt5Y1p3IXq0ziMy+AQNMYQvCRO655S8bl2Lf2WIz/wMTiaJ/SMzT5iXDmZyT6xRe17nr nsDQcnzrE/F0VIxh7RPrd8YuXluvnElbrlMoroXY44eSFdDYhLZp18Y8DIQHa4GmA8Dyyvc Ns4NrO3unwoUr0xaOsYuw== X-UI-Out-Filterresults: notjunk:1;V01:K0:oOczktkDvis=:i45NM1aIZr4yIufDA5SiQE tju6r/GOfh3Kmb7XoLCHcp0mWJKDQbo9BeIgaUIE6xHVaCy7OVoxRHKaA2PP71tdb2CcfERR/ UaRzHCDcmdsqn6oxj2H7UY8zpn4NgiM9maCE6GhOt04UJY1vm1gFmOU1DfR+xHse54rZ79oAF MYuG9L5gTYO76q8QrV3HcoYKZ+Ro/5izcxaVR03m7dmDIPe2473Nlv13Ef13SEdkjKF3JZoQU LomEFnWj98XiS/bUQr/1gOGcQTS4HLUcYdhyoQFkySzDsAcqlOxJJWE408o0gie1Z433GuK93 +WyG3NkqctEjjSrWZ9OjUJU5BLipLQ9Jexh9gypo5OfxhbS/cjyQueqSl/KCBSlmjk8/KBeLm FmY8RW4McVvbx6ygDoYvOOMiSN2FFl0BqR2W0c8rOobEN5GYmoAUWaqneDgLIhvNZ+JZzjk9p eRjeI0WznrLIVHUPTHmEnIJxTQTmOnnvnMqwbkLABT0fiREDSbglKIEWBNG5vVsjA1ylyXgbZ Vc48DvM3pGhRWepUS3m4srM/YQCLIoC2HhFZFfoyozIuZ86pecPIC+OmY9sl3ILSLCMpW8B12 skZ4r3ZnkI2TtmCZ0nKTsiU+fqCdL7xRpxuVGZdf6U/GccIquD+5mKDohQhvSTSt15wG6uuP2 bamrcIIQ7BOsJGvNrDg1b8d6/eMFqbQDgnDj6MiFcxTPZt44bjqsUfeHPHjsgQls7SCG8X8kJ hGKgnZT140jmHthsJa993Cc2eVHFRduFIWBLCSPWOt6I/rfe/shTNUQD26Q= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 978 Lines: 38 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 --- 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