linux-stable/drivers
Javier Martinez Canillas 460a4a850b drm/ssd130x: Only define a SPI device ID table when built as a module
[ Upstream commit 01ece65132 ]

The kernel test robot reports a compile warning due the ssd130x_spi_table
variable being defined but not used. This happen when ssd130x-spi driver
is built-in instead of being built as a module, i.e:

  CC      drivers/gpu/drm/solomon/ssd130x-spi.o
  AR      drivers/base/firmware_loader/built-in.a
  AR      drivers/base/built-in.a
  CC      kernel/trace/trace.o
drivers/gpu/drm/solomon/ssd130x-spi.c:155:35: warning: ‘ssd130x_spi_table’ defined but not used [-Wunused-const-variable=]
  155 | static const struct spi_device_id ssd130x_spi_table[] = {
      |                                   ^~~~~~~~~~~~~~~~~

The driver shouldn't need a SPI device ID table and only have an OF device
ID table, but the former is needed to workaround an issue in the SPI core.
This always reports a MODALIAS of the form "spi:<device>" even for devices
registered through Device Trees.

But the table is only needed when the driver built as a module to populate
the .ko alias info. It's not needed when the driver is built-in the kernel.

Fixes: 74373977d2 ("drm/solomon: Add SSD130x OLED displays SPI support")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220530140246.742469-1-javierm@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 15:14:25 +02:00
..
accessibility
acpi ACPI: VIOT: Fix ACS setup 2022-08-17 15:14:14 +02:00
amba ARM: 9207/1: amba: fix refcount underflow if amba_device_add() fails 2022-07-14 13:17:48 +01:00
android fix for breakage in #work.fd this window 2022-06-05 17:14:03 -07:00
ata ata: sata_mv: Fixes expected number of resources now IRQs are gone 2022-08-11 13:22:03 +02:00
atm
auxdisplay
base PM: domains: Ensure genpd_debugfs_dir exists before remove 2022-08-17 15:14:17 +02:00
bcma
block xen/blkfront: force data bouncing when backend is untrusted 2022-07-01 10:00:50 +02:00
bluetooth Bluetooth: btusb: Add Realtek RTL8852C support ID 0x13D3:0x3586 2022-08-11 13:22:05 +02:00
bus bus: hisi_lpc: fix missing platform_device_put() in hisi_lpc_acpi_probe() 2022-08-17 15:14:13 +02:00
cdrom
char random: cap jitter samples per bit to factor of HZ 2022-07-16 10:42:12 -07:00
clk clk: sunxi-ng: Fix H6 RTC clock definition 2022-07-27 16:45:58 -07:00
clocksource clocksource: hyper-v: unexport __init-annotated hv_init_clocksource() 2022-06-08 12:27:08 +00:00
comedi comedi: vmk80xx: fix expression for tx buffer size 2022-06-10 15:21:23 +02:00
connector
counter
cpufreq PM: EM: convert power field to micro-Watts precision and align drivers 2022-08-17 15:14:05 +02:00
cpuidle
crypto crypto: ccp - Use kzalloc for sev ioctl interfaces to prevent kernel memory leak 2022-08-17 15:13:48 +02:00
cxl cxl/mbox: Fix missing variable payload checks in cmd size validation 2022-06-28 22:03:18 -07:00
dax
dca
devfreq PM / devfreq: exynos-bus: Fix NULL pointer dereference 2022-07-08 04:32:26 +09:00
dio
dma dmaengine: lgm: Fix an error handling path in intel_ldma_probe() 2022-07-06 10:53:25 +05:30
dma-buf Three mode setting fixes for fsl-ldb, a fbdev removal use-after-free fix, 2022-07-12 10:44:40 +10:00
edac EDAC/ghes: Set the DIMM label unconditionally 2022-07-27 10:42:52 +02:00
eisa
extcon
firewire firewire: convert sysfs sprintf/snprintf family to sysfs_emit 2022-06-17 10:43:20 +02:00
firmware firmware: tegra: Fix error check return value of debugfs_create_file() 2022-08-17 15:14:05 +02:00
fpga
fsi
gnss
gpio gpio fixes for v5.19-rc8 2022-07-22 12:28:47 -07:00
gpu drm/ssd130x: Only define a SPI device ID table when built as a module 2022-08-17 15:14:25 +02:00
greybus
hid HID: wacom: Don't register pad_input for touch switch 2022-08-17 15:13:42 +02:00
hsi
hte
hv Drivers: hv: vmbus: Release cpu lock in error case 2022-06-10 08:41:28 +00:00
hwmon hwmon: (drivetemp) Add module alias 2022-08-17 15:14:17 +02:00
hwspinlock
hwtracing coresight: Clear the connection field properly 2022-08-17 15:13:57 +02:00
i2c i2c: cadence: Change large transfer count reset logic to be unconditional 2022-07-16 14:44:12 +02:00
i3c
idle intel_idle: Fix false positive RCU splats due to incorrect hardirqs state 2022-07-25 19:39:07 +02:00
iio iio: light: isl29028: Fix the warning in isl29028_remove() 2022-08-17 15:13:53 +02:00
infiniband RDMA/irdma: Fix sleep from invalid context BUG 2022-07-11 03:04:16 -03:00
input Input updates for v5.19-rc6 2022-07-17 07:52:46 -07:00
interconnect Char / Misc / Other smaller driver subsystem updates for 5.19-rc1 2022-06-03 11:36:34 -07:00
iommu iommu/vt-d: Fix RID2PASID setup/teardown failure 2022-07-06 12:59:21 +02:00
ipack
irqchip irqchip/mips-gic: Check the return value of ioremap() in gic_of_init() 2022-08-17 15:14:01 +02:00
isdn
leds ARM: multiplatform changes, part 2 2022-06-02 15:23:54 -07:00
macintosh macintosh/adb: fix oob read in do_adb_query() function 2022-08-11 13:22:05 +02:00
mailbox
mcb
md dm: return early from dm_pr_call() if DM device is suspended 2022-08-17 15:14:21 +02:00
media media: isl7998x: select V4L2_FWNODE to fix build error 2022-08-17 15:13:56 +02:00
memory memory: samsung: exynos5422-dmc: Fix refcount leak in of_get_dram_timings 2022-06-06 11:18:20 +02:00
memstick
message
mfd ARM: multiplatform changes, part 2 2022-06-02 15:23:54 -07:00
misc lkdtm: Disable return thunks in rodata.c 2022-07-20 19:24:53 +02:00
mmc mmc: sdhci-omap: Fix a lockdep warning for PM runtime init 2022-07-13 12:29:17 +02:00
most
mtd mtd: rawnand: arasan: Update NAND bus clock instead of system clock 2022-08-17 15:13:52 +02:00
mux
net ath11k: fix IRQ affinity warning on shutdown 2022-08-17 15:14:25 +02:00
nfc NFC: nxp-nci: don't print header length mismatch on i2c error 2022-06-29 14:05:00 +01:00
ntb
nubus
nvdimm nvdimm: Fix badblocks clear off-by-one error 2022-06-24 11:57:19 -07:00
nvme nvme-pci: Crucial P2 has bogus namespace ids 2022-07-25 07:34:07 +02:00
nvmem
of
opp PM: EM: convert power field to micro-Watts precision and align drivers 2022-08-17 15:14:05 +02:00
parisc parisc: Check the return value of ioremap() in lba_driver_probe() 2022-08-17 15:13:48 +02:00
parport
pci Driver core changes for 5.19-rc1 2022-06-03 11:48:47 -07:00
pcmcia ARM: multiplatform changes, part 2 2022-06-02 15:23:54 -07:00
peci
perf drivers/perf: arm_spe: Fix consistency of SYS_PMSCR_EL1.CX 2022-08-17 15:14:19 +02:00
phy
pinctrl pinctrl: armada-37xx: use raw spinlocks for regmap to avoid invalid wait context 2022-07-19 00:57:38 +02:00
platform platform-drivers-x86 for v5.19-4 2022-07-15 10:12:22 -07:00
pnp
power power: supply: core: Fix boundary conditions in interpolation 2022-06-09 21:08:38 +02:00
powercap PM: EM: convert power field to micro-Watts precision and align drivers 2022-08-17 15:14:05 +02:00
pps
ps3
ptp ptp: ocp: Select CRC16 in the Kconfig. 2022-07-27 18:11:34 -07:00
pwm pwm: lpc18xx: Fix period handling 2022-08-17 15:14:21 +02:00
rapidio
ras
regulator regulator: of: Fix refcount leak bug in of_get_regulation_constraints() 2022-08-17 15:14:18 +02:00
remoteproc
reset
rpmsg Driver core changes for 5.19-rc1 2022-06-03 11:48:47 -07:00
rtc rtc: rx8025: fix 12/24 hour mode detection on RX-8035 2022-08-17 15:13:50 +02:00
s390 s390/qeth: Fix typo 'the the' in comment 2022-07-25 10:52:28 +01:00
sbus
scsi scsi: qla2xxx: Zero undefined mailbox IN registers 2022-08-17 15:13:54 +02:00
sh
siox
slimbus Driver core changes for 5.19-rc1 2022-06-03 11:48:47 -07:00
soc soc: qcom: socinfo: Fix the id of SA8540P SoC 2022-08-17 15:14:18 +02:00
soundwire soundwire: qcom: Check device status before reading devid 2022-08-17 15:13:54 +02:00
spi spi: tegra20-slink: fix UAF in tegra_slink_remove() 2022-08-17 15:14:17 +02:00
spmi
ssb
staging media: [PATCH] pci: atomisp_cmd: fix three missing checks on list iterator 2022-08-17 15:13:56 +02:00
target scsi: target: Fix WRITE_SAME No Data Buffer crash 2022-07-07 16:38:14 -04:00
tc
tee tee: tee_get_drvdata(): fix description of return value 2022-07-08 10:51:24 +02:00
thermal PM: EM: convert power field to micro-Watts precision and align drivers 2022-08-17 15:14:05 +02:00
thunderbolt USB / Thunderbolt changes for 5.19-rc1 2022-06-03 11:17:49 -07:00
tty serial: mvebu-uart: uart2 error bits clearing 2022-08-17 15:13:55 +02:00
ufs scsi: ufs: core: Fix a race condition related to device management 2022-07-26 21:59:29 -04:00
uio
usb usb: dwc3: gadget: fix high speed multiplier setting 2022-08-17 15:13:58 +02:00
vdpa vduse: Tie vduse mgmtdev and its device 2022-06-24 02:49:48 -04:00
vfio vfio: Move IOMMU_CAP_CACHE_COHERENCY test to after we know we have a group 2022-07-05 16:06:50 -06:00
vhost vhost-vdpa: call vhost_vdpa_cleanup during the release 2022-06-27 08:05:35 -04:00
video fbcon: Fix accelerated fbdev scrolling while logo is still shown 2022-08-17 15:13:47 +02:00
virt virt: sev-guest: Pass the appropriate argument type to iounmap() 2022-07-19 22:26:02 +02:00
virtio virtio_ring: make vring_create_virtqueue_split prettier 2022-06-27 08:05:35 -04:00
vlynq
vme
w1
watchdog watchdog: gxp: Add missing MODULE_LICENSE 2022-06-09 12:20:34 +02:00
xen xen/gntdev: Ignore failure to unmap INVALID_GRANT_HANDLE 2022-07-11 11:39:45 +02:00
zorro
Kconfig SCSI misc on 20220604 2022-06-05 09:25:12 -07:00
Makefile SCSI misc on 20220604 2022-06-05 09:25:12 -07:00