linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vineet Gupta <Vineet.Gupta1@synopsys.com>
To: David Howells <dhowells@redhat.com>
Cc: James Hogan <james@albanarts.com>,
	"torvalds@osdl.org" <torvalds@osdl.org>,
	"arnd@arndb.de" <arnd@arndb.de>, "hpa@zytor.com" <hpa@zytor.com>,
	"alan@lxorguk.ukuu.org.uk" <alan@lxorguk.ukuu.org.uk>,
	"fengguang.wu@intel.com" <fengguang.wu@intel.com>,
	"linux-arch@vger.kernel.org" <linux-arch@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"arc-linux-dev@synopsys.com" <arc-linux-dev@synopsys.com>
Subject: RE: UAPI for new arches (was Re: [GIT PULL] User API Disintegrate: Preparatory patches)
Date: Thu, 8 Nov 2012 18:21:40 +0000	[thread overview]
Message-ID: <C2D7FE5348E1B147BCA15975FBA230750D9832@in01wembx1.internal.synopsys.com> (raw)
In-Reply-To: <8419.1352387261@warthog.procyon.org.uk>

> Vineet Gupta <Vineet.Gupta1@synopsys.com> wrote:

>> I'm planning to submit ARC Linux kernel port (from Synopsys) for review
>> on lkml and arch mailing lists. I already have a a 3.7-rc3 based kernel
>> (modulo the arch UAPI split). What would be the best way to get the UAPI
>> split done.
>>
>> Can you point me to the latest scripts and the best way to use them (so
>> we have consistent automated split of headers). Otherwise if you like,
>> you could take a stab at it yourself via my tree at
>>
>> git://github.com/organizations/foss-for-synopsys-dwc-arc-processors/linux.git
>> arc-3.7-rc3-newport

> If you look at:
>
>        http://git.infradead.org/users/dhowells/linux-headers.git/shortlog/refs/tags/disintegrate-arc-20121108
>
> You'll find a branch with a patch that does the UAPI disintegration for you as
> one piece.  I've merged your branch onto Linus's latest before doing the
> disintegration.  If you'd prefer it directly on your branch, that should be
> possible too.

Hi David,

Many thanks for doing this. Looking at the disintegrated headers, I have some observations, 
very likely due to shortcomings in my code, which need some clarifying.

While I'd done some of the prep work in my code such as splitting 
__KERNEL__ && __ASSEMBLY__ into two separate lines, majority of orig headers 
didn't have #ifdef __KERNEL__ guard despite the code not being meant for 
user-space ABI. Is that fundamental to UAPI split scripting because it seems to be 
causing setup.h to be in uapi despite seemingly being  kernel internal only.
OTOH the missing guards seem to be benign for several other headers (e.g. bug.h)
Also there's an empty UAPI header generated (tlb.h) - again very likely due to the 
missing guard.

Per you email from last week, When I ran the disintergrate-one.pl script myself I saw a
 whole bunch of empty UAPI files being generated with references in orig header.
I'm not sure what I'm doing wrong. 

For any ABI changes to headers per review of the new port on list (e.g. don't export pt_regs)
would mean moving the code manually from uapi to orig header - right. And if the file becomes
empty just nuke it completely.

How do you reckon we go about fixing these. I don't want to bother you multiple times
hence it would be best if I could reproduce this at my end.

thanks again for you help and time

-Vineet

  reply	other threads:[~2012-11-08 18:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-02 18:36 [GIT PULL] User API Disintegrate: Preparatory patches David Howells
2012-10-04 17:12 ` Geert Uytterhoeven
2012-10-04 17:36 ` David Howells
2012-10-17  8:42 ` James Hogan
2012-10-22 11:50   ` James Hogan
2012-11-01 10:41     ` UAPI for new arches (was Re: [GIT PULL] User API Disintegrate: Preparatory patches) Vineet Gupta
2012-11-08 12:38     ` David Howells
2012-11-08 14:36     ` David Howells
2012-11-08 15:07     ` David Howells
2012-11-08 18:21       ` Vineet Gupta [this message]
2012-11-08 23:19       ` David Howells
2012-11-12 10:57         ` [arc-linux-dev] " Vineet Gupta
2012-11-12 13:14         ` David Howells
2012-11-14 13:01           ` James Hogan
2012-11-14 16:28           ` David Howells

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=C2D7FE5348E1B147BCA15975FBA230750D9832@in01wembx1.internal.synopsys.com \
    --to=vineet.gupta1@synopsys.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=arc-linux-dev@synopsys.com \
    --cc=arnd@arndb.de \
    --cc=dhowells@redhat.com \
    --cc=fengguang.wu@intel.com \
    --cc=hpa@zytor.com \
    --cc=james@albanarts.com \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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;
as well as URLs for NNTP newsgroup(s).