mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Ping Cheng <pingc@wacom.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Removing of UTS_RELEASE in include/linux/version.h
Date: Thu, 17 Aug 2006 06:52:42 +0200	[thread overview]
Message-ID: <20060817045242.GB16320@mars.ravnborg.org> (raw)
In-Reply-To: <6753EB6004AFF34FAA275742C104F95201753B@wacom-nt10.wacom.com>

On Wed, Aug 16, 2006 at 05:46:06PM -0700, Ping Cheng wrote:
> Hi Sam,
> 
> I was told that the removing of UTS_RELEASE in include/linux/version.h is
> permanent. I use it in my configuration script to get the version
> numbers of different kernel build sources.  Greg k-h told me to ask you
> about how to properly get the kernel source version.
> Do you have any suggestions?
For a propely configured kernel you can use 'make kernelrelease' which
will give you the same as UTS_RELEASE.

To get kernel version alone you can use 'make kernelversion'.

In a source file to be backward compatible you can use:
#include <linux/version.h>
#ifndef UTS_RELEASE
#include <linux/uts_release.h>
#endif

But in general using UTS_RELEASE in source is almost a sign of something
wrong.
For a module the UTS_RELEASE is retreiveable with modinfo.

> Please don't forget to cc me directly since I am not in the mailing list.
And likewise. Address me directly next time with cc: to lkml. I may miss
lkml mails.

	Sam

  reply	other threads:[~2006-08-17  4:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-17  0:46 Ping Cheng
2006-08-17  4:52 ` Sam Ravnborg [this message]
2006-08-17 12:16 ` Luigi Genoni

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=20060817045242.GB16320@mars.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pingc@wacom.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

all inboxes | Powered by JetHome®