All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ruika You <crazylinuxcnc@gmail.com>
To: Helder Daniel <hdaniel@ualg.pt>
Cc: "Xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] Error: could not insert module kernel-task.ko: Unknown symbol in module
Date: Mon, 20 Apr 2015 19:23:35 +0800	[thread overview]
Message-ID: <CABqyFP-2R-r_OWHs7zgLLKEUjBfL1amuOteAEKNKBVye-E6Xmg@mail.gmail.com> (raw)
In-Reply-To: <CAKk99t1NdbeEWeB9hTztoZyDS7XDFzHeDRjMypfURLVkLqENkA@mail.gmail.com>

Dear Helder Daniel,

Thanks for your guide, I solve this issue.

MODULES        =hello
PWD          := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
KSRC         ?= /lib/modules/$(shell uname -r)/build
obj-m         += ${patsubst %, %.o, $(MODULES)}

#comment this line change to your proposal
#EXTRA_CFLAGS    = -I$(KSRC)/include/xenomai -D_GNU_SOURCE -D_REENTRANT
-D__XENO__

EXTRA_CFLAGS:=$(shell /usr/xenomai/bin/xeno-config --skin native --cflags)
all:
    make -C $(KSRC) M=$(PWD) modules
clean::
    $(RM) $(CLEANMOD) *.o *.ko *.mod.c Module*.symvers Module.markers
modules.order
    $(RM) -R .tmp*

make -C /lib/modules/3.14.0/build M=/home/edm/test/hello modules
make[1]: Entering directory `/home/edm/linuxcnc/linux-kernel'
  CC [M]  /home/edm/test/hello/hello.o
In file included from /home/edm/test/hello/hello.c:4:0:
/usr/xenomai/include/native/task.h: In function ‘rt_task_spawn’:
/usr/xenomai/include/native/task.h:319:5: warning: ‘rt_task_create’ is
deprecated (declared at /usr/xenomai/include/native/task.h:252)
[-Wdeprecated-declarations]
/home/edm/test/hello/hello.c: In function ‘init_module’:
/home/edm/test/hello/hello.c:24:1: warning: ‘rt_task_create’ is deprecated
(declared at /usr/xenomai/include/native/task.h:252)
[-Wdeprecated-declarations]
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/edm/test/hello/hello.mod.o
  LD [M]  /home/edm/test/hello/hello.ko
make[1]: Leaving directory `/home/edm/linuxcnc/linux-kernel'

By the way, I am wondering are there warning OK?

-chengxi

  reply	other threads:[~2015-04-20 11:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-18 10:32 [Xenomai] Error: could not insert module kernel-task.ko: Unknown symbol in module crazylinuxcnc
2015-04-20  8:28 ` Helder Daniel
2015-04-20 11:23   ` Ruika You [this message]
2015-04-20 12:20     ` Helder Daniel
  -- strict thread matches above, loose matches on Subject: below --
2015-04-18  2:52 Ruika You
2015-04-18  9:35 ` Helder Daniel

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=CABqyFP-2R-r_OWHs7zgLLKEUjBfL1amuOteAEKNKBVye-E6Xmg@mail.gmail.com \
    --to=crazylinuxcnc@gmail.com \
    --cc=hdaniel@ualg.pt \
    --cc=xenomai@xenomai.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.