]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: print PCI mmap with %pK
authorBrian Norris <briannorris@chromium.org>
Tue, 4 Jun 2019 17:31:44 +0000 (10:31 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 25 Jun 2019 04:46:33 +0000 (07:46 +0300)
commit3cd08a9b54bafd4246b6b5acc7f6b392b66877b1
treed6c6bf66269b858d512202e2fc9d13593b75eafb
parent924a71fd276fc040c23a5c8814234c4e3267e6ca
mwifiex: print PCI mmap with %pK

Unadorned '%p' has restrictive policies these days, such that it usually
just prints garbage at early boot (see
Documentation/core-api/printk-formats.rst, "kernel will print
``(ptrval)`` until it gathers enough entropy"). Annotating with %pK
(for "kernel pointer") allows the kptr_restrict sysctl to control
printing policy better.

We might just as well drop this message entirely, but this fix was easy
enough for now.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/pcie.c