]> git.baikalelectronics.ru Git - kernel.git/commit
random: fix warning message on ia64 and parisc
authorHelge Deller <deller@gmx.de>
Tue, 8 Aug 2017 16:28:41 +0000 (18:28 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 8 Aug 2017 16:36:46 +0000 (09:36 -0700)
commitbfeb9eaa2790be670e00c05f8f86850401dac521
treeced87ea4ce1ab9ad9f8754c6a9b7c5e06c48dedf
parent6e554b96745b235ce81e99cfcd5ed39247a4a781
random: fix warning message on ia64 and parisc

Fix the warning message on the parisc and IA64 architectures to show the
correct function name of the caller by using %pS instead of %pF. The
message is printed with the value of _RET_IP_ which calls
__builtin_return_address(0) and as such returns the IP address caller
instead of pointer to a function descriptor of the caller.

The effect of this patch is visible on the parisc and ia64 architectures
only since those are the ones which use function descriptors while on
all others %pS and %pF will behave the same.

Cc: Theodore Ts'o <tytso@mit.edu>
Cc: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Fixes: cdf63e969562 ("random: suppress spammy warnings about unseeded randomness")
Fixes: ca3f7feaf96a ("random: warn when kernel uses unseeded randomness")
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/random.c