Re: [PATCH] seq_file.h: introduce DECLARE_SEQ_FOPS_{RO,RW}

From: Al Viro
Date: Mon Jun 06 2011 - 17:08:00 EST


On Mon, Jun 06, 2011 at 01:19:45PM -0700, H Hartley Sweeten wrote:
> Many of the procfs and debugfs attribute file_operations in the kernel are
> missing the .owner information. Introduce some macro's to fill in the .owner
> field as well as the common methods for virtual file file_operations. This
> simplifies creating the attributes and makes sure all the fields are properly
> initialized.
>
> Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>

Nacked-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
Nacked-because: too ugly

Don't play that kind of games with preprocessor.
--
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/