From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Linux Kernel Development <linux-kernel@vger.kernel.org>
Cc: Adam Belay <ambx1@neo.rr.com>,
linux-parport@torque.net,
Rusty Trivial Russell <trivial@rustcorp.com.au>
Subject: [PATCH] parport_pc and !CONFIG_PNP
Date: Sun, 5 Jan 2003 15:52:49 +0100 (MET) [thread overview]
Message-ID: <Pine.GSO.4.21.0301051548560.10519-100000@vervain.sonytel.be> (raw)
parport_pc_pnp_driver is const if !CONFIG_PNP, while pnp_register_driver()
takes a non-const pointer as parameter.
An alternative fix is to change the prototype of the dummy
pnp_register_driver(), but this may affect other drivers.
--- linux-2.5.54/drivers/parport/parport_pc.c Thu Jan 2 12:54:34 2003
+++ linux-m68k-2.5.54/drivers/parport/parport_pc.c Fri Jan 3 17:45:08 2003
@@ -2987,7 +2987,7 @@
.id_table = pnp_dev_table,
};
#else
-static const struct pnp_driver parport_pc_pnp_driver;
+static struct pnp_driver parport_pc_pnp_driver;
#endif
/* This is called by parport_pc_find_nonpci_ports (in asm/parport.h) */
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
reply other threads:[~2003-01-05 14:44 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=Pine.GSO.4.21.0301051548560.10519-100000@vervain.sonytel.be \
--to=geert@linux-m68k.org \
--cc=ambx1@neo.rr.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-parport@torque.net \
--cc=trivial@rustcorp.com.au \
/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).