All of lore.kernel.org
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Export byteorder.h and swab.h a.out.h to userspace
Date: Thu, 4 Sep 2008 23:11:01 -0700	[thread overview]
Message-ID: <20080905061101.GA7892@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 386 bytes --]

Hi,

Some architectures have moved the asm/ into arch/ and some have not. This patch checks for a.out.h in both places before exporting it.

When building headers for arm I noticed that userspace headers need linux/byteorder.h and inturn swab.h also to be exported to userspace as asm/byteorder.h needs it.

I test build headers_install for all possible architecutures.

Thanks

-Khem


[-- Attachment #2: diff --]
[-- Type: text/plain, Size: 1871 bytes --]

Signed-off-by: Khem Raj <raj.khem@gmail.com>

diff --git a/include/asm-generic/Kbuild.asm b/include/asm-generic/Kbuild.asm
index 1170dc6..04ccba5 100644
--- a/include/asm-generic/Kbuild.asm
+++ b/include/asm-generic/Kbuild.asm
@@ -1,9 +1,13 @@
 ifneq ($(wildcard $(srctree)/include/asm-$(SRCARCH)/kvm.h),)
 header-y  += kvm.h
+else ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm.h),)
+header-y  += kvm.h
 endif
 
 ifneq ($(wildcard $(srctree)/include/asm-$(SRCARCH)/a.out.h),)
 unifdef-y += a.out.h
+else ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/a.out.h),)
+unifdef-y += a.out.h
 endif
 unifdef-y += auxvec.h
 unifdef-y += byteorder.h
diff --git a/include/linux/Kbuild b/include/linux/Kbuild
index 5939125..49e0fbd 100644
--- a/include/linux/Kbuild
+++ b/include/linux/Kbuild
@@ -41,6 +41,7 @@ header-y += baycom.h
 header-y += bfs_fs.h
 header-y += blkpg.h
 header-y += bpqether.h
+header-y += byteorder.h
 header-y += can.h
 header-y += cdk.h
 header-y += chio.h
@@ -167,7 +168,9 @@ unifdef-y += acct.h
 unifdef-y += adb.h
 unifdef-y += adfs_fs.h
 unifdef-y += agpgart.h
-ifneq ($(wildcard $(srctree)/include/asm-$(SRCARCH)/a.out.h),)
+ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/a.out.h),)
+unifdef-y += a.out.h
+else ifneq ($(wildcard $(srctree)/include/asm-$(SRCARCH)/a.out.h),)
 unifdef-y += a.out.h
 endif
 unifdef-y += apm_bios.h
@@ -260,6 +263,8 @@ unifdef-y += kernel.h
 unifdef-y += keyboard.h
 ifneq ($(wildcard $(srctree)/include/asm-$(SRCARCH)/kvm.h),)
 unifdef-y += kvm.h
+else ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm.h),)
+unifdef-y += kvm.h
 endif
 unifdef-y += llc.h
 unifdef-y += loop.h
@@ -334,6 +339,7 @@ unifdef-y += soundcard.h
 unifdef-y += stat.h
 unifdef-y += stddef.h
 unifdef-y += string.h
+unifdef-y += swab.h
 unifdef-y += synclink.h
 unifdef-y += sysctl.h
 unifdef-y += tcp.h

                 reply	other threads:[~2008-09-05  6:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20080905061101.GA7892@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.