[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191004214334.149976-1-swboyd@chromium.org>
Date: Fri, 4 Oct 2019 14:43:24 -0700
From: Stephen Boyd <swboyd@...omium.org>
To: linux-kernel@...r.kernel.org
Cc: Alessandro Zummo <a.zummo@...ertech.it>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
Alexandre Torgue <alexandre.torgue@...com>,
alsa-devel@...a-project.org, Andrew Lunn <andrew@...n.ch>,
Arnd Bergmann <arnd@...db.de>, Dan Murphy <dmurphy@...com>,
"David S. Miller" <davem@...emloft.net>,
Frank Rowand <frowand.list@...il.com>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Gregory Clement <gregory.clement@...tlin.com>,
Grygorii Strashko <grygorii.strashko@...com>,
Guenter Roeck <linux@...ck-us.net>,
Jacek Anaszewski <jacek.anaszewski@...il.com>,
Jacopo Mondi <jacopo@...ndi.org>,
Jaroslav Kysela <perex@...ex.cz>,
Jason Cooper <jason@...edaemon.net>,
Jean Delvare <jdelvare@...e.com>, Jiri Slaby <jslaby@...e.com>,
Liam Girdwood <lgirdwood@...il.com>,
linux-hwmon@...r.kernel.org, linux-leds@...r.kernel.org,
linux-media@...r.kernel.org, linux-omap@...r.kernel.org,
linux-renesas-soc@...r.kernel.org, linux-rtc@...r.kernel.org,
linux-serial@...r.kernel.org, linux-spi@...r.kernel.org,
linux-usb@...r.kernel.org, Mark Brown <broonie@...nel.org>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Paul Cercueil <paul@...pouillou.net>,
Pavel Machek <pavel@....cz>,
Richard Leitner <richard.leitner@...data.com>,
Riku Voipio <riku.voipio@....fi>,
Rob Herring <robh+dt@...nel.org>,
Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>,
Takashi Iwai <tiwai@...e.com>
Subject: [PATCH 00/10] Stop NULLifying match pointer in of_match_device()
of_match_device() uses of_match_ptr() to make the match table argument
NULL via the pre-processor when CONFIG_OF=n. This makes life harder for
compilers who think that match tables are never used and warn about
unused variables when CONFIG_OF=n. This series changes various callers
to use of_device_get_match_data() instead, which doesn't have this
problem, and removes the of_match_ptr() usage from of_match_device() so
that the compiler can stop complaining about unused variables. It will
do dead code elimination instead and remove the match table if it isn't
actually used.
Huge Cc list!
Cc: Alessandro Zummo <a.zummo@...ertech.it>
Cc: Alexandre Belloni <alexandre.belloni@...tlin.com>
Cc: Alexandre Torgue <alexandre.torgue@...com>
Cc: <alsa-devel@...a-project.org>
Cc: Andrew Lunn <andrew@...n.ch>
Cc: Arnd Bergmann <arnd@...db.de>
Cc: Dan Murphy <dmurphy@...com>
Cc: "David S. Miller" <davem@...emloft.net>
Cc: Frank Rowand <frowand.list@...il.com>
Cc: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Gregory Clement <gregory.clement@...tlin.com>
Cc: Grygorii Strashko <grygorii.strashko@...com>
Cc: Guenter Roeck <linux@...ck-us.net>
Cc: Jacek Anaszewski <jacek.anaszewski@...il.com>
Cc: Jacopo Mondi <jacopo@...ndi.org>
Cc: Jaroslav Kysela <perex@...ex.cz>
Cc: Jason Cooper <jason@...edaemon.net>
Cc: Jean Delvare <jdelvare@...e.com>
Cc: Jiri Slaby <jslaby@...e.com>
Cc: Liam Girdwood <lgirdwood@...il.com>
Cc: <linux-hwmon@...r.kernel.org>
Cc: <linux-leds@...r.kernel.org>
Cc: <linux-media@...r.kernel.org>
Cc: <linux-omap@...r.kernel.org>
Cc: <linux-renesas-soc@...r.kernel.org>
Cc: <linux-rtc@...r.kernel.org>
Cc: <linux-serial@...r.kernel.org>
Cc: <linux-spi@...r.kernel.org>
Cc: <linux-usb@...r.kernel.org>
Cc: Mark Brown <broonie@...nel.org>
Cc: Mauro Carvalho Chehab <mchehab@...nel.org>
Cc: Maxime Coquelin <mcoquelin.stm32@...il.com>
Cc: Paul Cercueil <paul@...pouillou.net>
Cc: Pavel Machek <pavel@....cz>
Cc: Richard Leitner <richard.leitner@...data.com>
Cc: Riku Voipio <riku.voipio@....fi>
Cc: Rob Herring <robh+dt@...nel.org>
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>
Cc: Takashi Iwai <tiwai@...e.com>
Stephen Boyd (10):
leds: pca953x: Use of_device_get_match_data()
media: renesas-ceu: Use of_device_get_match_data()
rtc: armada38x: Use of_device_get_match_data()
drivers: net: davinci_mdio: Use of_device_get_match_data()
serial: stm32: Use of_device_get_match_data()
usb: usb251xb: Use of_device_get_match_data()
ASoC: jz4740: Use of_device_get_match_data()
spi: gpio: Look for a device node instead of match
hwmon: (lm70) Avoid undefined reference to match table
of/device: Don't NULLify match table in of_match_device() with
CONFIG_OF=n
drivers/hwmon/lm70.c | 2 +-
drivers/leds/leds-pca9532.c | 14 +----
drivers/media/platform/renesas-ceu.c | 2 +-
drivers/net/ethernet/ti/davinci_mdio.c | 12 ++---
drivers/rtc/rtc-armada38x.c | 10 ++--
drivers/spi/spi-gpio.c | 5 +-
drivers/tty/serial/stm32-usart.c | 71 ++++++++++++--------------
drivers/tty/serial/stm32-usart.h | 2 +-
drivers/usb/misc/usb251xb.c | 12 ++---
include/linux/of_device.h | 4 +-
sound/soc/jz4740/jz4740-i2s.c | 5 +-
11 files changed, 55 insertions(+), 84 deletions(-)
base-commit: 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c
--
Sent by a computer through tubes
Powered by blists - more mailing lists