diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-11-19 10:42:26 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-20 16:02:48 (GMT) |
commit | de92718883ddbcd11b738d36ffcf57617b97fa12 (patch) | |
tree | 77924f5e39d1e7aae1a951c84be631d5d97fc214 /kernel/trace | |
parent | 425d3d83707d378d97d1f7d460ce3083a1948c20 (diff) | |
download | linux-de92718883ddbcd11b738d36ffcf57617b97fa12.tar.xz |
net: tulip: turn compile-time warning into dev_warn()
The tulip driver causes annoying build-time warnings for allmodconfig
builds for all recent architectures:
dec/tulip/winbond-840.c:910:2: warning: #warning Processor architecture undefined
dec/tulip/tulip_core.c:101:2: warning: #warning Processor architecture undefined!
This is the last remaining warning for arm64, and I'd like to get rid of
it. We don't really know the cache line size, architecturally it would
be at least 16 bytes, but all implementations I found have 64 or 128
bytes. Configuring tulip for 32-byte lines as we do on ARM32 seems to
be the safe but slow default, and nobody who cares about performance these
days would use a tulip chip anyway, so we can just use that.
To save the next person the job of trying to find out what this is for
and picking a default for their architecture just to kill off the warning,
I'm now removing the preprocessor #warning and turning it into a pr_warn
or dev_warn that prints the equivalent information when the driver gets
loaded.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/trace')
0 files changed, 0 insertions, 0 deletions