linux-newbie.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: wuzhouhui <wuzhouhui14@mails.ucas.ac.cn>
To: Rohith Seelaboyina <rohith.476@gmail.com>
Cc: linux-newbie@vger.kernel.org
Subject: Re: what happened if kernel version is different from module build
Date: Mon, 16 Oct 2017 09:45:36 +0800	[thread overview]
Message-ID: <14ec0232-272c-8205-bbd9-1929cc231b97@mails.ucas.ac.cn> (raw)
In-Reply-To: <CAPQTdvyVuggihiTPbyuQ0zL87C59HFAqXgbQK8mWyPHJeiD9dg@mail.gmail.com>


On 10/15/2017 11:25 PM, Rohith Seelaboyina wrote:
> It can't be installed due to version mismatch
In fact, I did load it successfully in different kernel. What I worried 
is that the
Module.symvers and System.map of these two kernel are different, and module
building needs them. I only fix some bugs of schedule code:

diff -uprN linux-2.6.32-431.el6.6.vsds.x86_64.orig/ 
linux-2.6.32-431.el6.6.vsds.x86_64/|diffstat  -p0
  linux-2.6.32-431.el6.6.vsds.x86_64/kernel/sched.c      |   26 ++---
  linux-2.6.32-431.el6.6.vsds.x86_64/kernel/sched_fair.c |   76 
++++++++++++-----
  2 files changed, 69 insertions(+), 33 deletions(-)
>
> On Oct 15, 2017 7:39 PM, "wuzhouhui" <wuzhouhui14@mails.ucas.ac.cn 
> <mailto:wuzhouhui14@mails.ucas.ac.cn>> wrote:
>
>     Suppose I compile a kernel module in kernel 2.6.32-431.el6.x86_64,
>     but I load it
>     successfully in kernel 2.6.32-432.el6.x86_64. Can this module
>     works properly? Or
>     whether it is harm to system?
>
>     Thanks!
>     --
>     To unsubscribe from this list: send the line "unsubscribe
>     linux-newbie" in
>     the body of a message to majordomo@vger.kernel.org
>     <mailto:majordomo@vger.kernel.org>
>     More majordomo info at http://vger.kernel.org/majordomo-info.html
>     <http://vger.kernel.org/majordomo-info.html>
>     Please read the FAQ at http://www.linux-learn.org/faqs
>     <http://www.linux-learn.org/faqs>
>

--
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

      parent reply	other threads:[~2017-10-16  1:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-15 14:00 what happened if kernel version is different from module build wuzhouhui
2017-10-15 20:04 ` Hubert Chaumette
     [not found] ` <CAPQTdvyVuggihiTPbyuQ0zL87C59HFAqXgbQK8mWyPHJeiD9dg@mail.gmail.com>
2017-10-16  1:45   ` wuzhouhui [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=14ec0232-272c-8205-bbd9-1929cc231b97@mails.ucas.ac.cn \
    --to=wuzhouhui14@mails.ucas.ac.cn \
    --cc=linux-newbie@vger.kernel.org \
    --cc=rohith.476@gmail.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).