From patchwork Tue Feb 27 15:56:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Limonciello, Mario" X-Patchwork-Id: 10245753 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F219D60362 for ; Tue, 27 Feb 2018 15:59:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E4D72287E6 for ; Tue, 27 Feb 2018 15:59:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D94322886A; Tue, 27 Feb 2018 15:59:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A80A287E6 for ; Tue, 27 Feb 2018 15:59:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932236AbeB0P5E (ORCPT ); Tue, 27 Feb 2018 10:57:04 -0500 Received: from esa2.dell-outbound.iphmx.com ([68.232.149.220]:16540 "EHLO esa2.dell-outbound.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932176AbeB0P5D (ORCPT ); Tue, 27 Feb 2018 10:57:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dell.com; i=@dell.com; q=dns/txt; s=smtpout; t=1519747023; x=1551283023; h=from:to:cc:subject:date:message-id; bh=iLUllPMEthe34CcA44EX8wy8IcTshDOeqA908rUTxL8=; b=Rk7LUxCJbSKmNznJZOTr2OCjMMaBBe1QYSwK87Cf0bR3abzrvw5Lst7i YPdwTjyfLJjKiAe3jT3ghzEMyhqkGE6yv7R4Wt+B/qHqtC1RpUs8dbPrQ Z+9OuYsjTW0oW9DRsrjZir28en33Z11Zf8G/gcbZgMhQxJW92I1jOf0jh I=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2GKAAAGf5Vahz+a6EReGQEBAQEBAQEBA?= =?us-ascii?q?QEBAQcBAQEBAYUmKJt1gxiWPwqFMoJOWBQBAgEBAQEBAQIBAhABAQEKCwkIKC+?= =?us-ascii?q?COCQBgnVST28BEoUVrSA6iHCCFDKHSoFXkCMFjXJ0i2gJgguOZgKOcpFQgS41g?= =?us-ascii?q?XNwT4JDgXMBTAMQDIIaWIxSAQEB?= X-IPAS-Result: =?us-ascii?q?A2GKAAAGf5Vahz+a6EReGQEBAQEBAQEBAQEBAQcBAQEBAYU?= =?us-ascii?q?mKJt1gxiWPwqFMoJOWBQBAgEBAQEBAQIBAhABAQEKCwkIKC+COCQBgnVST28BE?= =?us-ascii?q?oUVrSA6iHCCFDKHSoFXkCMFjXJ0i2gJgguOZgKOcpFQgS41gXNwT4JDgXMBTAM?= =?us-ascii?q?QDIIaWIxSAQEB?= Received: from esa3.dell-outbound2.iphmx.com ([68.232.154.63]) by esa2.dell-outbound.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Feb 2018 09:57:02 -0600 Received: from ausxippc110.us.dell.com ([143.166.85.200]) by esa3.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Feb 2018 21:55:10 +0600 X-LoopCount0: from 10.208.86.39 X-IronPort-AV: E=Sophos;i="5.47,401,1515477600"; d="scan'208";a="623642134" X-DLP: DLP_GlobalPCIDSS From: Mario Limonciello To: dvhart@infradead.org, Andy Shevchenko Cc: pali.rohar@gmail.com, LKML , platform-driver-x86@vger.kernel.org, Mario Limonciello Subject: [PATCH 1/3] platform/x86: dell-smbios: Correct some style warnings Date: Tue, 27 Feb 2018 09:56:52 -0600 Message-Id: <1519747014-17561-1-git-send-email-mario.limonciello@dell.com> X-Mailer: git-send-email 2.7.4 Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP WARNING: function definition argument 'struct calling_interface_buffer *' should also have an identifier name + int (*call_fn)(struct calling_interface_buffer *); WARNING: Block comments use * on subsequent lines + /* 4 bytes of table header, plus 7 bytes of Dell header, plus at least + 6 bytes of entry */ WARNING: Block comments use a trailing */ on a separate line + 6 bytes of entry */ Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-smbios.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/dell-smbios.c b/drivers/platform/x86/dell-smbios.c index 8541cde..4850658 100644 --- a/drivers/platform/x86/dell-smbios.c +++ b/drivers/platform/x86/dell-smbios.c @@ -36,7 +36,7 @@ static DEFINE_MUTEX(smbios_mutex); struct smbios_device { struct list_head list; struct device *device; - int (*call_fn)(struct calling_interface_buffer *); + int (*call_fn)(struct calling_interface_buffer *arg); }; struct smbios_call { @@ -353,7 +353,8 @@ static void __init parse_da_table(const struct dmi_header *dm) container_of(dm, struct calling_interface_structure, header); /* 4 bytes of table header, plus 7 bytes of Dell header, plus at least - 6 bytes of entry */ + * 6 bytes of entry + */ if (dm->length < 17) return;