Thread (59 messages) 59 messages, 11 authors, 2019-08-28

Re: [PATCH 13/22] input: omap: void using mach/*.h headers

From: Sebastian Reichel <sre@kernel.org>
Date: 2019-08-08 23:39:46
Also in: linux-input, linux-omap, lkml

Hi,

On Thu, Aug 08, 2019 at 03:19:50PM -0700, Dmitry Torokhov wrote:
On Thu, Aug 08, 2019 at 11:46:45PM +0200, Arnd Bergmann wrote:
quoted
On Thu, Aug 8, 2019 at 11:43 PM Dmitry Torokhov wrote:
quoted
On Thu, Aug 08, 2019 at 11:22:22PM +0200, Arnd Bergmann wrote:
quoted
By using the new linux/soc/ti/omap1-io.h header instead,
compile-testing can be enabled, and a CONFIG_ARCH_MULTIPLATFORM
conversion of omap1 may eventually be possible.

The warning in the header file gets removed in order to
allow CONFIG_COMPILE_TEST.
Given that we want to migrate people off this driver everywhere but
OMAP1 I wonder why we would want to improve compile coverage of it.
Mainly for consistency: I'm converting all omap1 drivers in this series to
not rely on mach/* headers and to let them be compiled standalone.
The other drivers don't have a replacement, so I could treat this different
from the rest and skip the Kconfig and platform_data changes if you
prefer.
Yes, because at least with the version you posted we are losing the
#warning telling people to move to matrix_keypad. We could do:

#ifndef CONFIG_COMPILE_TEST
#warning ...
#endif

if you really want to allow compiling standalone for testing.
FWIW the driver depends on ARCH_OMAP1 and the warning is
only printed for !ARCH_OMAP1. In other words: The warning
is never printed at the moment. All OMAP2+ boards moved to
matrix-keypad long time ago and the driver does not support
OMAP2+ anymore since f799a3d8fe170 from 2012.

-- Sebastian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help