struct inode_operations * ops;
become
const struct inode_operations * ops;
There are other tables throughout the kernel that I also believe to be
constant. What about the parameters to register_chrdev, etc?
It's my C++ habit, I use const whenever I can:-)
-- Steve Williams steve@icarus.com steve@picturel.com"The woods are lovely, dark and deep. But I have promises to keep, And lines to code before I sleep, And lines to code before I sleep."