From: Albert Cranford <ac9410@attbi.com>
To: Linus Torvalds <torvalds@transmeta.com>,
Linux Kernel List <linux-kernel@vger.kernel.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Subject: [PATCH] 2.5.30 ARCH=i386 create dmi_scan.h and move decl from dmi_scan.c
Date: Fri, 02 Aug 2002 10:58:22 -0400 [thread overview]
Message-ID: <3D4A9E0E.A3B24096@attbi.com> (raw)
Hello Linus,
Alan suggested that sensors group use a dmi scanner to
manage allow/blacklist products. In order to do this
we need to use arch/i386/kernel/dmi_scan.c components.
Could you apply the following patch to facilitate this?
Its been tested in linux-2.5.30 with no negative impact on
kernel and may be useful for others.
Thanks,
Albert
--- linux/arch/i386/kernel/dmi_scan.c.orig 2002-07-31 23:10:21.000000000 -0400
+++ linux/arch/i386/kernel/dmi_scan.c 2002-07-31 23:13:52.000000000 -0400
@@ -9,6 +9,7 @@
#include <linux/pm.h>
#include <asm/keyboard.h>
#include <asm/system.h>
+#include <asm/dmi_scan.h>
#include <linux/bootmem.h>
unsigned long dmi_broken;
@@ -127,22 +128,7 @@
return -1;
}
-
-enum
-{
- DMI_BIOS_VENDOR,
- DMI_BIOS_VERSION,
- DMI_BIOS_DATE,
- DMI_SYS_VENDOR,
- DMI_PRODUCT_NAME,
- DMI_PRODUCT_VERSION,
- DMI_BOARD_VENDOR,
- DMI_BOARD_NAME,
- DMI_BOARD_VERSION,
- DMI_STRING_MAX
-};
-
-static char *dmi_ident[DMI_STRING_MAX];
+char *dmi_ident[DMI_STRING_MAX];
/*
* Save a DMI string
--- /dev/null 1994-07-17 19:46:18.000000000 -0400
+++ linux/include/asm-i386/dmi_scan.h 2002-07-31 23:12:49.000000000 -0400
@@ -0,0 +1,19 @@
+#ifndef __i386_DMI_SCAN_H
+#define __i386_DMI_SCAN_H
+enum
+{
+ DMI_BIOS_VENDOR,
+ DMI_BIOS_VERSION,
+ DMI_BIOS_DATE,
+ DMI_SYS_VENDOR,
+ DMI_PRODUCT_NAME,
+ DMI_PRODUCT_VERSION,
+ DMI_BOARD_VENDOR,
+ DMI_BOARD_NAME,
+ DMI_BOARD_VERSION,
+ DMI_STRING_MAX
+};
+
+extern char *dmi_ident[DMI_STRING_MAX];
+
+#endif
--
Albert Cranford Deerfield Beach FL USA
ac9410@bellsouth.net
next reply other threads:[~2002-08-02 14:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-02 14:58 Albert Cranford [this message]
2002-08-02 18:01 ` [PATCH] 2.5.30 ARCH=i386 create dmi_scan.h and move decl from dmi_scan.c Alan Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D4A9E0E.A3B24096@attbi.com \
--to=ac9410@attbi.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).