Re: [PATCH net-next] net: can: Fix compiling warning

From: Oliver Hartkopp
Date: Mon Aug 12 2019 - 04:11:31 EST


On 12/08/2019 07.48, maowenan wrote:
On 2019/8/7 0:41, Oliver Hartkopp wrote:

I compiled the code (the original version), but I do not get that "Should it be static?" warning:

here are my steps for net/can/bcm.c,
make allmodconfig ARCH=mips CROSS_COMPILE=mips-linux-gnu-
make C=2 net/can/bcm.o ARCH=mips CROSS_COMPILE=mips-linux-gnu-

There were some sparse _errors_ in my setup that hide that "static" warning. I will use sparse by default now.

Many thanks,
Oliver