All of lore.kernel.org
 help / color / mirror / Atom feed
* should in-tree kernel source accommodate older kernel versions?
@ 2007-07-17 21:22 Robert P. J. Day
  2007-07-17 21:33 ` Matthew Wilcox
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Robert P. J. Day @ 2007-07-17 21:22 UTC (permalink / raw)
  To: kernel-janitors


  should kernel source that's in the current source tree still try to
accommodate older kernel versions?  as an example, this is from
drivers/scsi/gdth.c:

/* parameters for modprobe/insmod */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,11)
module_param_array(irq, int, NULL, 0);
module_param(disable, int, 0);
module_param(reserve_mode, int, 0);
module_param_array(reserve_list, int, NULL, 0);
module_param(reverse_scan, int, 0);
module_param(hdr_channel, int, 0);
module_param(max_ids, int, 0);
module_param(rescan, int, 0);
module_param(virt_ctr, int, 0);
module_param(shared_access, int, 0);
module_param(probe_eisa_isa, int, 0);
module_param(force_dma32, int, 0);
#else
MODULE_PARM(irq, "i");
MODULE_PARM(disable, "i");
MODULE_PARM(reserve_mode, "i");
... etc etc ...

  now, i can see the value in trying to maintain a single source file
(gdth.c) that's compatible with various versions of the kernel.  on
the other hand, this is source that has been accepted into the main
tree.  under those circumstances, it's *irrelevant* whether it's
compatible with older versions.

  it would seem that, if someone wants to maintain a multi-version
source file, they can handle that *outside* the source tree on their
own, and not load the tree with extraneous junk to make *their* job
easier.

  thoughts?

rday
-- 
====================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
====================================

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-07-18  9:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-17 21:22 should in-tree kernel source accommodate older kernel versions? Robert P. J. Day
2007-07-17 21:33 ` Matthew Wilcox
2007-07-17 21:36 ` Robert P. J. Day
2007-07-17 21:46 ` Matthew Wilcox
2007-07-18  9:53 ` Robert P. J. Day

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.