Skip to contentSkip to conversation

stmmac compile error

DISCUSSION Piergiorgio Beruto 3 participants 3 messages Nov 25, 2022 – Nov 28, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello!
I've just checked-out the latest changes from git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/master commit b084f6cc3563faf4f4d16c98852c0c734fe18914

When compiling, I got the following error:

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c: In function ‘stmmac_cmdline_opt’:
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:7583:28: error: too many arguments to function ‘sysfs_streq’

 7583 |                 } else if (sysfs_streq(opt, "pause:", 6)) {
      |                            ^~~~~~~~~~~
In file included from ./include/linux/bitmap.h:11,
                 from ./include/linux/cpumask.h:12,
                 from ./include/linux/smp.h:13,
                 from ./include/linux/lockdep.h:14,
                 from ./include/linux/mutex.h:17,
                 from ./include/linux/notifier.h:14,
                 from ./include/linux/clk.h:14,
                 from drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:17:
./include/linux/string.h:185:13: note: declared here
  185 | extern bool sysfs_streq(const char *s1, const char *s2);
      |             ^~~~~~~~~~~

make[6]: *** [scripts/Makefile.build:250: drivers/net/ethernet/stmicro/stmmac/stmmac_main.o] Error 1

NOTE: I did not make any changes, it is a clean build. Anyone knows what this could be?

Thank you,
Piergiorgio

#1 lore raw

Hi Piergiorgio,

Quoted 22 lines · Piergiorgio Beruto

Hello!
I've just checked-out the latest changes from git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/master commit b084f6cc3563faf4f4d16c98852c0c734fe18914

When compiling, I got the following error:

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c: In function ‘stmmac_cmdline_opt’:
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:7583:28: error: too many arguments to function ‘sysfs_streq’

 7583 |                 } else if (sysfs_streq(opt, "pause:", 6)) {
      |                            ^~~~~~~~~~~
In file included from ./include/linux/bitmap.h:11,
                 from ./include/linux/cpumask.h:12,
                 from ./include/linux/smp.h:13,
                 from ./include/linux/lockdep.h:14,
                 from ./include/linux/mutex.h:17,
                 from ./include/linux/notifier.h:14,
                 from ./include/linux/clk.h:14,
                 from drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:17:
./include/linux/string.h:185:13: note: declared here
  185 | extern bool sysfs_streq(const char *s1, const char *s2);
      |             ^~~~~~~~~~~
Quoted 7 lines

make[6]: *** [scripts/Makefile.build:250: drivers/net/ethernet/stmicro/stmmac/stmmac_main.o] Error 1

NOTE: I did not make any changes, it is a clean build. Anyone knows what this could be?

Thank you,
Piergiorgio

That's pretty sad. Something went terribly wrong with the review process of this patch.
https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/
I've sent a revert here:
https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/