Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148524 - Add 2.6.18 kernel support to net-dialup/ltmodem
Summary: Add 2.6.18 kernel support to net-dialup/ltmodem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Dialup Developers
URL: http://svn.sabayonlinux.org/listing.p...
Whiteboard:
Keywords:
Depends on:
Blocks: 148429
  Show dependency tree
 
Reported: 2006-09-21 08:51 UTC by Fabio Erculiani
Modified: 2006-09-21 14:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Erculiani 2006-09-21 08:51:05 UTC
It's in the SabayonLinux SVN, added 2.6.18-devfs.patch

--- serial.c~  2005-12-12 02:07:17.000000000 +0100
+++ serial.c   2006-07-07 11:52:49.000000000 +0200
@@ -729,10 +729,8 @@
       .owner                  = THIS_MODULE,
       .driver_name         = "ltserial",
 #ifdef LT_USE_OLD_NAMES
-      .devfs_name   = "tts/LT",
       .dev_name       = "ttyLT",
 #else
-      .devfs_name   = "tts/LTM",
       .dev_name       = "ttyLTM",
 #endif
       .major                  = 62,
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2006-09-21 12:09:57 UTC
I've fixed with a better patch:
diff -Nru ltmodem-2.6-alk-8.orig/serial.c ltmodem-2.6-alk-8/serial.c
--- ltmodem-2.6-alk-8.orig/serial.c     2005-12-12 03:07:17.000000000 +0200
+++ ltmodem-2.6-alk-8/serial.c  2006-09-21 21:53:08.055717500 +0300
@@ -732,7 +732,9 @@
        .devfs_name             = "tts/LT",
        .dev_name               = "ttyLT",
 #else
+#      if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18))
        .devfs_name             = "tts/LTM",
+#      endif
        .dev_name               = "ttyLTM",
 #endif
        .major                  = 62,

This and the old module_param patch have been merged into kernel-changes.patch.

Fixed without revision bump (users rebuild the external modules anyway).
Comment 2 Fabio Erculiani 2006-09-21 14:28:46 UTC
very good :) well done.