找回密码
 注册
查看: 631|回复: 1

问个gcc编译模块的错误?

[复制链接]
发表于 2005-7-7 15:14:27 | 显示全部楼层 |阅读模式
代码如下:
struct file *filp;
        struct inode *ino;
        if((filp= filp_open("/dev/cdrom",O_RDONLY|O_NONBLOCK,0))==NULL)
        {       printk("Open /dev/vdrom error!\n");
                return 1;
        }
        ino=filp->f_dentry->d_inode;//这样行不?????????第19行
printk("ino->i_dev=%d\n",ino->i_dev);

example.c:19: dereferencing pointer to incomplete type
发表于 2005-7-7 23:11:31 | 显示全部楼层
ino=(struct inode *)filp->f_dentry->d_inode;//
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-7-24 00:24 , Processed in 0.044185 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表