https://github.com/torvalds/linux
Revision a81114d03e4a529c4b68293249f75438b3c1783f authored by Ard Biesheuvel on 03 February 2018, 10:25:20 UTC, committed by Jean Delvare on 03 February 2018, 10:25:20 UTC
Currently, when booting a kernel with DMI support on a platform that has
no DMI tables, the following output is emitted into the kernel log:

  [    0.128818] DMI not present or invalid.
  ...
  [    1.306659] dmi: Firmware registration failed.
  ...
  [    2.908681] dmi-sysfs: dmi entry is absent.

The first one is a pr_info(), but the subsequent ones are pr_err()s that
complain about a condition that is not really an error to begin with.

So let's clean this up, and give up silently if dma_available is not set.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Martin Hundebøll <mnhu@prevas.dk>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
1 parent a7770ae
History
Tip revision: a81114d03e4a529c4b68293249f75438b3c1783f authored by Ard Biesheuvel on 03 February 2018, 10:25:20 UTC
firmware: dmi: handle missing DMI data gracefully
Tip revision: a81114d
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitattributes -rw-r--r-- 30 bytes
.gitignore -rw-r--r-- 1.4 KB
.mailmap -rw-r--r-- 8.8 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 96.2 KB
Kbuild -rw-r--r-- 2.2 KB
Kconfig -rw-r--r-- 287 bytes
MAINTAINERS -rw-r--r-- 426.6 KB
Makefile -rw-r--r-- 58.5 KB
README -rw-r--r-- 722 bytes

README

back to top