linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: ratheesh k <ratheesh.ksz@gmail.com>
To: linux-c-programming@vger.kernel.org, linux-newbie@vger.kernel.org
Subject: Re: User mode linux- kernel module
Date: Sun, 18 Jul 2010 21:24:21 +0530	[thread overview]
Message-ID: <AANLkTinu9kIwkPmdiXN5VI1ENaj97JZTelMkt2NxFCTl@mail.gmail.com> (raw)
In-Reply-To: <AANLkTin-xKyGFy9pFAtXs-PTJYWLvQ66zdHA7Wvv8bSq@mail.gmail.com>

root@dasaradham-laptop:/home/fox/workspace#
root@dasaradham-laptop:/home/fox/workspace# make  -C
/home/fox/workspace3/linux-2.6.32/ M=`pwd` modules ARCH=um
make: Entering directory `/home/fox/workspace3/linux-2.6.32'
  CC [M]  /home/fox/workspace/hello.o
In file included from
/home/fox/workspace3/linux-2.6.32/arch/um/include/asm/ptrace-generic.h:13,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/asm/ptrace.h:14,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/include/asm/processor-generic.h:13,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/asm/processor.h:54,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:6,
                 from include/linux/module.h:9,
                 from /home/fox/workspace/hello.c:2:
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/shared/sysdep/ptrace.h:43:1:
warning: "HOST_DS" redefined
In file included from
/home/fox/workspace3/linux-2.6.32/arch/um/include/shared/skas_ptregs.h:4,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/shared/sysdep/ptrace.h:17,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/include/asm/ptrace-generic.h:13,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/asm/ptrace.h:14,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/include/asm/processor-generic.h:13,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/asm/processor.h:54,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:6,
                 from include/linux/module.h:9,
                 from /home/fox/workspace/hello.c:2:
/home/fox/workspace3/linux-2.6.32/arch/um/include/shared/user_constants.h:25:1:
warning: this is the location of the previous definition
In file included from
/home/fox/workspace3/linux-2.6.32/arch/um/include/asm/ptrace-generic.h:13,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/asm/ptrace.h:14,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/include/asm/processor-generic.h:13,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/asm/processor.h:54,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:6,
                 from include/linux/module.h:9,
                 from /home/fox/workspace/hello.c:2:
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/shared/sysdep/ptrace.h:44:1:
warning: "HOST_ES" redefined
In file included from
/home/fox/workspace3/linux-2.6.32/arch/um/include/shared/skas_ptregs.h:4,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/shared/sysdep/ptrace.h:17,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/include/asm/ptrace-generic.h:13,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/asm/ptrace.h:14,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/include/asm/processor-generic.h:13,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/asm/processor.h:54,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:6,
                 from include/linux/module.h:9,
                 from /home/fox/workspace/hello.c:2:
/home/fox/workspace3/linux-2.6.32/arch/um/include/shared/user_constants.h:27:1:
warning: this is the location of the previous definition
In file included from
/home/fox/workspace3/linux-2.6.32/arch/um/include/asm/ptrace-generic.h:13,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/asm/ptrace.h:14,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/include/asm/processor-generic.h:13,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/asm/processor.h:54,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:6,
                 from include/linux/module.h:9,
                 from /home/fox/workspace/hello.c:2:
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/shared/sysdep/ptrace.h:45:1:
warning: "HOST_FS" redefined
In file included from
/home/fox/workspace3/linux-2.6.32/arch/um/include/shared/skas_ptregs.h:4,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/shared/sysdep/ptrace.h:17,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/include/asm/ptrace-generic.h:13,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/asm/ptrace.h:14,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/include/asm/processor-generic.h:13,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/asm/processor.h:54,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:6,
                 from include/linux/module.h:9,
                 from /home/fox/workspace/hello.c:2:
/home/fox/workspace3/linux-2.6.32/arch/um/include/shared/user_constants.h:26:1:
warning: this is the location of the previous definition
In file included from
/home/fox/workspace3/linux-2.6.32/arch/um/include/asm/ptrace-generic.h:13,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/asm/ptrace.h:14,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/include/asm/processor-generic.h:13,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/asm/processor.h:54,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:6,
                 from include/linux/module.h:9,
                 from /home/fox/workspace/hello.c:2:
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/shared/sysdep/ptrace.h:46:1:
warning: "HOST_GS" redefined
In file included from
/home/fox/workspace3/linux-2.6.32/arch/um/include/shared/skas_ptregs.h:4,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/shared/sysdep/ptrace.h:17,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/include/asm/ptrace-generic.h:13,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/asm/ptrace.h:14,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/include/asm/processor-generic.h:13,
                 from
/home/fox/workspace3/linux-2.6.32/arch/um/sys-x86_64/asm/processor.h:54,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:6,
                 from include/linux/module.h:9,
                 from /home/fox/workspace/hello.c:2:
/home/fox/workspace3/linux-2.6.32/arch/um/include/shared/user_constants.h:28:1:
warning: this is the location of the previous definition
In file included from include/linux/bitmap.h:8,
                 from include/linux/nodemask.h:95,
                 from include/linux/mmzone.h:16,
                 from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /home/fox/workspace/hello.c:2:
include/linux/string.h:101: warning: conflicting types for built-in
function ‘__builtin_memcmp’
In file included from include/net/sock.h:60,
                 from include/linux/tcp.h:177,
                 from /home/fox/workspace/hello.c:9:
include/net/dst.h: In function ‘dst_hold’:
include/net/dst.h:157: error: negative width in bit-field ‘<anonymous>’
make[1]: *** [/home/fox/workspace/hello.o] Error 1
make: *** [_module_/home/fox/workspace] Error 2
make: Leaving directory `/home/fox/workspace3/linux-2.6.32'
root@dasaradham-laptop:/home/fox/workspace#





On Sat, Jul 17, 2010 at 10:13 PM, ratheesh k <ratheesh.ksz@gmail.com> wrote:
> Hi ,
>
>  i have ubuntu linux  on my 64 bit machine . I have successully built
> and  up an instance of UML  which is 32 bit . I am able to establish
> networking also .
>m
>  I would like to build a simple hello world kernel module on host 64
> bit machine , which should be loaded in UML . How do i build the same
> ?
>
> Thanks,
> Ratheesh
>
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" 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.linux-learn.org/faqs

  reply	other threads:[~2010-07-18 15:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-17 16:43 User mode linux- kernel module ratheesh k
2010-07-18 15:54 ` ratheesh k [this message]
2010-07-19  3:42   ` ratheesh k

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=AANLkTinu9kIwkPmdiXN5VI1ENaj97JZTelMkt2NxFCTl@mail.gmail.com \
    --to=ratheesh.ksz@gmail.com \
    --cc=linux-c-programming@vger.kernel.org \
    --cc=linux-newbie@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 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).