summary refs log tree commit diff
path: root/drivers/rtc/rtc-msm6242.c
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.com>2019-04-17 13:53:43 +0200
committerPetr Mladek <pmladek@suse.com>2019-04-26 16:19:10 +0200
commitd529ac4194f2c346b2f62f0f473a578a7357039b (patch)
tree1eaeade0500bd4def25cf7c33b7fa694f1586e93 /drivers/rtc/rtc-msm6242.c
parent1ac2f9789c4b76ad749870c25ffae0cbcd1f510f (diff)
downloadlinux-d529ac4194f2c346b2f62f0f473a578a7357039b.tar.gz
vsprintf: Do not check address of well-known strings
We are going to check the address using probe_kernel_address(). It will
be more expensive and it does not make sense for well known address.

This patch splits the string() function. The variant without the check
is then used on locations that handle string constants or strings defined
as local variables.

This patch does not change the existing behavior.

Link: http://lkml.kernel.org/r/20190417115350.20479-4-pmladek@suse.com
To: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "Tobin C . Harding" <me@tobin.cc>
Cc: Joe Perches <joe@perches.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Cc: linux-kernel@vger.kernel.org
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Diffstat (limited to 'drivers/rtc/rtc-msm6242.c')
0 files changed, 0 insertions, 0 deletions