Re: [PATCH 2/4] kbuild: Fix <linux/version.h> for X.Y versions

From: Michal Marek
Date: Tue May 31 2011 - 05:02:01 EST


On 30.5.2011 17:08, Valdis.Kletnieks@xxxxxx wrote:
On Mon, 30 May 2011 16:50:50 +0200, Michal Marek said:

+ expr $(VERSION) \* 65536 + $(PATCHLEVEL) \* 256 + 0$(SUBLEVEL)); \

expr isn't going to interpret that last field as octal, is it?

As I wrote in the changelog: "expr treats all numbers as decimals, so prepending a zero is safe." POSIX requires this, FWIW.

Michal
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/