|
|
Log in / Subscribe / Register

char device drivers on the 2.6 kernel

char device drivers on the 2.6 kernel

Posted Jun 22, 2007 11:54 UTC (Fri) by soorejp (guest, #38041)
In reply to: char device drivers on the 2.6 kernel by psh2001
Parent article: Porting device drivers to the 2.6 kernel

I got these warnings:

include/linux/cdev.h:24: warning: ‘struct inode’ declared inside parameter list
include/linux/cdev.h:24: warning: its scope is only this definition or declaration, which is probably not what you want

I changed the order of header file definition from:
#include <linux/cdev.h>
#include <linux/fs.h>
to
#include <linux/fs.h>
#include <linux/cdev.h>
and the error gone


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds