LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] Fix build error due to not including <linux/errno.h>
@ 2007-03-18 12:58 Ralf Baechle
2007-03-19 0:36 ` Alan Stern
0 siblings, 1 reply; 5+ messages in thread
From: Ralf Baechle @ 2007-03-18 12:58 UTC (permalink / raw)
To: Linus Torvalds, Andrew Morton, Alan Stern, linux-kernel
Since d9a9cdfb078d755e648d53ec25b7370f84ee5729 <linux/sysfs.h> is using
ENOSYS without including <linux/errno.h> if CONFIG_SYSFS is disabled.
Fixed by including <linux/errno.h>.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index 0544edd..fea9a6b 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -11,6 +11,7 @@
#define _SYSFS_H_
#include <linux/compiler.h>
+#include <linux/errno.h>
#include <linux/list.h>
#include <asm/atomic.h>
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] Fix build error due to not including <linux/errno.h>
2007-03-18 12:58 [PATCH] Fix build error due to not including <linux/errno.h> Ralf Baechle
@ 2007-03-19 0:36 ` Alan Stern
2007-03-19 0:44 ` Ralf Baechle
0 siblings, 1 reply; 5+ messages in thread
From: Alan Stern @ 2007-03-19 0:36 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Linus Torvalds, Andrew Morton, linux-kernel
On Sun, 18 Mar 2007, Ralf Baechle wrote:
> Since d9a9cdfb078d755e648d53ec25b7370f84ee5729 <linux/sysfs.h> is using
> ENOSYS without including <linux/errno.h> if CONFIG_SYSFS is disabled.
>
> Fixed by including <linux/errno.h>.
>
> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
>
> diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
> index 0544edd..fea9a6b 100644
> --- a/include/linux/sysfs.h
> +++ b/include/linux/sysfs.h
> @@ -11,6 +11,7 @@
> #define _SYSFS_H_
>
> #include <linux/compiler.h>
> +#include <linux/errno.h>
> #include <linux/list.h>
> #include <asm/atomic.h>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Thank you for spotting and fixing this.
Alan Stern
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fix build error due to not including <linux/errno.h>
2007-03-19 0:36 ` Alan Stern
@ 2007-03-19 0:44 ` Ralf Baechle
2007-03-19 6:01 ` Andrew Morton
0 siblings, 1 reply; 5+ messages in thread
From: Ralf Baechle @ 2007-03-19 0:44 UTC (permalink / raw)
To: Alan Stern; +Cc: Linus Torvalds, Andrew Morton, linux-kernel
On Sun, Mar 18, 2007 at 08:36:48PM -0400, Alan Stern wrote:
> Acked-by: Alan Stern <stern@rowland.harvard.edu>
>
> Thank you for spotting and fixing this.
It's the second time I've fixed a CONFIG_SYSFS=n bug. Of course that
sort of thing just shouldn't happen - but the fact that in both cases
the bug wasn't noticed for a few days makes me wonder if we simply should
always enable CONFIG_SYSFS at some point.
Ralf
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fix build error due to not including <linux/errno.h>
2007-03-19 0:44 ` Ralf Baechle
@ 2007-03-19 6:01 ` Andrew Morton
2007-04-01 4:58 ` Oleg Verych
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2007-03-19 6:01 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Alan Stern, Linus Torvalds, linux-kernel
On Mon, 19 Mar 2007 00:44:43 +0000 Ralf Baechle <ralf@linux-mips.org> wrote:
> On Sun, Mar 18, 2007 at 08:36:48PM -0400, Alan Stern wrote:
>
> > Acked-by: Alan Stern <stern@rowland.harvard.edu>
> >
> > Thank you for spotting and fixing this.
>
> It's the second time I've fixed a CONFIG_SYSFS=n bug. Of course that
> sort of thing just shouldn't happen - but the fact that in both cases
> the bug wasn't noticed for a few days makes me wonder if we simply should
> always enable CONFIG_SYSFS at some point.
>
If is a bit of a pain to maintain CONFIG_SYSFS=n. But then, it's
realtively easy to fix things when they do break, and sysfs does consume
rather a lot of memory at runtime. Hopefully someone out there is finding
SYSFS=n to be useful for deeply embedded applications.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fix build error due to not including <linux/errno.h>
2007-03-19 6:01 ` Andrew Morton
@ 2007-04-01 4:58 ` Oleg Verych
0 siblings, 0 replies; 5+ messages in thread
From: Oleg Verych @ 2007-04-01 4:58 UTC (permalink / raw)
To: Andrew Morton, Ralf Baechle; +Cc: Alan Stern, Linus Torvalds, linux-kernel
> From: Andrew Morton
> Newsgroups: gmane.linux.kernel
> Subject: Re: [PATCH] Fix build error due to not including <linux/errno.h>
> Date: Sun, 18 Mar 2007 22:01:48 -0800
>
> If is a bit of a pain to maintain CONFIG_SYSFS=n. But then, it's
> realtively easy to fix things when they do break, and sysfs does consume
> rather a lot of memory at runtime. Hopefully someone out there is finding
> SYSFS=n to be useful for deeply embedded applications.
Actually i've managed to build and run rc5 for five days now. Not so
embedded amd64 laptop.
Kudos and thanks to Ralf.
After splitting kobject from sysfs, as it was commented Tejun Heo in the
[RFD driver-core] Lifetime problems of the current driver model
maybe something lightweight can emerge, without current 'features' and
going-to-be sysfs-v1,v2,v3 thing...
____
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-04-01 4:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-18 12:58 [PATCH] Fix build error due to not including <linux/errno.h> Ralf Baechle
2007-03-19 0:36 ` Alan Stern
2007-03-19 0:44 ` Ralf Baechle
2007-03-19 6:01 ` Andrew Morton
2007-04-01 4:58 ` Oleg Verych
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).