なかまです。
ちこっと、2.4.20なカーネルを動かしたかったんで、Seedの
kernel-2.4.20-0vl14.src.rpm を持って来てビルドしました。
# Seedごと入れるHDが無い (T_T)
kernelのREADMEには Make sure you have gcc 2.95.3 available.
との事なんですが、
ehci-hcd.c: In function `ehci_start':
ehci-hcd.c:343: parse error before `;'
ehci-hcd.c:416: parse error before `;'
ehci-hcd.c: In function `ehci_stop':
ehci-hcd.c:501: parse error before `;'
ehci-hcd.c: In function `ehci_irq':
ehci-hcd.c:685: parse error before `;'
とエラーになりました。
何かのパッチの影響かと見ると、patch-2.4.21-pre3.bz2 によって、
ehci付近がかかってました。
マクロを展開してみると、
ehci_warn (ehci, "illegal capability!\n");
とかが
printk("<4>" "%s %s: " "illegal capability!\n" , hcd_name, ( ehci
) ;
とかとなってました。
ehci-dbg.c の
#define ehci_warn(ehci, fmt, args...) \
printk(KERN_WARNING "%s %s: " fmt, hcd_name, \
(ehci)->hcd.pdev->slot_name, ## args )
とかが、上手く展開出来ないようです。
いろいろ(猿の兵法)試すと、
(ehci)->hcd.pdev->slot_name , ## args )
~
カンマの前にブランクを入れると上手く展開できました。(^^;
と、そんだけっす。はい。
--- drivers/usb/hcd/ehci-dbg.c.org 2003-03-08 12:03:19.000000000 +0900
+++ drivers/usb/hcd/ehci-dbg.c 2003-03-08 14:47:30.000000000 +0900
@@ -21,33 +21,33 @@
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,50)
#define ehci_dbg(ehci, fmt, args...) \
- dev_dbg (*(ehci)->hcd.controller, fmt, ## args )
+ dev_dbg (*(ehci)->hcd.controller , fmt, ## args )
#define ehci_err(ehci, fmt, args...) \
- dev_err (*(ehci)->hcd.controller, fmt, ## args )
+ dev_err (*(ehci)->hcd.controller , fmt, ## args )
#define ehci_info(ehci, fmt, args...) \
- dev_info (*(ehci)->hcd.controller, fmt, ## args )
+ dev_info (*(ehci)->hcd.controller , fmt, ## args )
#define ehci_warn(ehci, fmt, args...) \
- dev_warn (*(ehci)->hcd.controller, fmt, ## args )
+ dev_warn (*(ehci)->hcd.controller , fmt, ## args )
#else
#ifdef DEBUG
#define ehci_dbg(ehci, fmt, args...) \
printk(KERN_DEBUG "%s %s: " fmt, hcd_name, \
- (ehci)->hcd.pdev->slot_name, ## args )
+ (ehci)->hcd.pdev->slot_name , ## args )
#else
#define ehci_dbg(ehci, fmt, args...) do { } while (0)
#endif
#define ehci_err(ehci, fmt, args...) \
printk(KERN_ERR "%s %s: " fmt, hcd_name, \
- (ehci)->hcd.pdev->slot_name, ## args )
+ (ehci)->hcd.pdev->slot_name , ## args )
#define ehci_info(ehci, fmt, args...) \
printk(KERN_INFO "%s %s: " fmt, hcd_name, \
- (ehci)->hcd.pdev->slot_name, ## args )
+ (ehci)->hcd.pdev->slot_name , ## args )
#define ehci_warn(ehci, fmt, args...) \
printk(KERN_WARNING "%s %s: " fmt, hcd_name, \
- (ehci)->hcd.pdev->slot_name, ## args )
+ (ehci)->hcd.pdev->slot_name , ## args )
#endif
--
e-mail : Ei-ji Nakama <nakama@xxxxxxxxxxxx>