login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
17
Re: [PATCH] linux/hdsmart.h: fix goofups
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Bartlomiej Zolnierkiewicz <bzolnier@...>
To: Adrian Bunk <bunk@...>
Cc: Robert P. J. Day <rpjday@...>, <linux-kernel@...>
Subject:
Re: [PATCH] linux/hdsmart.h: fix goofups
Date: Sunday, February 17, 2008 - 2:04 pm
On Sunday 17 February 2008, Adrian Bunk wrote:
quoted text
> On Sun, Feb 17, 2008 at 06:40:31PM +0100, Bartlomiej Zolnierkiewicz wrote: > > On Sunday 17 February 2008, Robert P. J. Day wrote: > > > On Sun, 17 Feb 2008, Bartlomiej Zolnierkiewicz wrote: > > > > > > > Fix goofups of commit 76166952bbc81dda1c8a8c14e75a2aa06f6c052c > > > > ("<linux/hdsmart.h> is not used by kernel code"). > > > > > > > > Reported-by: "Robert P. J. Day" <rpjday@crashcourse.ca> > > > > Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> > > > > --- > > > > include/linux/hdsmart.h | 4 ++-- > > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > > > Index: b/include/linux/hdsmart.h > > > > =================================================================== > > > > --- a/include/linux/hdsmart.h > > > > +++ b/include/linux/hdsmart.h > > > > @@ -17,7 +17,7 @@ > > > > #ifndef _LINUX_HDSMART_H > > > > #define _LINUX_HDSMART_H > > > > > > > > -#ifndef __KERNEL > > > > +#ifndef __KERNEL__ > > > > #define OFFLINE_FULL_SCAN 0 > > > > #define SHORT_SELF_TEST 1 > > > > #define EXTEND_SELF_TEST 2 > > > > @@ -121,6 +121,6 @@ typedef struct ata_smart_selftestlog_s { > > > > unsigned char resevered[2]; > > > > unsigned char chksum; > > > > } __attribute__ ((packed)) ata_smart_selftestlog_t; > > > > -#endif /* __KERNEL__ * > > > > +#endif /* __KERNEL__ */ > > > > > > > > #endif /* _LINUX_HDSMART_H */ > > > > > > if that header file isn't used by any kernel code, why bother having a > > > check for __KERNEL__ in the first place? it's being exported to > > > userspace unchecked: > > > > > > include/linux/Kbuild:header-y += hdsmart.h > > > > > > so why not just toss that check entirely? otherwise, you're going to > > > get a header file exported to userspace that has a superfluous > > > __KERNEL__ test in it. > > > > We don't want new (accidental etc.) kernel users of this header. > >... > > Why can't we simply remove it?
If it is safe w.r.t. userspace then please do it. [ I don't know and I couldn't get an answer on LKML so... ] Thanks, Bart --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] linux/hdsmart.h: fix goofups
, Bartlomiej Zolnierkiewicz...
, (Sun Feb 17, 1:07 pm)
Re: [PATCH] linux/hdsmart.h: fix goofups
, Robert P. J. Day
, (Sun Feb 17, 1:17 pm)
Re: [PATCH] linux/hdsmart.h: fix goofups
,
, (Mon Feb 18, 1:06 am)
Re: [PATCH] linux/hdsmart.h: fix goofups
, Robert P. J. Day
, (Mon Feb 18, 5:50 am)
Re: [PATCH] linux/hdsmart.h: fix goofups
, Bartlomiej Zolnierkiewicz...
, (Sun Feb 17, 1:40 pm)
Re: [PATCH] linux/hdsmart.h: fix goofups
, Adrian Bunk
, (Sun Feb 17, 1:36 pm)
Re: [PATCH] linux/hdsmart.h: fix goofups
, Bartlomiej Zolnierkiewicz...
, (Sun Feb 17, 2:04 pm)
[2.6 patch] remove include/linux/hdsmart.h
, Adrian Bunk
, (Tue Feb 19, 3:29 pm)
Re: [2.6 patch] remove include/linux/hdsmart.h
, Bartlomiej Zolnierkiewicz...
, (Tue Feb 19, 5:51 pm)
Re: [PATCH] linux/hdsmart.h: fix goofups
, Robert P. J. Day
, (Sun Feb 17, 1:53 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Glauber de Oliveira Costa
[PATCH 08/79] [PATCH] use identify_boot_cpu
David Woodhouse
[PATCH v2] Stop pmac_zilog from abusing 8250's device numbers.
Greg Kroah-Hartman
[PATCH 002/196] Chinese: rephrase English introduction in HOWTO
Jeremy Fitzhardinge
[PATCH 30 of 31] xen: no need for domU to worry about MCE/MCA
git
:
openbsd-misc
:
linux-netdev
:
Gerrit Renker
[PATCH 03/37] dccp: List management for new feature negotiation
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
Colocation donated by:
Who's online
There are currently
4 users
and
1068 guests
online.
Online users
zeekec
oilrubbedbronz
brothersewingm
nintendoshopon
Syndicate