[Armadillo:03347] Re: [Armadillo-500]USB Gadgetのmakeエラーについて

橋本 佳己 email@hidden
2008年 8月 28日 (木) 15:12:14 JST


SHOJI 様

いつもお世話になっております。
SFTの橋本です。

> __usb_suspend_deviceの宣言を関数の外に出すと直ります。

> > drivers/usb/core/hub.c: In function ‘usb_new_device’:
> > drivers/usb/core/hub.c:1374: warning: unused variable ‘root ’
> > drivers/usb/core/hub.c:1411: error: invalid storage class 
> for function ‘__usb_suspend_device’

最初、発生していたエラーは直りましたが
新たにエラーが発生しました。
その内容を送付します。

In file included from drivers/usb/otg/fsl_otg.c:32:
drivers/usb/otg/fsl_otg.h:15:27: error: linux/usb/otg.h: そ
のようなファイルやディレクトリはありま せん
In file included from drivers/usb/otg/fsl_otg.c:32:
drivers/usb/otg/fsl_otg.h:220: error: field ‘otg’ has incomplete type
drivers/usb/otg/fsl_otg.h:236: warning: ‘enum usb_otg_state ’ declared inside parameter list
drivers/usb/otg/fsl_otg.h:236: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/usb/otg/fsl_otg.c: In function ‘b_srp_end’:
drivers/usb/otg/fsl_otg.c:240: error: ‘OTG_STATE_B_SRP_INIT ’ undeclared (first use in this function)
drivers/usb/otg/fsl_otg.c:240: error: (Each undeclared identifier is reported only once
drivers/usb/otg/fsl_otg.c:240: error: for each function it appears in.)
drivers/usb/otg/fsl_otg.c: In function ‘fsl_otg_start_host
’:
drivers/usb/otg/fsl_otg.c:367: warning: type defaults to ‘int’ in declaration of ‘__mptr’
drivers/usb/otg/fsl_otg.c:367: warning: initialization from incompatible pointer type
drivers/usb/otg/fsl_otg.c:371: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c:374: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c: In function ‘
fsl_otg_start_gadget’:
drivers/usb/otg/fsl_otg.c:429: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c:432: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c: In function ‘fsl_otg_set_host’:
drivers/usb/otg/fsl_otg.c:450: warning: type defaults to ‘int’ in declaration of ‘__mptr’
drivers/usb/otg/fsl_otg.c:450: warning: initialization from incompatible pointer type
drivers/usb/otg/fsl_otg.c:457: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c:465: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c:466: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c:478: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c:478: error: ‘OTG_STATE_UNDEFINED ’ undeclared (first use in this function)
drivers/usb/otg/fsl_otg.c: In function ‘
fsl_otg_set_peripheral’:
drivers/usb/otg/fsl_otg.c:494: warning: type defaults to ‘int’ in declaration of ‘__mptr’
drivers/usb/otg/fsl_otg.c:494: warning: initialization from incompatible pointer type
drivers/usb/otg/fsl_otg.c:504: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c:504: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c:531: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c:532: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c: In function ‘fsl_otg_set_power
’:
drivers/usb/otg/fsl_otg.c:552: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c:552: error: ‘
OTG_STATE_B_PERIPHERAL’ undeclared (first use in this
function)
drivers/usb/otg/fsl_otg.c: In function ‘fsl_otg_isr’:
drivers/usb/otg/fsl_otg.c:597: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c:603: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c:604: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c:605: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c:606: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c:607: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c: In function ‘fsl_otg_config’:
drivers/usb/otg/fsl_otg.c:689: warning: implicit declaration of function ‘otg_set_transceiver’
drivers/usb/otg/fsl_otg.c: In function ‘usb_otg_start’:
drivers/usb/otg/fsl_otg.c:702: warning: implicit declaration of function ‘otg_get_transceiver’
drivers/usb/otg/fsl_otg.c:702: warning: initialization makes pointer from integer without a cast
drivers/usb/otg/fsl_otg.c:710: warning: type defaults to ‘int’ in declaration of ‘__mptr’
drivers/usb/otg/fsl_otg.c:710: warning: initialization from incompatible pointer type
drivers/usb/otg/fsl_otg.c:714: error: dereferencing pointer to incomplete type
drivers/usb/otg/fsl_otg.c:714: error: ‘OTG_STATE_UNDEFINED ’ undeclared (first use in this function)
drivers/usb/otg/fsl_otg.c:729: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
drivers/usb/otg/fsl_otg.c:744: error: ‘OTG_STATE_A_IDLE’ 
undeclared (first use in this function)
drivers/usb/otg/fsl_otg.c: In function ‘otg_proc_read’:
drivers/usb/otg/fsl_otg.c:831: error: type of formal parameter 1 is incomplete
make[4]: *** [drivers/usb/otg/fsl_otg.o] エラー 1
make[3]: *** [drivers/usb/otg] エラー 2
make[2]: *** [drivers/usb] エラー 2
make[1]: *** [drivers] エラー 2
make[1]: ディレクトリ `/home/atmark/Desktop/kernel/arm/linux
-2.6.18-at8' から出ます
make: *** [linux] エラー 1

以上、宜しくお願い致します。


/------------------------------------------------------/
  株式会社エス・エフ・ティー 秋田開発センター
           橋本 佳己

     Mail: email@hidden
     Tel: 018-825-5530 Fax: 018-825-5531

    〒010-0001
    秋田県秋田市中通2丁目2番32号 住友生命秋田ビル7階
/------------------------------------------------------/
 

> -----Original Message-----
> From: email@hidden 
> [mailto:email@hidden] On Behalf 
> Of Yasushi SHOJI
> Sent: Thursday, August 28, 2008 2:46 PM
> To: Armadillo series general discussion list
> Subject: [Armadillo:03345] Re: [Armadillo-500]USB Gadgetのmakeエラーについて
> 
> At Thu, 28 Aug 2008 14:34:48 +0900,
> 橋本 佳己 wrote:
> > 
> > デフォルトの状態のカーネルへ[make menuconfig]
> > でUSB Gadgetの項目を以下のようにして追加し、
> 
> a500は、gadgetにもOTGにも対応していません。
> 
> > makeを実行すると、エラーが発生してしまいます。
> > 原因が判らないので、何方か教えて頂けないでしょうか?
> > 
> > drivers/usb/core/hub.c: In function ‘usb_new_device’:
> > drivers/usb/core/hub.c:1374: warning: unused variable ‘root ’
> > drivers/usb/core/hub.c:1411: error: invalid storage class 
> for function ‘__usb_suspend_device’
> 
> __usb_suspend_deviceの宣言を関数の外に出すと直ります。
> -- 
>           yashi
> _______________________________________________
> armadillo mailing list
> email@hidden
> http://lists.atmark-techno.com/mailman/listinfo/armadillo
> 





armadillo メーリングリストの案内