public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk+lkml@arm.linux.org.uk>
To: Jaswinder Singh Rajput <jaswinder@kernel.org>
Cc: Sam Ravnborg <sam@ravnborg.org>, Ingo Molnar <mingo@elte.hu>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	LKML <linux-kernel@vger.kernel.org>,
	linux-arm-kernel@lists.arm.linux.org.uk
Subject: Re: [PATCH 1/6] headers_check fix: arm, hwcap.h
Date: Sat, 6 Jun 2009 10:12:15 +0100	[thread overview]
Message-ID: <20090606091215.GB30463@flint.arm.linux.org.uk> (raw)
In-Reply-To: <1244278211.2475.13.camel@ht.satnam>

On Sat, Jun 06, 2009 at 02:20:11PM +0530, Jaswinder Singh Rajput wrote:
> On Fri, 2009-06-05 at 21:48 +0100, Russell King wrote:
> > On Thu, Jun 04, 2009 at 10:16:49PM +0200, Sam Ravnborg wrote:
> > > On Thu, Jun 04, 2009 at 01:53:07PM +0100, Russell King wrote:
> > > > On Thu, Jun 04, 2009 at 05:57:56PM +0530, Jaswinder Singh Rajput wrote:
> > > > > fix the following 'make headers_check' warning:
> > > > 
> > > > I think headers_check needs fixing - there's nothing wrong with the
> > > > code as it presently stands except the tools obviously can't properly
> > > > parse C preprocessor statements.
> > > 
> > > You are correct that headers_ceck is limited here and this patch
> > > take some valid code and refactor it to make it headers_check compatible.
> > 
> > Okay, here's the question:
> > 
> > Does userspace require anything in the ifdef __ASSEMBLY__ bits?
> 
> __ASSEMBLY__ is not specific to kernel. Any one can take benefit of it.
> 
> 
> > In any case, passing -D__KERNEL__ or -U__KERNEL__ allows unifdef to
> > do the right thing.
> > 
> > The problem which unifdef has is that if it finds a symbol in an
> > evaluation that it doesn't know about, it fails the expansion
> > entirely, rather than checking whether the expansion always results
> > in something which should be omitted.  In other words:
> > 
> > #if defined(__KERNEL__) && (<unknown>)
> > 
> 
> The problem is why you are trying to complex things which are simple and
> straight.

What you're saying is "you may not follow valid C ways of expressing
conditional compilation" to which I say "go and piss in someone elses
pool".

Since the fix for this in unifdef is soo trivial, and it doesn't require
people to write stuff in ways that stupid idiotic tools can understand,
I'm NEVER going to apply the fix to hwdef.h.

So you now have two options: either supply the (correct) additional
parameter to unifdef, or ignore the stupid idiotic warning message.

> My request to you please think bigger and look at bigger picture.

Same response to you actually.  What I'm doing is valid C and there
has NEVER been this convention you're trying to make out.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:

  reply	other threads:[~2009-06-06  9:14 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-04 12:23 [PATCH 0/6] headers_check fix patches 20090604 Jaswinder Singh Rajput
2009-06-04 12:27 ` [PATCH 1/6] headers_check fix: arm, hwcap.h Jaswinder Singh Rajput
2009-06-04 12:29   ` [PATCH 2/6] headers_check fix: ia64, fpswa.h Jaswinder Singh Rajput
2009-06-04 12:31     ` [PATCH 3/6] headers_check fix: m68k, swab.h Jaswinder Singh Rajput
2009-06-04 12:35       ` [PATCH 4/6] headers_check fix: mips, ioctl.h Jaswinder Singh Rajput
2009-06-04 12:37         ` [PATCH 5/6] headers_check fix: mn10300, ptrace.h Jaswinder Singh Rajput
2009-06-04 12:38           ` [PATCH 6/6] headers_check fix: mn10300, setup.h Jaswinder Singh Rajput
2009-06-04 12:46         ` [PATCH 4/6] headers_check fix: mips, ioctl.h Ralf Baechle
2009-06-04 20:09           ` Sam Ravnborg
2009-06-05  9:34             ` Arnd Bergmann
2009-06-05 12:04               ` Ralf Baechle
2009-06-04 20:22     ` [PATCH 2/6] headers_check fix: ia64, fpswa.h Sam Ravnborg
2009-06-08 16:33       ` Luck, Tony
2009-06-08 17:48         ` [PATCH] ia64: unexport fpswa.h Sam Ravnborg
2009-06-05  9:26     ` [PATCH 2/6] headers_check fix: ia64, fpswa.h Arnd Bergmann
2009-06-04 12:53   ` [PATCH 1/6] headers_check fix: arm, hwcap.h Russell King
2009-06-04 15:45     ` Jaswinder Singh Rajput
2009-06-04 20:16     ` Sam Ravnborg
2009-06-05 20:10       ` Russell King
2009-06-05 20:17         ` Robert P. J. Day
2009-06-05 20:48       ` Russell King
2009-06-05 21:24         ` Sam Ravnborg
2009-06-06  8:50         ` Jaswinder Singh Rajput
2009-06-06  9:12           ` Russell King [this message]
2009-06-06  9:34             ` Jaswinder Singh Rajput
2009-06-04 20:12 ` [PATCH 0/6] headers_check fix patches 20090604 Sam Ravnborg
2009-06-05  2:00   ` Jaswinder Singh Rajput
2009-06-06  8:10 ` Jaswinder Singh Rajput
2009-06-06  8:43   ` Sam Ravnborg
2009-06-06  9:09     ` Jaswinder Singh Rajput
2009-06-06 12:54 ` [GIT PULL] headers_check fixes Jaswinder Singh Rajput
2009-06-06 13:02   ` Russell King
2009-06-06 13:34     ` Jaswinder Singh Rajput
2009-06-06 13:41       ` Russell King
2009-06-06 14:39     ` Jaswinder Singh Rajput
2009-06-06 21:47       ` Russell King
2009-06-06 21:51         ` Russell King
2009-06-06 22:12         ` Sam Ravnborg
2009-06-06 23:24           ` Russell King
2009-06-07  7:09             ` Sam Ravnborg
2009-06-07  7:16         ` Sam Ravnborg
2009-06-07 10:15         ` Jaswinder Singh Rajput

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090606091215.GB30463@flint.arm.linux.org.uk \
    --to=rmk+lkml@arm.linux.org.uk \
    --cc=akpm@linux-foundation.org \
    --cc=catalin.marinas@arm.com \
    --cc=jaswinder@kernel.org \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=sam@ravnborg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox