[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHx5RXBFdzsgKXR94gdZd2b=uz8PJDg4OjLPJxKtsdhcjJq3Qw@mail.gmail.com>
Date: Mon, 13 May 2024 18:40:19 +0100
From: Stephen Langstaff <stephenlangstaff1@...il.com>
To: Andrew Lunn <andrew@...n.ch>
Cc: Florian Fainelli <f.fainelli@...il.com>, linux-kernel@...r.kernel.org,
"OlteanV@...il.com" <OlteanV@...il.com>
Subject: Re: drivers/net/dsa/dsa_loop_bdinfo.c build problems
On Mon, May 13, 2024 at 5:54 PM Andrew Lunn <andrew@...n.ch> wrote:
> As Florian pointed out, dsa_loop_bdinfo.o should be built into your
> kernel. When you insmod dsa_loop.ko, it should match the data in
> dsa_loop_bdinfo to the dsa_loop driver an instantiate an instance of
> it. Do you see that happening?
Well, if I fiddle with the Makefiles to get dsa_loop_bdinfo built as a
module (as opposed to not building at all) then I see the following
behaviour:
root@...hine:~/dsa_test# ls
dsa_loop.ko dsa_loop_bdinfo.ko
root@...hine:~/dsa_test# modprobe dsa_core
root@...hine:~/dsa_test# insmod dsa_loop_bdinfo.ko
root@...hine:~/dsa_test# insmod dsa_loop.ko
root@...hine:~/dsa_test# lsmod
Module Size Used by
dsa_loop 16384 0
dsa_loop_bdinfo 16384 0
dsa_core 118784 1 dsa_loop
..
..and I see no new interfaces reported by ifconfig -a
[just the existing eth0, eth1 and lo0 interfaces]
I will revert my changes to the Makefiles and confirm that
dsa_loop_bdinfo.o does not get built into the kernel - that's an
overnight build for me so bye for now!
Powered by blists - more mailing lists