kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: gmate.amit@gmail.com (Kumar amit mehta)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Tools for checking incorrect usage of locking techniques in k-space
Date: Tue, 6 Nov 2012 01:30:11 -0800	[thread overview]
Message-ID: <20121106093011.GB15600@gmail.com> (raw)
In-Reply-To: <CABV+yWtf8HXyMVBpjEcnULo_Z=ZbtmvZBV99bpfPqGBf0vHh0w@mail.gmail.com>

On Mon, Nov 05, 2012 at 09:51:19AM +0400, Vladimir Murzin wrote:
> I've not tried your module, but I suppose that you should get warning
> as soon as you try to take write semaphore once again.
>
Thank you for your mail. I wanted to try what you've suggested, but now I'm
facing a different problem. For kernel-janitorial purpose I sync my local repo
to the linux-next tree almost everyday and once in a while I build and boot
from the latest kernel from the linux-next tree. But most of the time, After
syncing to the latest linux-next tree, I perform only following steps to build
some staging drivers under linux-next tree:

>From the top of the latest linux-next tree:
# make oldconfig
# make prepare
# make modules_prepare
# make M=drivers/staging/<some driver>

The above steps work fine, except that I get some warning message.
<snip>
  WARNING: Symbol version dump /home/amit/lkernel/Module.symvers
  is missing; modules will have no dependencies and modversions.
<snip>

So my understanding is that I've booted from version-X and the linux-next kernel
version is version-Y and because of this version mismatch, I see the above 
WARNING message. Now, because of this kernel version mismatch I am not able to 
insert the module. An attempt to do so returns following error message:

root at ubuntu:/home/amit/ldd3/misc-modules/echo# insmod echo.ko
insmod: error inserting 'echo.ko': -1 Invalid module format

Some information regarding my setup:

amit at ubuntu:~/ldd3/misc-modules/echo$ uname -r
3.7.0-rc3-next-20121029

amit at ubuntu:~/ldd3/misc-modules/echo$ ll /lib/modules/`uname -r`/build
lrwxrwxrwx 1 root root 18 Oct 29 22:02
/lib/modules/3.7.0-rc3-next-20121029/build -> /home/amit/lkernel/

Here the /lib/modules/3.7.0-rc3-next-20121029/build is a softlink to the latest
kernel sources. 

If I try to install the header files for my current kernel(returned by 'uname
-r'), I get following error message:
<snip>
amit at ubuntu:~$ sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-headers-3.7.0-rc3-next-20121029
E: Couldn't find any package by regex 'linux-headers-3.7.0-rc3-next-20121029'
<snip>

How do I ovecome this ? Do I need to build the latest kernel(linux-next) and
boot from it, whenever I sync my local linux-next repository with the remote?
I'd like to be able to check my local changes by building and loading the 
module/subsystem.

-Amit

      parent reply	other threads:[~2012-11-06  9:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-27  4:41 Tools for checking incorrect usage of locking techniques in k-space Kumar amit mehta
2012-10-27 15:56 ` Srivatsa Bhat
2012-10-27 19:06   ` Kumar amit mehta
2012-10-28 18:33     ` Srivatsa Bhat
2012-10-30  5:41       ` Kumar amit mehta
2012-11-05  5:51         ` Vladimir Murzin
2012-11-05  7:24           ` Anand Moon
2012-11-06  9:30           ` Kumar amit mehta [this message]

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=20121106093011.GB15600@gmail.com \
    --to=gmate.amit@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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).