printk: Move the printk() kerneldoc comment to its new home
authorJonathan Corbet <corbet@lwn.net>
Sun, 25 Jul 2021 21:16:00 +0000 (15:16 -0600)
committerPetr Mladek <pmladek@suse.com>
Mon, 26 Jul 2021 10:36:44 +0000 (12:36 +0200)
commit7d9e2661f268585ca24ab4edbc1e2925b08374b2
treec87b3541239440492816c17a098484d0891a7c74
parent0f0aa84850a4105401723c6c0eeb61c2e67c869a
printk: Move the printk() kerneldoc comment to its new home

Commit 337015573718 ("printk: Userspace format indexing support") turned
printk() into a macro, but left the kerneldoc comment for it with the (now)
_printk() function, resulting in this docs-build warning:

  kernel/printk/printk.c:1: warning: 'printk' not found

Move the kerneldoc comment back next to the (now) macro it's meant to
describe and have the docs build find it there.

Fixes: 337015573718b161 ("printk: Userspace format indexing support")
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/87o8aqt7qn.fsf@meer.lwn.net
Documentation/core-api/printk-basics.rst
include/linux/printk.h
kernel/printk/printk.c