Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1315022 > unrolled thread
| Started by | Michał Kępień <kernel@kempniu.pl> |
|---|---|
| First post | 2016-01-22 15:30 +0100 |
| Last post | 2016-01-22 15:30 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 09/16] dell-smbios: make the SMBIOS buffer static Michał Kępień <kernel@kempniu.pl> - 2016-01-22 15:30 +0100
| From | Michał Kępień <kernel@kempniu.pl> |
|---|---|
| Date | 2016-01-22 15:30 +0100 |
| Subject | [PATCH v2 09/16] dell-smbios: make the SMBIOS buffer static |
| Message-ID | <qTKSS-5dr-19@gated-at.bofh.it> |
As dell-laptop has been changed to always retrieve a pointer to the
SMBIOS buffer using dell_smbios_get_buffer(), the SMBIOS buffer can be
marked static.
Signed-off-by: Michał Kępień <kernel@kempniu.pl>
---
drivers/platform/x86/dell-smbios.c | 3 +--
drivers/platform/x86/dell-smbios.h | 1 -
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/platform/x86/dell-smbios.c b/drivers/platform/x86/dell-smbios.c
index 535d382..b383d0d 100644
--- a/drivers/platform/x86/dell-smbios.c
+++ b/drivers/platform/x86/dell-smbios.c
@@ -30,8 +30,7 @@ struct calling_interface_structure {
struct calling_interface_token tokens[];
} __packed;
-struct calling_interface_buffer *buffer;
-EXPORT_SYMBOL_GPL(buffer);
+static struct calling_interface_buffer *buffer;
static DEFINE_MUTEX(buffer_mutex);
static int da_command_address;
diff --git a/drivers/platform/x86/dell-smbios.h b/drivers/platform/x86/dell-smbios.h
index f7a51f5..af653ff 100644
--- a/drivers/platform/x86/dell-smbios.h
+++ b/drivers/platform/x86/dell-smbios.h
@@ -35,7 +35,6 @@ struct calling_interface_token {
};
};
-extern struct calling_interface_buffer *buffer;
extern struct calling_interface_token *da_tokens;
struct calling_interface_buffer *dell_smbios_get_buffer(void);
--
1.7.10.4
Back to top | Article view | linux.kernel
csiph-web