From: "Adam J. Richter" <adam@yggdrasil.com>
To: tim@cyberelk.net, campbell@torque.net, andrea@e-mind.com,
linux-kernel@vger.kernel.org
Subject: Patch: linux-2.5.2-pre8/drivers/parport/parport_cs.c need <linux/major.h> to compile
Date: Sat, 5 Jan 2002 03:12:28 -0800 [thread overview]
Message-ID: <20020105031228.A23728@baldur.yggdrasil.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 618 bytes --]
linux-2.5.2/drivers/parport/parport_cs.c needed to include
<linux/major.h> to get LP_MAJOR in order to compile. To address
a compiler warning, I also put an appropriate ifdef around the
declaration of a variable that is only used with certain kernel versions.
I have not tested this code. I only know that it now compiles.
--
Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."
[-- Attachment #2: parport.diffs --]
[-- Type: text/plain, Size: 612 bytes --]
--- linux-2.5.2-pre8/drivers/parport/parport_cs.c Sun Sep 30 12:26:08 2001
+++ linux/drivers/parport/parport_cs.c Sat Jan 5 03:07:21 2002
@@ -45,6 +45,7 @@
#include <linux/string.h>
#include <linux/timer.h>
#include <linux/ioport.h>
+#include <linux/major.h>
#include <linux/parport.h>
#include <linux/parport_pc.h>
@@ -106,7 +107,9 @@
static dev_link_t *dev_list = NULL;
extern struct parport_operations parport_pc_ops;
+#if (LINUX_VERSION_CODE < VERSION(2,3,6))
static struct parport_operations parport_cs_ops;
+#endif
/*====================================================================*/
reply other threads:[~2002-01-05 11:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20020105031228.A23728@baldur.yggdrasil.com \
--to=adam@yggdrasil.com \
--cc=andrea@e-mind.com \
--cc=campbell@torque.net \
--cc=linux-kernel@vger.kernel.org \
--cc=tim@cyberelk.net \
/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
all inboxes | Powered by JetHome®