Re: [PATCH] linux/hdsmart.h: fix goofups

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Bartlomiej Zolnierkiewicz <bzolnier@...>
Cc: <linux-kernel@...>
Date: Sunday, February 17, 2008 - 1:17 pm

On Sun, 17 Feb 2008, Bartlomiej Zolnierkiewicz wrote:


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.

rday
--


========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================
--
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, 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)