Re: [PATCH] proc_fs.h redux
- From: Russell King <rmk+lkml@xxxxxxxxxxxxxxxx>
- Date: Sun, 28 Oct 2007 10:34:15 +0000
On Sat, Oct 27, 2007 at 03:40:04PM -0700, Joe Perches wrote:
and forward declarations of
struct proc_dir_entry;
struct file_operations;
As a general rule, I think it better to use includes
than use naked forward declarations.
If you go down that route, you end up with _lots_ of circular
dependencies - header file X needs Y needs Z which needs X. We've
been there, several times. It very quickly becomes quite
unmaintainable - you end up with hard to predict behaviour from
include files.
The only realistic solution is to use forward declarations.
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of:
-
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/
- Follow-Ups:
- Re: [PATCH] proc_fs.h redux
- From: Roman Zippel
- Re: [PATCH] proc_fs.h redux
- From: Bernhard Walle
- Re: [PATCH] proc_fs.h redux
- From: Jan Engelhardt
- Re: [PATCH] proc_fs.h redux
- References:
- [PATCH] proc_fs.h redux
- From: Alexey Dobriyan
- Re: [PATCH] proc_fs.h redux
- From: Joe Perches
- [PATCH] proc_fs.h redux
- Prev by Date: [PATCH] mac80211: fix printk() format string
- Next by Date: Re: [PATCH] mac80211: fix printk() format string
- Previous by thread: Re: [PATCH] proc_fs.h redux
- Next by thread: Re: [PATCH] proc_fs.h redux
- Index(es):
Relevant Pages
|