]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
platform/x86: dell-smbios: Correct some style warnings
authorMario Limonciello <mario.limonciello@dell.com>
Tue, 27 Feb 2018 18:23:02 +0000 (12:23 -0600)
committerDarren Hart (VMware) <dvhart@infradead.org>
Sat, 3 Mar 2018 00:11:02 +0000 (16:11 -0800)
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 <mario.limonciello@dell.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/dell-smbios.c

index 8541cde4cb7d3c4febde205b639428b89215bdc0..76b9d754544728a3d1e2f985763574cbd21a69a9 100644 (file)
@@ -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 {
@@ -352,8 +352,10 @@ static void __init parse_da_table(const struct dmi_header *dm)
        struct calling_interface_structure *table =
                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 */
+       /*
+        * 4 bytes of table header, plus 7 bytes of Dell header
+        * plus at least 6 bytes of entry
+        */
 
        if (dm->length < 17)
                return;