X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fsysfs%2Fsymlink.c;h=7b9c5bfde920fb1ea30af8f81d4313f84bf981ec;hb=274707cff9810b784c548ed169298617a1bc3528;hp=f50e3cc2ded8d76e00d203829108b40647f1fc63;hpb=ceeee1fb2897651b434547eb26d93e6d2ff5a1a5;p=linux-2.6 diff --git a/fs/sysfs/symlink.c b/fs/sysfs/symlink.c index f50e3cc2de..7b9c5bfde9 100644 --- a/fs/sysfs/symlink.c +++ b/fs/sysfs/symlink.c @@ -7,6 +7,7 @@ #include #include #include +#include #include "sysfs.h" @@ -180,7 +181,7 @@ static void sysfs_put_link(struct dentry *dentry, struct nameidata *nd, void *co free_page((unsigned long)page); } -struct inode_operations sysfs_symlink_inode_operations = { +const struct inode_operations sysfs_symlink_inode_operations = { .readlink = generic_readlink, .follow_link = sysfs_follow_link, .put_link = sysfs_put_link,