Re: [Patch] proc: drop write permission on 'timer_list' and'slabinfo'

From: Wu Fengguang
Date: Tue Aug 18 2009 - 08:43:25 EST


On Tue, Aug 18, 2009 at 11:08:30AM +0800, Amerigo Wang wrote:

> - proc_create("slabinfo",S_IWUSR|S_IRUGO,NULL,&proc_slabinfo_operations);
> + proc_create("slabinfo",S_IRUGO,NULL,&proc_slabinfo_operations);

Style nitpick. The spaces were packed to fit into 80-col I guess.


ERROR: space required after that ',' (ctx:VxV)
#10: FILE: mm/slub.c:4729:
+ proc_create("slabinfo",S_IRUGO,NULL,&proc_slabinfo_operations);
^

ERROR: space required after that ',' (ctx:VxV)
#10: FILE: mm/slub.c:4729:
+ proc_create("slabinfo",S_IRUGO,NULL,&proc_slabinfo_operations);
^

ERROR: space required after that ',' (ctx:VxO)
#10: FILE: mm/slub.c:4729:
+ proc_create("slabinfo",S_IRUGO,NULL,&proc_slabinfo_operations);
^

ERROR: space required before that '&' (ctx:OxV)
#10: FILE: mm/slub.c:4729:
+ proc_create("slabinfo",S_IRUGO,NULL,&proc_slabinfo_operations);
^

Thanks,
Fengguang
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/