도와주세요!!
글 수 15,339
2009.01.16 14:24:51 (*.173.191.143)
20583
include/linux/i2c.h:91: error: parse error before "u8"
include/linux/i2c.h:92: warning: type defaults to `int' in declaration of `i2c_smbus_write_block_data'
include/linux/i2c.h:92: warning: function declaration isn't a prototype
include/linux/i2c.h:92: warning: data definition has no type or storage class
include/linux/i2c.h:94: error: parse error before "i2c_smbus_read_i2c_block_data"
include/linux/i2c.h:95: error: parse error before "u8"
include/linux/i2c.h:95: warning: type defaults to `int' in declaration of `i2c_smbus_read_i2c_block_data'
include/linux/i2c.h:95: warning: function declaration isn't a prototype
include/linux/i2c.h:95: warning: data definition has no type or storage class
include/linux/i2c.h:96: error: parse error before "i2c_smbus_write_i2c_block_data"
include/linux/i2c.h:97: error: parse error before "u8"
include/linux/i2c.h:98: warning: type defaults to `int' in declaration of `i2c_smbus_write_i2c_block_data'
include/linux/i2c.h:98: warning: function declaration isn't a prototype
include/linux/i2c.h:98: warning: data definition has no type or storage class
include/linux/i2c.h:160: error: field `dev' has incomplete type
include/linux/i2c.h: In function `kobj_to_i2c_client':
include/linux/i2c.h:169: warning: type defaults to `int' in declaration of `__mptr'
include/linux/i2c.h:169: error: dereferencing pointer to incomplete type
include/linux/i2c.h:169: warning: type defaults to `int' in declaration of `__mptr'
include/linux/i2c.h:169: warning: initialization from incompatible pointer type
include/linux/i2c.h:169: error: dereferencing pointer to incomplete type
include/linux/i2c.h: At top level:
include/linux/i2c.h:197: error: parse error before "u16"
include/linux/i2c.h:199: warning: function declaration isn't a prototype
include/linux/i2c.h:205: error: parse error before "u32"
include/linux/i2c.h:205: warning: no semicolon at end of struct or union
include/linux/i2c.h:224: error: parse error before "u8"
include/linux/i2c.h:224: warning: no semicolon at end of struct or union
include/linux/i2c.h:230: error: conflicting types for 'dev'
include/linux/device.h:268: error: previous declaration of 'dev' was here
include/linux/i2c.h:230: error: conflicting types for 'dev'
include/linux/device.h:268: error: previous declaration of 'dev' was here
include/linux/i2c.h:236: error: conflicting types for 'name'
include/linux/ioport.h:20: error: previous declaration of 'name' was here
include/linux/i2c.h:239: error: parse error before '}' token
include/linux/i2c.h: In function `i2c_get_adapdata':
include/linux/i2c.h:245: error: dereferencing pointer to incomplete type
include/linux/i2c.h: In function `i2c_set_adapdata':
include/linux/i2c.h:250: error: dereferencing pointer to incomplete type
include/linux/i2c.h: At top level:
include/linux/i2c.h:338: error: parse error before "i2c_get_functionality"
include/linux/i2c.h:339: warning: return type defaults to `int'
include/linux/i2c.h: In function `i2c_get_functionality':
include/linux/i2c.h:340: error: dereferencing pointer to incomplete type
include/linux/i2c.h: At top level:
include/linux/i2c.h:344: error: parse error before "u32"
include/linux/i2c.h:345: warning: function declaration isn't a prototype
include/linux/i2c.h: In function `i2c_check_functionality':
include/linux/i2c.h:346: error: `adap' undeclared (first use in this function)
include/linux/i2c.h:346: error: invalid operands to binary &
include/linux/i2c.h: In function `i2c_adapter_id':
include/linux/i2c.h:352: error: dereferencing pointer to incomplete type
include/linux/i2c.h: At top level:
include/linux/i2c.h:360: error: parse error before "__u16"
include/linux/i2c.h:360: warning: no semicolon at end of struct or union
include/linux/i2c.h:361: warning: type defaults to `int' in declaration of `flags'
include/linux/i2c.h:361: error: conflicting types for 'flags'
include/linux/ioport.h:21: error: previous declaration of 'flags' was here
include/linux/i2c.h:361: error: conflicting types for 'flags'
include/linux/ioport.h:21: error: previous declaration of 'flags' was here
include/linux/i2c.h:361: warning: data definition has no type or storage class
include/linux/i2c.h:368: error: parse error before "len"
include/linux/i2c.h:368: warning: type defaults to `int' in declaration of `len'
include/linux/i2c.h:368: warning: data definition has no type or storage class
include/linux/i2c.h:369: error: parse error before '*' token
include/linux/i2c.h:369: warning: type defaults to `int' in declaration of `buf'
include/linux/i2c.h:369: warning: data definition has no type or storage class
include/linux/i2c.h:370: error: parse error before '}' token
include/linux/i2c.h:420: error: parse error before "__u8"
include/linux/i2c.h:420: warning: no semicolon at end of struct or union
include/linux/i2c.h:421: warning: type defaults to `int' in declaration of `word'
include/linux/i2c.h:421: warning: data definition has no type or storage class
include/linux/i2c.h:422: error: parse error before "block"
include/linux/i2c.h:422: warning: type defaults to `int' in declaration of `block'
include/linux/i2c.h:422: warning: data definition has no type or storage class
include/linux/i2c.h:424: error: parse error before '}' token
In file included from /home/qudrhks/down/dev-gpio/dev_gpio.c:43:
include/linux/i2c-dev.h:33: error: parse error before "__u8"
include/linux/i2c-dev.h:33: warning: no semicolon at end of struct or union
include/linux/i2c-dev.h:34: warning: type defaults to `int' in declaration of `command'
include/linux/i2c-dev.h:34: warning: data definition has no type or storage class
include/linux/i2c-dev.h:35: error: parse error before "size"
include/linux/i2c-dev.h:35: warning: type defaults to `int' in declaration of `size'
include/linux/i2c-dev.h:35: warning: data definition has no type or storage class
include/linux/i2c-dev.h:36: error: conflicting types for 'data'
include/linux/proc_fs.h:63: error: previous declaration of 'data' was here
include/linux/i2c-dev.h:36: error: conflicting types for 'data'
include/linux/interrupt.h:294: error: previous declaration of 'data' was here
include/linux/i2c-dev.h:37: error: parse error before '}' token
include/linux/i2c-dev.h:42: error: parse error before "__u32"
include/linux/i2c-dev.h:42: warning: no semicolon at end of struct or union
/home/qudrhks/down/dev-gpio/dev_gpio.c: In function `hw_gpio_init':
/home/qudrhks/down/dev-gpio/dev_gpio.c:68: warning: implicit declaration of function `gpio_direction_input'
/home/qudrhks/down/dev-gpio/dev_gpio.c:68: error: `S3C2410_GPG5' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:69: warning: implicit declaration of function `set_irq_type'
/home/qudrhks/down/dev-gpio/dev_gpio.c:69: error: `IRQ_EINT13' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:69: error: `IRQT_RISING' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:70: warning: implicit declaration of function `s3c2410_gpio_pullup'
/home/qudrhks/down/dev-gpio/dev_gpio.c:70: error: `S3C2410_GPE11' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:73: error: `S3C2410_GPG11' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:74: error: `S3C2410_GPE5' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:78: warning: implicit declaration of function `gpio_direction_output'
/home/qudrhks/down/dev-gpio/dev_gpio.c:78: error: `S3C2410_GPF0' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:79: error: `S3C2410_GPF1' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:80: error: `S3C2410_GPF2' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:81: error: `S3C2410_GPF3' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:82: error: `S3C2410_GPF4' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:83: error: `S3C2410_GPF5' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:84: error: `S3C2410_GPF6' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:85: error: `S3C2410_GPF7' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c: In function `gpio_btn_interrupt':
/home/qudrhks/down/dev-gpio/dev_gpio.c:96: warning: implicit declaration of function `s3c2410_gpio_setpin'
/home/qudrhks/down/dev-gpio/dev_gpio.c:96: error: `S3C2410_GPF4' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c: At top level:
/home/qudrhks/down/dev-gpio/dev_gpio.c:105: error: parse error before "gpio_read"
/home/qudrhks/down/dev-gpio/dev_gpio.c:105: error: parse error before "size_t"
/home/qudrhks/down/dev-gpio/dev_gpio.c:106: warning: return type defaults to `int'
/home/qudrhks/down/dev-gpio/dev_gpio.c:106: warning: function declaration isn't a prototype
/home/qudrhks/down/dev-gpio/dev_gpio.c: In function `gpio_read':
/home/qudrhks/down/dev-gpio/dev_gpio.c:114: warning: implicit declaration of function `gpio_get_value'
/home/qudrhks/down/dev-gpio/dev_gpio.c:114: error: `S3C2410_GPG11' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:124: warning: implicit declaration of function `put_user'
/home/qudrhks/down/dev-gpio/dev_gpio.c: In function `set_gpio_f':
/home/qudrhks/down/dev-gpio/dev_gpio.c:138: warning: implicit declaration of function `gpio_set_value'
/home/qudrhks/down/dev-gpio/dev_gpio.c:138: error: `S3C2410_GPF0' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:139: error: `S3C2410_GPF1' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:140: error: `S3C2410_GPF2' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:141: error: `S3C2410_GPF3' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:142: error: `S3C2410_GPF4' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:143: error: `S3C2410_GPF5' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:144: error: `S3C2410_GPF6' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:145: error: `S3C2410_GPF7' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c: In function `gpio_ioctl':
/home/qudrhks/down/dev-gpio/dev_gpio.c:157: warning: implicit declaration of function `_IOC_TYPE'
/home/qudrhks/down/dev-gpio/dev_gpio.c:157: error: `EINVAL' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:158: warning: implicit declaration of function `_IOC_NR'
/home/qudrhks/down/dev-gpio/dev_gpio.c:162: warning: implicit declaration of function `_IOW'
/home/qudrhks/down/dev-gpio/dev_gpio.c:162: error: parse error before "int"
/home/qudrhks/down/dev-gpio/dev_gpio.c:163: error: parse error before "int"
/home/qudrhks/down/dev-gpio/dev_gpio.c: At top level:
/home/qudrhks/down/dev-gpio/dev_gpio.c:195: error: variable `gpio_fops' has initializer but incomplete type
/home/qudrhks/down/dev-gpio/dev_gpio.c:197: error: unknown field `open' specified in initializer
/home/qudrhks/down/dev-gpio/dev_gpio.c:197: warning: excess elements in struct initializer
/home/qudrhks/down/dev-gpio/dev_gpio.c:197: warning: (near initialization for `gpio_fops')
/home/qudrhks/down/dev-gpio/dev_gpio.c:198: error: unknown field `release' specified in initializer
/home/qudrhks/down/dev-gpio/dev_gpio.c:198: warning: excess elements in struct initializer
/home/qudrhks/down/dev-gpio/dev_gpio.c:198: warning: (near initialization for `gpio_fops')
/home/qudrhks/down/dev-gpio/dev_gpio.c:199: error: unknown field `read' specified in initializer
/home/qudrhks/down/dev-gpio/dev_gpio.c:199: warning: excess elements in struct initializer
/home/qudrhks/down/dev-gpio/dev_gpio.c:199: warning: (near initialization for `gpio_fops')
/home/qudrhks/down/dev-gpio/dev_gpio.c:200: error: unknown field `ioctl' specified in initializer
/home/qudrhks/down/dev-gpio/dev_gpio.c:200: warning: excess elements in struct initializer
/home/qudrhks/down/dev-gpio/dev_gpio.c:200: warning: (near initialization for `gpio_fops')
/home/qudrhks/down/dev-gpio/dev_gpio.c: In function `gpio_init':
/home/qudrhks/down/dev-gpio/dev_gpio.c:219: error: `EBUSY' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:226: error: `IRQ_EINT13' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:226: warning: passing arg 2 of `request_irq' from incompatible pointer type
/home/qudrhks/down/dev-gpio/dev_gpio.c: In function `gpio_exit':
/home/qudrhks/down/dev-gpio/dev_gpio.c:248: error: `IRQ_EINT13' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c: At top level:
include/linux/elf.h:367: warning: array '_DYNAMIC' assumed to have one element
include/linux/stat.h:68: error: storage size of `atime' isn't known
include/linux/stat.h:69: error: storage size of `mtime' isn't known
include/linux/stat.h:70: error: storage size of `ctime' isn't known
include/linux/fs.h:344: error: storage size of `ia_atime' isn't known
include/linux/fs.h:345: error: storage size of `ia_mtime' isn't known
include/linux/fs.h:346: error: storage size of `ia_ctime' isn't known
include/linux/quota.h:227: error: storage size of `dq_dqb' isn't known
include/linux/fs.h:462: error: storage size of `bd_mutex' isn't known
include/linux/fs.h:463: error: storage size of `bd_mount_sem' isn't known
include/linux/fs.h:544: error: storage size of `i_atime' isn't known
include/linux/fs.h:545: error: storage size of `i_mtime' isn't known
include/linux/fs.h:546: error: storage size of `i_ctime' isn't known
include/linux/fs.h:552: error: storage size of `i_mutex' isn't known
include/linux/fs.h:553: error: storage size of `i_alloc_sem' isn't known
include/linux/fs.h:726: error: storage size of `f_owner' isn't known
include/linux/fs.h:917: error: storage size of `s_umount' isn't known
include/linux/fs.h:918: error: storage size of `s_lock' isn't known
include/linux/fs.h:949: error: storage size of `s_vfs_rename_mutex' isn't known
include/linux/aio.h:115: error: storage size of `ki_inline_vec' isn't known
include/linux/sched.h:326: error: storage size of `mmap_sem' isn't known
include/linux/sched.h:380: error: storage size of `action' isn't known
include/linux/sched.h:409: error: storage size of `shared_pending' isn't known
include/linux/sched.h:429: error: storage size of `real_timer' isn't known
include/linux/sched.h:478: error: storage size of `rlim' isn't known
include/linux/sched.h:887: error: storage size of `start_time' isn't known
include/linux/sched.h:928: error: storage size of `thread' isn't known
include/linux/sched.h:941: error: storage size of `pending' isn't known
include/linux/device.h:267: error: storage size of `uevent_attr' isn't known
include/linux/device.h:435: error: storage size of `archdata' isn't known
include/linux/mod_devicetable.h:298: error: storage size of `evbit' isn't known
include/linux/mod_devicetable.h:299: error: storage size of `keybit' isn't known
include/linux/mod_devicetable.h:300: error: storage size of `relbit' isn't known
include/linux/mod_devicetable.h:301: error: storage size of `absbit' isn't known
include/linux/mod_devicetable.h:302: error: storage size of `mscbit' isn't known
include/linux/mod_devicetable.h:303: error: storage size of `ledbit' isn't known
include/linux/mod_devicetable.h:304: error: storage size of `sndbit' isn't known
include/linux/mod_devicetable.h:305: error: storage size of `ffbit' isn't known
include/linux/mod_devicetable.h:306: error: storage size of `swbit' isn't known
include/linux/i2c.h:225: error: storage size of `bus_lock' isn't known
include/linux/i2c.h:226: error: storage size of `clist_lock' isn't known
include/linux/i2c.h:230: error: storage size of `dev' isn't known
include/linux/i2c.h:231: error: storage size of `class_dev' isn't known
/home/qudrhks/down/dev-gpio/dev_gpio.c:195: error: storage size of `gpio_fops' isn't known
/home/qudrhks/down/dev-gpio/dev_gpio.c:42: fatal error: error writing to /tmp/ccsMhskb.s: 장치에 남은 공간이 없음
compilation terminated.
make[2]: *** [/home/qudrhks/down/dev-gpio/dev_gpio.o] 오류 1
make[1]: *** [_module_/home/qudrhks/down/dev-gpio] 오류 2
make[1]: Leaving directory `/home/qudrhks/down/linux-2.6.21'
make: *** [default] 오류 2
[qudrhks@BKCentOS dev-gpio]$
테스트 프로그램을 컴파일해보려고 하는데 make한후에 에러입니다.. 많아서? 위에는 짤리네요
KDIR은 /home/qudrhks/down/linux-2.6.21
로 커널소스 위치 수정하여주었습니다..
include/linux/i2c.h:92: warning: type defaults to `int' in declaration of `i2c_smbus_write_block_data'
include/linux/i2c.h:92: warning: function declaration isn't a prototype
include/linux/i2c.h:92: warning: data definition has no type or storage class
include/linux/i2c.h:94: error: parse error before "i2c_smbus_read_i2c_block_data"
include/linux/i2c.h:95: error: parse error before "u8"
include/linux/i2c.h:95: warning: type defaults to `int' in declaration of `i2c_smbus_read_i2c_block_data'
include/linux/i2c.h:95: warning: function declaration isn't a prototype
include/linux/i2c.h:95: warning: data definition has no type or storage class
include/linux/i2c.h:96: error: parse error before "i2c_smbus_write_i2c_block_data"
include/linux/i2c.h:97: error: parse error before "u8"
include/linux/i2c.h:98: warning: type defaults to `int' in declaration of `i2c_smbus_write_i2c_block_data'
include/linux/i2c.h:98: warning: function declaration isn't a prototype
include/linux/i2c.h:98: warning: data definition has no type or storage class
include/linux/i2c.h:160: error: field `dev' has incomplete type
include/linux/i2c.h: In function `kobj_to_i2c_client':
include/linux/i2c.h:169: warning: type defaults to `int' in declaration of `__mptr'
include/linux/i2c.h:169: error: dereferencing pointer to incomplete type
include/linux/i2c.h:169: warning: type defaults to `int' in declaration of `__mptr'
include/linux/i2c.h:169: warning: initialization from incompatible pointer type
include/linux/i2c.h:169: error: dereferencing pointer to incomplete type
include/linux/i2c.h: At top level:
include/linux/i2c.h:197: error: parse error before "u16"
include/linux/i2c.h:199: warning: function declaration isn't a prototype
include/linux/i2c.h:205: error: parse error before "u32"
include/linux/i2c.h:205: warning: no semicolon at end of struct or union
include/linux/i2c.h:224: error: parse error before "u8"
include/linux/i2c.h:224: warning: no semicolon at end of struct or union
include/linux/i2c.h:230: error: conflicting types for 'dev'
include/linux/device.h:268: error: previous declaration of 'dev' was here
include/linux/i2c.h:230: error: conflicting types for 'dev'
include/linux/device.h:268: error: previous declaration of 'dev' was here
include/linux/i2c.h:236: error: conflicting types for 'name'
include/linux/ioport.h:20: error: previous declaration of 'name' was here
include/linux/i2c.h:239: error: parse error before '}' token
include/linux/i2c.h: In function `i2c_get_adapdata':
include/linux/i2c.h:245: error: dereferencing pointer to incomplete type
include/linux/i2c.h: In function `i2c_set_adapdata':
include/linux/i2c.h:250: error: dereferencing pointer to incomplete type
include/linux/i2c.h: At top level:
include/linux/i2c.h:338: error: parse error before "i2c_get_functionality"
include/linux/i2c.h:339: warning: return type defaults to `int'
include/linux/i2c.h: In function `i2c_get_functionality':
include/linux/i2c.h:340: error: dereferencing pointer to incomplete type
include/linux/i2c.h: At top level:
include/linux/i2c.h:344: error: parse error before "u32"
include/linux/i2c.h:345: warning: function declaration isn't a prototype
include/linux/i2c.h: In function `i2c_check_functionality':
include/linux/i2c.h:346: error: `adap' undeclared (first use in this function)
include/linux/i2c.h:346: error: invalid operands to binary &
include/linux/i2c.h: In function `i2c_adapter_id':
include/linux/i2c.h:352: error: dereferencing pointer to incomplete type
include/linux/i2c.h: At top level:
include/linux/i2c.h:360: error: parse error before "__u16"
include/linux/i2c.h:360: warning: no semicolon at end of struct or union
include/linux/i2c.h:361: warning: type defaults to `int' in declaration of `flags'
include/linux/i2c.h:361: error: conflicting types for 'flags'
include/linux/ioport.h:21: error: previous declaration of 'flags' was here
include/linux/i2c.h:361: error: conflicting types for 'flags'
include/linux/ioport.h:21: error: previous declaration of 'flags' was here
include/linux/i2c.h:361: warning: data definition has no type or storage class
include/linux/i2c.h:368: error: parse error before "len"
include/linux/i2c.h:368: warning: type defaults to `int' in declaration of `len'
include/linux/i2c.h:368: warning: data definition has no type or storage class
include/linux/i2c.h:369: error: parse error before '*' token
include/linux/i2c.h:369: warning: type defaults to `int' in declaration of `buf'
include/linux/i2c.h:369: warning: data definition has no type or storage class
include/linux/i2c.h:370: error: parse error before '}' token
include/linux/i2c.h:420: error: parse error before "__u8"
include/linux/i2c.h:420: warning: no semicolon at end of struct or union
include/linux/i2c.h:421: warning: type defaults to `int' in declaration of `word'
include/linux/i2c.h:421: warning: data definition has no type or storage class
include/linux/i2c.h:422: error: parse error before "block"
include/linux/i2c.h:422: warning: type defaults to `int' in declaration of `block'
include/linux/i2c.h:422: warning: data definition has no type or storage class
include/linux/i2c.h:424: error: parse error before '}' token
In file included from /home/qudrhks/down/dev-gpio/dev_gpio.c:43:
include/linux/i2c-dev.h:33: error: parse error before "__u8"
include/linux/i2c-dev.h:33: warning: no semicolon at end of struct or union
include/linux/i2c-dev.h:34: warning: type defaults to `int' in declaration of `command'
include/linux/i2c-dev.h:34: warning: data definition has no type or storage class
include/linux/i2c-dev.h:35: error: parse error before "size"
include/linux/i2c-dev.h:35: warning: type defaults to `int' in declaration of `size'
include/linux/i2c-dev.h:35: warning: data definition has no type or storage class
include/linux/i2c-dev.h:36: error: conflicting types for 'data'
include/linux/proc_fs.h:63: error: previous declaration of 'data' was here
include/linux/i2c-dev.h:36: error: conflicting types for 'data'
include/linux/interrupt.h:294: error: previous declaration of 'data' was here
include/linux/i2c-dev.h:37: error: parse error before '}' token
include/linux/i2c-dev.h:42: error: parse error before "__u32"
include/linux/i2c-dev.h:42: warning: no semicolon at end of struct or union
/home/qudrhks/down/dev-gpio/dev_gpio.c: In function `hw_gpio_init':
/home/qudrhks/down/dev-gpio/dev_gpio.c:68: warning: implicit declaration of function `gpio_direction_input'
/home/qudrhks/down/dev-gpio/dev_gpio.c:68: error: `S3C2410_GPG5' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:69: warning: implicit declaration of function `set_irq_type'
/home/qudrhks/down/dev-gpio/dev_gpio.c:69: error: `IRQ_EINT13' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:69: error: `IRQT_RISING' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:70: warning: implicit declaration of function `s3c2410_gpio_pullup'
/home/qudrhks/down/dev-gpio/dev_gpio.c:70: error: `S3C2410_GPE11' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:73: error: `S3C2410_GPG11' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:74: error: `S3C2410_GPE5' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:78: warning: implicit declaration of function `gpio_direction_output'
/home/qudrhks/down/dev-gpio/dev_gpio.c:78: error: `S3C2410_GPF0' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:79: error: `S3C2410_GPF1' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:80: error: `S3C2410_GPF2' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:81: error: `S3C2410_GPF3' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:82: error: `S3C2410_GPF4' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:83: error: `S3C2410_GPF5' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:84: error: `S3C2410_GPF6' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:85: error: `S3C2410_GPF7' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c: In function `gpio_btn_interrupt':
/home/qudrhks/down/dev-gpio/dev_gpio.c:96: warning: implicit declaration of function `s3c2410_gpio_setpin'
/home/qudrhks/down/dev-gpio/dev_gpio.c:96: error: `S3C2410_GPF4' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c: At top level:
/home/qudrhks/down/dev-gpio/dev_gpio.c:105: error: parse error before "gpio_read"
/home/qudrhks/down/dev-gpio/dev_gpio.c:105: error: parse error before "size_t"
/home/qudrhks/down/dev-gpio/dev_gpio.c:106: warning: return type defaults to `int'
/home/qudrhks/down/dev-gpio/dev_gpio.c:106: warning: function declaration isn't a prototype
/home/qudrhks/down/dev-gpio/dev_gpio.c: In function `gpio_read':
/home/qudrhks/down/dev-gpio/dev_gpio.c:114: warning: implicit declaration of function `gpio_get_value'
/home/qudrhks/down/dev-gpio/dev_gpio.c:114: error: `S3C2410_GPG11' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:124: warning: implicit declaration of function `put_user'
/home/qudrhks/down/dev-gpio/dev_gpio.c: In function `set_gpio_f':
/home/qudrhks/down/dev-gpio/dev_gpio.c:138: warning: implicit declaration of function `gpio_set_value'
/home/qudrhks/down/dev-gpio/dev_gpio.c:138: error: `S3C2410_GPF0' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:139: error: `S3C2410_GPF1' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:140: error: `S3C2410_GPF2' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:141: error: `S3C2410_GPF3' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:142: error: `S3C2410_GPF4' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:143: error: `S3C2410_GPF5' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:144: error: `S3C2410_GPF6' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:145: error: `S3C2410_GPF7' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c: In function `gpio_ioctl':
/home/qudrhks/down/dev-gpio/dev_gpio.c:157: warning: implicit declaration of function `_IOC_TYPE'
/home/qudrhks/down/dev-gpio/dev_gpio.c:157: error: `EINVAL' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:158: warning: implicit declaration of function `_IOC_NR'
/home/qudrhks/down/dev-gpio/dev_gpio.c:162: warning: implicit declaration of function `_IOW'
/home/qudrhks/down/dev-gpio/dev_gpio.c:162: error: parse error before "int"
/home/qudrhks/down/dev-gpio/dev_gpio.c:163: error: parse error before "int"
/home/qudrhks/down/dev-gpio/dev_gpio.c: At top level:
/home/qudrhks/down/dev-gpio/dev_gpio.c:195: error: variable `gpio_fops' has initializer but incomplete type
/home/qudrhks/down/dev-gpio/dev_gpio.c:197: error: unknown field `open' specified in initializer
/home/qudrhks/down/dev-gpio/dev_gpio.c:197: warning: excess elements in struct initializer
/home/qudrhks/down/dev-gpio/dev_gpio.c:197: warning: (near initialization for `gpio_fops')
/home/qudrhks/down/dev-gpio/dev_gpio.c:198: error: unknown field `release' specified in initializer
/home/qudrhks/down/dev-gpio/dev_gpio.c:198: warning: excess elements in struct initializer
/home/qudrhks/down/dev-gpio/dev_gpio.c:198: warning: (near initialization for `gpio_fops')
/home/qudrhks/down/dev-gpio/dev_gpio.c:199: error: unknown field `read' specified in initializer
/home/qudrhks/down/dev-gpio/dev_gpio.c:199: warning: excess elements in struct initializer
/home/qudrhks/down/dev-gpio/dev_gpio.c:199: warning: (near initialization for `gpio_fops')
/home/qudrhks/down/dev-gpio/dev_gpio.c:200: error: unknown field `ioctl' specified in initializer
/home/qudrhks/down/dev-gpio/dev_gpio.c:200: warning: excess elements in struct initializer
/home/qudrhks/down/dev-gpio/dev_gpio.c:200: warning: (near initialization for `gpio_fops')
/home/qudrhks/down/dev-gpio/dev_gpio.c: In function `gpio_init':
/home/qudrhks/down/dev-gpio/dev_gpio.c:219: error: `EBUSY' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:226: error: `IRQ_EINT13' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c:226: warning: passing arg 2 of `request_irq' from incompatible pointer type
/home/qudrhks/down/dev-gpio/dev_gpio.c: In function `gpio_exit':
/home/qudrhks/down/dev-gpio/dev_gpio.c:248: error: `IRQ_EINT13' undeclared (first use in this function)
/home/qudrhks/down/dev-gpio/dev_gpio.c: At top level:
include/linux/elf.h:367: warning: array '_DYNAMIC' assumed to have one element
include/linux/stat.h:68: error: storage size of `atime' isn't known
include/linux/stat.h:69: error: storage size of `mtime' isn't known
include/linux/stat.h:70: error: storage size of `ctime' isn't known
include/linux/fs.h:344: error: storage size of `ia_atime' isn't known
include/linux/fs.h:345: error: storage size of `ia_mtime' isn't known
include/linux/fs.h:346: error: storage size of `ia_ctime' isn't known
include/linux/quota.h:227: error: storage size of `dq_dqb' isn't known
include/linux/fs.h:462: error: storage size of `bd_mutex' isn't known
include/linux/fs.h:463: error: storage size of `bd_mount_sem' isn't known
include/linux/fs.h:544: error: storage size of `i_atime' isn't known
include/linux/fs.h:545: error: storage size of `i_mtime' isn't known
include/linux/fs.h:546: error: storage size of `i_ctime' isn't known
include/linux/fs.h:552: error: storage size of `i_mutex' isn't known
include/linux/fs.h:553: error: storage size of `i_alloc_sem' isn't known
include/linux/fs.h:726: error: storage size of `f_owner' isn't known
include/linux/fs.h:917: error: storage size of `s_umount' isn't known
include/linux/fs.h:918: error: storage size of `s_lock' isn't known
include/linux/fs.h:949: error: storage size of `s_vfs_rename_mutex' isn't known
include/linux/aio.h:115: error: storage size of `ki_inline_vec' isn't known
include/linux/sched.h:326: error: storage size of `mmap_sem' isn't known
include/linux/sched.h:380: error: storage size of `action' isn't known
include/linux/sched.h:409: error: storage size of `shared_pending' isn't known
include/linux/sched.h:429: error: storage size of `real_timer' isn't known
include/linux/sched.h:478: error: storage size of `rlim' isn't known
include/linux/sched.h:887: error: storage size of `start_time' isn't known
include/linux/sched.h:928: error: storage size of `thread' isn't known
include/linux/sched.h:941: error: storage size of `pending' isn't known
include/linux/device.h:267: error: storage size of `uevent_attr' isn't known
include/linux/device.h:435: error: storage size of `archdata' isn't known
include/linux/mod_devicetable.h:298: error: storage size of `evbit' isn't known
include/linux/mod_devicetable.h:299: error: storage size of `keybit' isn't known
include/linux/mod_devicetable.h:300: error: storage size of `relbit' isn't known
include/linux/mod_devicetable.h:301: error: storage size of `absbit' isn't known
include/linux/mod_devicetable.h:302: error: storage size of `mscbit' isn't known
include/linux/mod_devicetable.h:303: error: storage size of `ledbit' isn't known
include/linux/mod_devicetable.h:304: error: storage size of `sndbit' isn't known
include/linux/mod_devicetable.h:305: error: storage size of `ffbit' isn't known
include/linux/mod_devicetable.h:306: error: storage size of `swbit' isn't known
include/linux/i2c.h:225: error: storage size of `bus_lock' isn't known
include/linux/i2c.h:226: error: storage size of `clist_lock' isn't known
include/linux/i2c.h:230: error: storage size of `dev' isn't known
include/linux/i2c.h:231: error: storage size of `class_dev' isn't known
/home/qudrhks/down/dev-gpio/dev_gpio.c:195: error: storage size of `gpio_fops' isn't known
/home/qudrhks/down/dev-gpio/dev_gpio.c:42: fatal error: error writing to /tmp/ccsMhskb.s: 장치에 남은 공간이 없음
compilation terminated.
make[2]: *** [/home/qudrhks/down/dev-gpio/dev_gpio.o] 오류 1
make[1]: *** [_module_/home/qudrhks/down/dev-gpio] 오류 2
make[1]: Leaving directory `/home/qudrhks/down/linux-2.6.21'
make: *** [default] 오류 2
[qudrhks@BKCentOS dev-gpio]$
테스트 프로그램을 컴파일해보려고 하는데 make한후에 에러입니다.. 많아서? 위에는 짤리네요
KDIR은 /home/qudrhks/down/linux-2.6.21
로 커널소스 위치 수정하여주었습니다..
커널을 컴파일을 한번 해 주셨나요..
커널에서 include/asm-arm 이 include/asm 로 링크가 되어 있는지 궁금합니다.
그리고, 크로스 컴파일러가 설치되었는지 확인 해 주세요...
현재 컴파일한 소스를 압축해서 올려 주세요..
저희가 한번 확인 해 보겠습니다..
그럼 종은 하루 되세요..