patch-1.3.25 linux/fs/proc/inode.c

Next file: linux/fs/proc/root.c
Previous file: linux/fs/proc/array.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.24/linux/fs/proc/inode.c linux/fs/proc/inode.c
@@ -17,8 +17,6 @@
 #include <asm/system.h>
 #include <asm/segment.h>
 
-extern unsigned long prof_len;
-
 static void proc_put_inode(struct inode *inode)
 {
 	if (inode->i_nlink)
@@ -212,13 +210,11 @@
 				inode->i_op = &proc_kcore_inode_operations;
 				inode->i_size = (MAP_NR(high_memory) << PAGE_SHIFT) + PAGE_SIZE;
 				break;
-#ifdef CONFIG_PROFILE
 			case PROC_PROFILE:
 				inode->i_mode = S_IFREG | S_IRUGO | S_IWUSR;
 				inode->i_op = &proc_profile_inode_operations;
 				inode->i_size = (1+prof_len) * sizeof(unsigned long);
 				break;
-#endif
 			default:
 				inode->i_mode = S_IFREG | S_IRUGO;
 				inode->i_op = &proc_array_inode_operations;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this