Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753764Ab1FFVH5 (ORCPT ); Mon, 6 Jun 2011 17:07:57 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:38894 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750919Ab1FFVH4 (ORCPT ); Mon, 6 Jun 2011 17:07:56 -0400 Date: Mon, 6 Jun 2011 22:07:55 +0100 From: Al Viro To: H Hartley Sweeten Cc: Linux Kernel Subject: Re: [PATCH] seq_file.h: introduce DECLARE_SEQ_FOPS_{RO,RW} Message-ID: <20110606210755.GL11521@ZenIV.linux.org.uk> References: <201106061319.45855.hartleys@visionengravers.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201106061319.45855.hartleys@visionengravers.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 831 Lines: 18 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 Nacked-by: Al Viro 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/