@@ -692,23 +692,23 @@ static const struct file_operations full_fops = {
692
692
693
693
static const struct memdev {
694
694
const char * name ;
695
- umode_t mode ;
696
695
const struct file_operations * fops ;
697
696
fmode_t fmode ;
697
+ umode_t mode ;
698
698
} devlist [] = {
699
699
#ifdef CONFIG_DEVMEM
700
- [DEVMEM_MINOR ] = { "mem" , 0 , & mem_fops , FMODE_UNSIGNED_OFFSET },
700
+ [DEVMEM_MINOR ] = { "mem" , & mem_fops , FMODE_UNSIGNED_OFFSET , 0 },
701
701
#endif
702
- [3 ] = { "null" , 0666 , & null_fops , FMODE_NOWAIT },
702
+ [3 ] = { "null" , & null_fops , FMODE_NOWAIT , 0666 },
703
703
#ifdef CONFIG_DEVPORT
704
- [4 ] = { "port" , 0 , & port_fops , 0 },
704
+ [4 ] = { "port" , & port_fops , 0 , 0 },
705
705
#endif
706
- [5 ] = { "zero" , 0666 , & zero_fops , FMODE_NOWAIT },
707
- [7 ] = { "full" , 0666 , & full_fops , 0 },
708
- [8 ] = { "random" , 0666 , & random_fops , FMODE_NOWAIT },
709
- [9 ] = { "urandom" , 0666 , & urandom_fops , FMODE_NOWAIT },
706
+ [5 ] = { "zero" , & zero_fops , FMODE_NOWAIT , 0666 },
707
+ [7 ] = { "full" , & full_fops , 0 , 0666 },
708
+ [8 ] = { "random" , & random_fops , FMODE_NOWAIT , 0666 },
709
+ [9 ] = { "urandom" , & urandom_fops , FMODE_NOWAIT , 0666 },
710
710
#ifdef CONFIG_PRINTK
711
- [11 ] = { "kmsg" , 0644 , & kmsg_fops , 0 },
711
+ [11 ] = { "kmsg" , & kmsg_fops , 0 , 0644 },
712
712
#endif
713
713
};
714
714
0 commit comments