[Suzaku:01086] Re: デバイスドライバ

Tetsuya OHKAWA email@hidden
2007年 12月 6日 (木) 14:31:32 JST


大川です。

森戸 誠[MORITO Makoto] さんは書きました:
> 森戸と申します。
> 
>  SUZAKU-V SZ410のデバイスドライバをatmark-dist環境で作ろうとしています。
>  Linuxについては 素人です。
> 
>  手始めに linux-2.6.x/drivers/char/sid.cにあるドライバを使って
> ドライバーの作成を実施しました。
> 
>  クロス開発環境 atmark-dist-20071018です。
>  スターターズキットガイドLinux開発編v2.0.0の38ページのMakefileを
> 使ってコンパイルしました。厳密に言うと 38ページのMakefileには いく
> つかの誤りがあり、こちらで勝手に修正しました。もしかしたら、この修正
> に 誤りがあるかもしれません。ご指摘いただければありがたいです。
> 
> ===== 修正した Makefile  ======
> MODULES = sid.o
> ifdef $(KERNELRELEASE)       # 修正
> obj-m := $(MODULES)
> else
> ROOTDIR=/home/morito/atmark-dist-20071018     # 修正
> include $(ROOTDIR)/.config
> include $(ROOTDIR)/config.arch         # 修正
> MAKEARCH = $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) LINUXDIR =
> $(CONFIG_LINUXDIR) KERNELRELEASE = ${shell make -sC $(ROOTDIR)/$(LINUXDIR)
> kernelrelease}

上記、3行分が、1行で記述されています。
修正を戻して、確認していただけますか?

また、デバイスドライバを初めて作成されるのであれば、
スターターキットガイドに記載されているサンプルドライバから
挑戦されるのが宜しいかと思います。



> all: modules
> 
> modules:
> 	$(MAKEARCH) -C $(ROOTDIR)/$(LINUXDIR) M=${shell pwd} modules
> clean:
> 	-rm -f *.[oas] *.ko *.mod.c .*.d .*.tmp .*.cmd *.symvers
> 	-rm ?rf .tmp_versions
> endif
> ===== Makefile 終わり  ======
> 
> これを実行したところ とてつもない量のエラーメッセージが出ました。
> 対処方法がお判りの方 ご教授お願いいたします。
> 
> 
> 
> sid.c:99:28: error: asm/suzaku_sid.h: そのようなファイルやディレクトリはあり
> ません のような
> メッセージがあり インクルードのディレクトリ名が asm-ppcのような気もする
> が??
> 
> 
> 
> ===== ログ  ======
> make ARCH=ppc CROSS_COMPILE=powerpc-linux- -C
> /home/morito/atmark-dist-20071018/linux-2.6.x
> M=/mnt/hgfs/suzaku_win/meti2/410 modules
> make[1]: ディレクトリ `/home/morito/linux-2.6.18-at2' に入ります
>   Building modules, stage 2.
>   MODPOST
> make[1]: ディレクトリ `/home/morito/linux-2.6.18-at2' から出ます
> powerpc-linux-gcc     -c -o sid.o sid.c
> In file included from /usr/powerpc-linux-gnu/include/asm-generic/local.h:4,
>                  from /usr/powerpc-linux-gnu/include/asm/local.h:1,
>                  from /usr/powerpc-linux-gnu/include/linux/module.h:20,
>                  from sid.c:29:
> /usr/powerpc-linux-gnu/include/linux/percpu.h: In function
> ‘__alloc_percpu’:
> /usr/powerpc-linux-gnu/include/linux/percpu.h:44: error: ‘GFP_KERNEL’
> undeclared (first use in this function)
> /usr/powerpc-linux-gnu/include/linux/percpu.h:44: error: (Each undeclared
> identifier is reported only once
> /usr/powerpc-linux-gnu/include/linux/percpu.h:44: error: for each function
> it appears in.) In file included from
> /usr/powerpc-linux-gnu/include/asm-generic/local.h:5,
>                  from /usr/powerpc-linux-gnu/include/asm/local.h:1,
>                  from /usr/powerpc-linux-gnu/include/linux/module.h:20,
>                  from sid.c:29:
> /usr/powerpc-linux-gnu/include/linux/hardirq.h:55:2: error: #error
> PREEMPT_ACTIVE is too low!
> In file included from /usr/powerpc-linux-gnu/include/asm/local.h:1,
>                  from /usr/powerpc-linux-gnu/include/linux/module.h:20,
>                  from sid.c:29:
> /usr/powerpc-linux-gnu/include/asm-generic/local.h: At top level:
> /usr/powerpc-linux-gnu/include/asm-generic/local.h:24: error: expected
> specifier-qualifier-list before ‘atomic_long_t’
> In file included from sid.c:29:
> /usr/powerpc-linux-gnu/include/linux/module.h:49: error: field ‘attr’ has
> incomplete type
> /usr/powerpc-linux-gnu/include/linux/module.h:60: error: field ‘kobj’ has
> incomplete type
> /usr/powerpc-linux-gnu/include/linux/module.h:220: error: requested
> alignment is not a constant
> /usr/powerpc-linux-gnu/include/linux/module.h:240: error: field ‘grp’ has
> incomplete type
> /usr/powerpc-linux-gnu/include/linux/module.h:251: error: field ‘list’ has
> incomplete type
> /usr/powerpc-linux-gnu/include/linux/module.h:310: error: field ‘arch’ has
> incomplete type
> /usr/powerpc-linux-gnu/include/linux/module.h:320: error: ‘NR_CPUS’
> undeclared here (not in a function)
> /usr/powerpc-linux-gnu/include/linux/module.h:323: error: field
> ‘modules_which_use_me’ has incomplete type
> /usr/powerpc-linux-gnu/include/linux/module.h:334: error: expected
> specifier-qualifier-list before ‘Elf_Sym’
> In file included from sid.c:37:
> /usr/powerpc-linux-gnu/include/linux/ioport.h:18: error: expected
> specifier-qualifier-list before ‘resource_size_t’
> /usr/powerpc-linux-gnu/include/linux/ioport.h:102: error: expected
> declaration specifiers or ‘...’ before ‘resource_size_t’
> /usr/powerpc-linux-gnu/include/linux/ioport.h:102: error: expected
> declaration specifiers or ‘...’ before ‘resource_size_t’
> /usr/powerpc-linux-gnu/include/linux/ioport.h:103: error: expected
> declaration specifiers or ‘...’ before ‘resource_size_t’
> /usr/powerpc-linux-gnu/include/linux/ioport.h:103: error: expected
> declaration specifiers or ‘...’ before ‘resource_size_t’
> /usr/powerpc-linux-gnu/include/linux/ioport.h:105: error: expected
> declaration specifiers or ‘...’ before ‘resource_size_t’
> /usr/powerpc-linux-gnu/include/linux/ioport.h:105: error: expected
> declaration specifiers or ‘...’ before ‘resource_size_t’
> /usr/powerpc-linux-gnu/include/linux/ioport.h:107: error: expected
> declaration specifiers or ‘...’ before ‘resource_size_t’
> /usr/powerpc-linux-gnu/include/linux/ioport.h:108: error: expected
> declaration specifiers or ‘...’ before ‘resource_size_t’
> /usr/powerpc-linux-gnu/include/linux/ioport.h:119: error: expected
> declaration specifiers or ‘...’ before ‘resource_size_t’
> /usr/powerpc-linux-gnu/include/linux/ioport.h:120: error: expected
> declaration specifiers or ‘...’ before ‘resource_size_t’
> /usr/powerpc-linux-gnu/include/linux/ioport.h:127: error: expected
> declaration specifiers or ‘...’ before ‘resource_size_t’
> /usr/powerpc-linux-gnu/include/linux/ioport.h:127: error: expected
> declaration specifiers or ‘...’ before ‘resource_size_t’
> /usr/powerpc-linux-gnu/include/linux/ioport.h:128: error: expected
> declaration specifiers or ‘...’ before ‘resource_size_t’
> /usr/powerpc-linux-gnu/include/linux/ioport.h:129: error: expected
> declaration specifiers or ‘...’ before ‘resource_size_t’
> /usr/powerpc-linux-gnu/include/linux/ioport.h:131: error: expected ‘)’
> before ‘s’
> In file included from /usr/powerpc-linux-gnu/include/linux/cpumask.h:86,
>                  from /usr/powerpc-linux-gnu/include/linux/interrupt.h:9,
>                  from sid.c:38:
> /usr/powerpc-linux-gnu/include/linux/bitmap.h: In function ‘bitmap_zero’:
> /usr/powerpc-linux-gnu/include/linux/bitmap.h:131: error: ‘BITS_PER_LONG’
> undeclared (first use in this function)
> /usr/powerpc-linux-gnu/include/linux/bitmap.h: In function ‘bitmap_fill’:
> /usr/powerpc-linux-gnu/include/linux/bitmap.h:146: error: ‘BITS_PER_LONG’
> undeclared (first use in this function)
> /usr/powerpc-linux-gnu/include/linux/bitmap.h: In function ‘bitmap_copy’:
> /usr/powerpc-linux-gnu/include/linux/bitmap.h:152: error: ‘BITS_PER_LONG’
> undeclared (first use in this function)
> /usr/powerpc-linux-gnu/include/linux/bitmap.h: In function ‘bitmap_and’:
> /usr/powerpc-linux-gnu/include/linux/bitmap.h:163: error: ‘BITS_PER_LONG’
> undeclared (first use in this function)
> /usr/powerpc-linux-gnu/include/linux/bitmap.h: In function ‘bitmap_or’:
> /usr/powerpc-linux-gnu/include/linux/bitmap.h:172: error: ‘BITS_PER_LONG’
> undeclared (first use in this function)
> /usr/powerpc-linux-gnu/include/linux/bitmap.h: In function ‘bitmap_xor’:
> /usr/powerpc-linux-gnu/include/linux/bitmap.h:181: error: ‘BITS_PER_LONG’
> undeclared (first use in this function)
> /usr/powerpc-linux-gnu/include/linux/bitmap.h: In function
> ‘bitmap_andnot’:
> /usr/powerpc-linux-gnu/include/linux/bitmap.h:190: error: ‘BITS_PER_LONG’
> undeclared (first use in this function)
> /usr/powerpc-linux-gnu/include/linux/bitmap.h: In function
> ‘bitmap_complement’:
> /usr/powerpc-linux-gnu/include/linux/bitmap.h:199: error: ‘BITS_PER_LONG’
> undeclared (first use in this function)
> /usr/powerpc-linux-gnu/include/linux/bitmap.h: In function ‘bitmap_equal’:
> /usr/powerpc-linux-gnu/include/linux/bitmap.h:208: error: ‘BITS_PER_LONG’
> undeclared (first use in this function)
> /usr/powerpc-linux-gnu/include/linux/bitmap.h: In function
> ‘bitmap_intersects’:
> /usr/powerpc-linux-gnu/include/linux/bitmap.h:217: error: ‘BITS_PER_LONG’
> undeclared (first use in this function)
> /usr/powerpc-linux-gnu/include/linux/bitmap.h: In function
> ‘bitmap_subset’:
> /usr/powerpc-linux-gnu/include/linux/bitmap.h:226: error: ‘BITS_PER_LONG’
> undeclared (first use in this function)
> /usr/powerpc-linux-gnu/include/linux/bitmap.h: In function ‘bitmap_empty’:
> /usr/powerpc-linux-gnu/include/linux/bitmap.h:234: error: ‘BITS_PER_LONG’
> undeclared (first use in this function)
> /usr/powerpc-linux-gnu/include/linux/bitmap.h: In function ‘bitmap_full’:
> /usr/powerpc-linux-gnu/include/linux/bitmap.h:242: error: ‘BITS_PER_LONG’
> undeclared (first use in this function)
> /usr/powerpc-linux-gnu/include/linux/bitmap.h: In function
> ‘bitmap_weight’:
> /usr/powerpc-linux-gnu/include/linux/bitmap.h:250: error: ‘BITS_PER_LONG’
> undeclared (first use in this function)
> /usr/powerpc-linux-gnu/include/linux/bitmap.h: In function
> ‘bitmap_shift_right’:
> /usr/powerpc-linux-gnu/include/linux/bitmap.h:258: error: ‘BITS_PER_LONG’
> undeclared (first use in this function)
> /usr/powerpc-linux-gnu/include/linux/bitmap.h: In function
> ‘bitmap_shift_left’:
> /usr/powerpc-linux-gnu/include/linux/bitmap.h:267: error: ‘BITS_PER_LONG’
> undeclared (first use in this function) In file included from
> /usr/powerpc-linux-gnu/include/linux/interrupt.h:9,
>                  from sid.c:38:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: At top level:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:88: error: expected
> specifier-qualifier-list before ‘DECLARE_BITMAP’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function ‘__cpu_set’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:94: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function ‘__cpu_clear’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:100: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function
> ‘__cpus_setall’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:106: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function
> ‘__cpus_clear’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:112: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function
> ‘__cpu_test_and_set’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:121: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function ‘__cpus_and’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:128: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:128: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:128: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function ‘__cpus_or’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:135: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:135: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:135: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function ‘__cpus_xor’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:142: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:142: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:142: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function
> ‘__cpus_andnot’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:150: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:150: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:150: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function
> ‘__cpus_complement’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:157: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:157: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function
> ‘__cpus_equal’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:164: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:164: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function
> ‘__cpus_intersects’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:171: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:171: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function
> ‘__cpus_subset’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:178: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:178: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function
> ‘__cpus_empty’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:184: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function ‘__cpus_full’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:190: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function
> ‘__cpus_weight’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:196: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function
> ‘__cpus_shift_right’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:204: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:204: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function
> ‘__cpus_shift_left’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:212: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:212: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function
> ‘__cpumask_scnprintf’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:273: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function
> ‘__cpumask_parse’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:281: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function
> ‘__cpulist_scnprintf’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:289: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function
> ‘__cpulist_parse’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:295: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function ‘__cpu_remap’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:303: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:303: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h: In function
> ‘__cpus_remap’:
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:311: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:311: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:311: error: ‘cpumask_t’ has
> no member named ‘bits’
> /usr/powerpc-linux-gnu/include/linux/cpumask.h:311: error: ‘cpumask_t’ has
> no member named ‘bits’
> In file included from /usr/powerpc-linux-gnu/include/linux/klist.h:16,
>                  from /usr/powerpc-linux-gnu/include/linux/device.h:16,
>                  from
> /usr/powerpc-linux-gnu/include/linux/platform_device.h:14,
>                  from sid.c:41:
> /usr/powerpc-linux-gnu/include/linux/completion.h: At top level:
> /usr/powerpc-linux-gnu/include/linux/completion.h:15: error: expected
> specifier-qualifier-list before ‘wait_queue_head_t’
> /usr/powerpc-linux-gnu/include/linux/completion.h: In function
> ‘init_completion’:
> /usr/powerpc-linux-gnu/include/linux/completion.h:42: error: ‘struct
> completion’ has no member named ‘wait’
> In file included from /usr/powerpc-linux-gnu/include/linux/device.h:16,
>                  from
> /usr/powerpc-linux-gnu/include/linux/platform_device.h:14,
>                  from sid.c:41:
> /usr/powerpc-linux-gnu/include/linux/klist.h: At top level:
> /usr/powerpc-linux-gnu/include/linux/klist.h:23: error: field ‘k_list’ has
> incomplete type
> /usr/powerpc-linux-gnu/include/linux/klist.h:34: error: field ‘n_node’ has
> incomplete type
> /usr/powerpc-linux-gnu/include/linux/klist.h:35: error: field ‘n_ref’ has
> incomplete type In file included from
> /usr/powerpc-linux-gnu/include/linux/platform_device.h:14,
>                  from sid.c:41:
> /usr/powerpc-linux-gnu/include/linux/device.h:38: error: field ‘subsys’
> has incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:39: error: field ‘drivers’
> has incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:40: error: field ‘devices’
> has incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:54: error: expected
> declaration specifiers or ‘...’ before ‘pm_message_t’
> /usr/powerpc-linux-gnu/include/linux/device.h:77: error: field ‘attr’ has
> incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:93: error: field ‘kobj’ has
> incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:102: error: expected
> declaration specifiers or ‘...’ before ‘pm_message_t’
> /usr/powerpc-linux-gnu/include/linux/device.h:118: error: field ‘attr’ has
> incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:143: error: field ‘subsys’
> has incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:144: error: field ‘children’
> has incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:145: error: field ‘devices’
> has incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:146: error: field
> ‘interfaces’ has incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:147: error: field ‘sem’ has
> incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:164: error: field ‘attr’ has
> incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:176: error: field ‘attr’ has
> incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:214: error: field ‘node’ has
> incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:216: error: field ‘kobj’ has
> incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:229: error: ‘KOBJ_NAME_LEN’
> undeclared here (not in a function)
> /usr/powerpc-linux-gnu/include/linux/device.h:264: error: field ‘node’ has
> incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:287: error: field ‘attr’ has
> incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:306: error: field ‘kobj’ has
> incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:311: error: field ‘sem’ has
> incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:323: error: field ‘power’
> has incomplete type
> /usr/powerpc-linux-gnu/include/linux/device.h:325: error: expected
> specifier-qualifier-list before ‘u64’
> In file included from sid.c:41:
> /usr/powerpc-linux-gnu/include/linux/platform_device.h:18: error: expected
> specifier-qualifier-list before ‘u32’
> /usr/powerpc-linux-gnu/include/linux/platform_device.h:51: error: expected
> declaration specifiers or ‘...’ before ‘pm_message_t’
> In file included from sid.c:43:
> /usr/powerpc-linux-gnu/include/linux/dmapool.h:22: error: expected
> declaration specifiers or ‘...’ before ‘gfp_t’
> /usr/powerpc-linux-gnu/include/linux/dmapool.h:23: error: expected
> declaration specifiers or ‘...’ before ‘dma_addr_t’
> /usr/powerpc-linux-gnu/include/linux/dmapool.h:25: error: expected
> declaration specifiers or ‘...’ before ‘dma_addr_t’
> In file included from sid.c:45:
> /usr/powerpc-linux-gnu/include/linux/sysfs.h:70: error: field ‘s_sibling’
> has incomplete type
> /usr/powerpc-linux-gnu/include/linux/sysfs.h:71: error: field ‘s_children’
> has incomplete type
> sid.c:99:28: error: asm/suzaku_sid.h: そのようなファイルやディレクトリはあり
> ません
> sid.c:153: error: ‘KBUILD_MODNAME’ undeclared here (not in a function)
> sid.c:153: error: expected ‘,’ or ‘;’ before string constant
> sid.c:158: error: field ‘list’ has incomplete type
> sid.c:159: error: expected specifier-qualifier-list before ‘dma_addr_t’
> sid.c: In function ‘get_block_len’:
> sid.c:168: error: ‘struct dma_block’ has no member named ‘len’
> sid.c:168: error: ‘struct dma_block’ has no member named ‘pos’
> sid.c: In function ‘is_block_empty’:
> sid.c:173: error: ‘struct dma_block’ has no member named ‘len’
> sid.c:173: error: ‘struct dma_block’ has no member named ‘pos’
> sid.c: At top level:
> sid.c:179: error: field ‘cdev’ has incomplete type
> sid.c:186: error: field ‘dma_blocks’ has incomplete type
> sid.c:187: error: field ‘read_blocks’ has incomplete type
> sid.c:204: error: expected specifier-qualifier-list before ‘u32’
> sid.c:219: error: expected declaration specifiers or ‘...’ before ‘u32’
> sid.c:219: error: expected declaration specifiers or ‘...’ before ‘u32’
> sid.c: In function ‘_write_reg’:
> sid.c:221: error: ‘val’ undeclared (first use in this function)
> sid.c:221: error: ‘offset’ undeclared (first use in this function)
> sid.c:221: error: invalid operands to binary +
> sid.c: At top level:
> sid.c:228: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘_read_reg’
> sid.c:233: error: expected declaration specifiers or ‘...’ before
> ‘dma_addr_t’
> sid.c: In function ‘set_dma_address’:
> sid.c:235: error: ‘addr’ undeclared (first use in this function)
> sid.c:235: error: too many arguments to function ‘_write_reg’
> sid.c: At top level:
> sid.c:238: error: expected declaration specifiers or ‘...’ before ‘u32’
> sid.c: In function ‘set_dma_length’:
> sid.c:240: error: ‘count’ undeclared (first use in this function)
> sid.c:240: error: invalid operands to binary *
> sid.c:240: error: invalid operands to binary *
> sid.c:240: warning: assignment makes integer from pointer without a cast
> sid.c:241: error: too many arguments to function ‘_write_reg’
> sid.c: In function ‘dma_start’:
> sid.c:251: error: ‘u32’ undeclared (first use in this function)
> sid.c:251: error: expected ‘;’ before ‘val’
> sid.c:252: error: ‘val’ undeclared (first use in this function)
> sid.c:252: error: invalid operands to binary |
> sid.c:252: error: too many arguments to function ‘_write_reg’
> sid.c: In function ‘set_sample_rate’:
> sid.c:257: error: ‘struct sid’ has no member named ‘sample_rate’
> sid.c:257: warning: comparison between pointer and integer
> sid.c:263: error: ‘KERN_WARNING’ undeclared (first use in this function)
> sid.c:263: error: expected ‘)’ before string constant
> sid.c:269: error: ‘struct sid’ has no member named ‘reg_sample_rate’
> sid.c:270: error: ‘struct sid’ has no member named ‘sample_rate’
> sid.c: At top level:
> sid.c:275: error: expected declaration specifiers or ‘...’ before
> ‘gfp_t’
> sid.c: In function ‘alloc_dma_block’:
> sid.c:277: error: ‘dma_addr_t’ undeclared (first use in this function)
> sid.c:277: error: expected ‘;’ before ‘handle’
> sid.c:280: error: ‘flags’ undeclared (first use in this function)
> sid.c:280: error: ‘handle’ undeclared (first use in this function)
> sid.c:280: error: too many arguments to function ‘dma_pool_alloc’
> sid.c:282: error: ‘struct dma_block’ has no member named ‘handle’
> sid.c:283: error: ‘struct dma_block’ has no member named ‘len’
> sid.c:284: error: ‘struct dma_block’ has no member named ‘pos’
> sid.c: In function ‘__free_dma_block’:
> sid.c:306: error: ‘struct dma_block’ has no member named ‘handle’
> sid.c:306: error: too many arguments to function ‘dma_pool_free’
> sid.c: At top level:
> sid.c:335: warning: ‘struct file’ declared inside parameter list
> sid.c: In function ‘sid_read’:
> sid.c:337: error: dereferencing pointer to incomplete type
> sid.c:337: error: request for member ‘private_data’ in something not a
> structure or union
> sid.c:337: warning: initialization from incompatible pointer type
> sid.c:367: error: ‘list’ undeclared (first use in this function)
> sid.c:367: error: expected ‘;’ before ‘{’ token
> sid.c:374: error: expected ‘;’ before ‘{’ token
> sid.c: In function ‘hw_reset’:
> sid.c:427: error: too many arguments to function ‘_write_reg’
> sid.c:430: error: too many arguments to function ‘_write_reg’
> sid.c: In function ‘cleanup_dma_mem’:
> sid.c:446: error: ‘list’ undeclared (first use in this function)
> sid.c:446: error: expected ‘;’ before ‘{’ token
> sid.c: In function ‘do_reset’:
> sid.c:489: error: ‘struct sid’ has no member named ‘sample_rate’
> sid.c:489: error: ‘PAGE_SIZE’ undeclared (first use in this function)
> sid.c:489: error: invalid operands to binary /
> sid.c:489: error: too many arguments to function ‘set_dma_length’
> sid.c:493: error: ‘struct sid’ has no member named ‘sample_rate’
> sid.c:493: error: invalid operands to binary /
> sid.c:513: error: ‘GFP_ATOMIC’ undeclared (first use in this function)
> sid.c:513: error: ‘__GFP_WAIT’ undeclared (first use in this function)
> sid.c:513: error: invalid operands to binary |
> sid.c:513: error: too many arguments to function ‘alloc_dma_block’
> sid.c:514: error: invalid operands to binary |
> sid.c:514: error: too many arguments to function ‘alloc_dma_block’
> sid.c:525: error: ‘struct dma_block’ has no member named ‘handle’
> sid.c:525: error: too many arguments to function ‘set_dma_address’
> sid.c:528: error: ‘struct sid’ has no member named ‘reg_sample_rate’
> sid.c:528: error: too many arguments to function ‘_write_reg’
> sid.c:529: error: too many arguments to function ‘_write_reg’
> sid.c:530: error: too many arguments to function ‘_write_reg’
> sid.c: At top level:
> sid.c:544: warning: ‘struct file’ declared inside parameter list
> sid.c:544: warning: ‘struct inode’ declared inside parameter list
> sid.c: In function ‘sid_ioctl’:
> sid.c:546: error: dereferencing pointer to incomplete type
> sid.c:546: error: request for member ‘private_data’ in something not a
> structure or union
> sid.c:546: warning: initialization from incompatible pointer type
> sid.c:547: error: ‘struct sid’ has no member named ‘sample_rate’
> sid.c:547: warning: initialization makes integer from pointer without a cast
> sid.c:551: error: ‘SID_IOC_MAGIC’ undeclared (first use in this function)
> sid.c:551: warning: comparison between pointer and integer
> sid.c:553: error: ‘SID_IOC_MAXNR’ undeclared (first use in this function)
> sid.c:553: warning: comparison between pointer and integer
> sid.c:557: error: ‘SID_IOC_GET_CHANNELS’ undeclared (first use in this
> function)
> sid.c:561: error: ‘SID_IOC_GET_RESOLUTION’ undeclared (first use in this
> function)
> sid.c:565: error: ‘SID_IOC_SET_FREQ’ undeclared (first use in this
> function)
> sid.c:569: error: ‘SID_IOC_RESET’ undeclared (first use in this function)
> sid.c: In function ‘sid_intr’:
> sid.c:586: error: ‘u32’ undeclared (first use in this function)
> sid.c:586: error: expected ‘;’ before ‘status’
> sid.c:588: error: ‘status’ undeclared (first use in this function)
> sid.c:594: error: invalid operands to binary &
> sid.c:612: error: ‘GFP_ATOMIC’ undeclared (first use in this function)
> sid.c:612: error: too many arguments to function ‘alloc_dma_block’
> sid.c:620: error: too many arguments to function ‘_write_reg’
> sid.c:621: error: too many arguments to function ‘_write_reg’
> sid.c:623: error: ‘struct dma_block’ has no member named ‘handle’
> sid.c:623: error: too many arguments to function ‘set_dma_address’
> sid.c:629: error: too many arguments to function ‘alloc_dma_block’
> sid.c:641: error: ‘KERN_ERR’ undeclared (first use in this function)
> 
> 
> ====中略  =====
> sid.c:872: error: expected ‘)’ before string constant
> sid.c:880: error: expected ‘)’ before string constant
> sid.c:885: error: ‘tmp’ undeclared (first use in this function)
> sid.c:886: error: ‘board_id’ undeclared (first use in this function)
> sid.c:886: error: invalid operands to binary >>
> sid.c:886: error: invalid operands to binary &
> sid.c:887: error: ‘board_version’ undeclared (first use in this function)
> sid.c:887: error: invalid operands to binary &
> sid.c:904: error: ‘struct resource’ has no member named ‘start’
> sid.c:904: warning: assignment makes integer from pointer without a cast
> sid.c:906: error: expected ‘)’ before string constant
> sid.c:918: error: expected ‘)’ before string constant
> sid.c:923: error: ‘SID_MAJOR’ undeclared (first use in this function)
> sid.c:926: error: expected ‘)’ before string constant
> sid.c:931: error: request for member ‘owner’ in something not a structure
> or union
> sid.c:935: error: expected ‘)’ before string constant
> sid.c:964: error: too many arguments to function ‘__release_region’
> sid.c: In function ‘sid_remove’:
> sid.c:993: error: too many arguments to function ‘__release_region’
> make: *** [sid.o] エラー 1
> 
> _______________________________________________
> suzaku mailing list
> email@hidden
> http://lists.atmark-techno.com/mailman/listinfo/suzaku




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