linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ERROR: modpost: "mac_pton" undefined!
@ 2020-11-13 11:58 kernel test robot
  2020-11-13 12:38 ` Laurent Vivier
  0 siblings, 1 reply; 7+ messages in thread
From: kernel test robot @ 2020-11-13 11:58 UTC (permalink / raw)
  To: Laurent Vivier; +Cc: kbuild-all, linux-kernel, Michael S. Tsirkin

[-- Attachment #1: Type: text/plain, Size: 1349 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba
commit: 0c86d774883fa17e7c81b0c8838b88d06c2c911e vdpasim: allow to assign a MAC address
date:   2 weeks ago
config: openrisc-randconfig-r035-20201113 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0c86d774883fa17e7c81b0c8838b88d06c2c911e
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 0c86d774883fa17e7c81b0c8838b88d06c2c911e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>, old ones prefixed by <<):

>> ERROR: modpost: "mac_pton" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined!

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28245 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ERROR: modpost: "mac_pton" undefined!
  2020-11-13 11:58 ERROR: modpost: "mac_pton" undefined! kernel test robot
@ 2020-11-13 12:38 ` Laurent Vivier
  2020-11-13 13:12   ` Andy Shevchenko
  2020-11-13 15:17   ` Michael S. Tsirkin
  0 siblings, 2 replies; 7+ messages in thread
From: Laurent Vivier @ 2020-11-13 12:38 UTC (permalink / raw)
  To: kernel test robot; +Cc: kbuild-all, linux-kernel, Michael S. Tsirkin

On 13/11/2020 12:58, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba
> commit: 0c86d774883fa17e7c81b0c8838b88d06c2c911e vdpasim: allow to assign a MAC address
> date:   2 weeks ago
> config: openrisc-randconfig-r035-20201113 (attached as .config)
> compiler: or1k-linux-gcc (GCC) 9.3.0
> reproduce (this is a W=1 build):
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0c86d774883fa17e7c81b0c8838b88d06c2c911e
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout 0c86d774883fa17e7c81b0c8838b88d06c2c911e
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc 
> 
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
> 
> All errors (new ones prefixed by >>, old ones prefixed by <<):
> 
>>> ERROR: modpost: "mac_pton" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined!
>

I think something like this might fix the problem.


diff --git a/drivers/vdpa/Kconfig b/drivers/vdpa/Kconfig
index d7d32b656102..d2de1cefd5cb 100644
--- a/drivers/vdpa/Kconfig
+++ b/drivers/vdpa/Kconfig
@@ -13,6 +13,7 @@ config VDPA_SIM
        depends on RUNTIME_TESTING_MENU && HAS_DMA
        select DMA_OPS
        select VHOST_RING
+       select NET
        default n
        help
          vDPA networking device simulator which loop TX traffic back

I'm going to test with .config and post a patch.

thanks,
Laurent


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: ERROR: modpost: "mac_pton" undefined!
  2020-11-13 12:38 ` Laurent Vivier
@ 2020-11-13 13:12   ` Andy Shevchenko
  2020-11-13 13:19     ` Laurent Vivier
  2020-11-13 15:17   ` Michael S. Tsirkin
  1 sibling, 1 reply; 7+ messages in thread
From: Andy Shevchenko @ 2020-11-13 13:12 UTC (permalink / raw)
  To: Laurent Vivier
  Cc: kernel test robot, kbuild-all, Linux Kernel Mailing List,
	Michael S. Tsirkin

On Fri, Nov 13, 2020 at 2:42 PM Laurent Vivier <lvivier@redhat.com> wrote:

...

> > If you fix the issue, kindly add following tag as appropriate
> > Reported-by: kernel test robot <lkp@intel.com>
> >
> > All errors (new ones prefixed by >>, old ones prefixed by <<):
> >
> >>> ERROR: modpost: "mac_pton" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined!
>
> I think something like this might fix the problem.

...

> +       select NET
>         default n

You may also drop 'default n' :-)

But what I want to say is that API is under NET_UTILS, I dunno if the
driver requires full NET to be selected. And IIRC NET_UTILS is
selected by NET.

>         help
>           vDPA networking device simulator which loop TX traffic back
>
> I'm going to test with .config and post a patch.


-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ERROR: modpost: "mac_pton" undefined!
  2020-11-13 13:12   ` Andy Shevchenko
@ 2020-11-13 13:19     ` Laurent Vivier
  2020-11-13 14:32       ` Andy Shevchenko
  2020-11-13 15:19       ` Michael S. Tsirkin
  0 siblings, 2 replies; 7+ messages in thread
From: Laurent Vivier @ 2020-11-13 13:19 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: kernel test robot, kbuild-all, Linux Kernel Mailing List,
	Michael S. Tsirkin

On 13/11/2020 14:12, Andy Shevchenko wrote:
> On Fri, Nov 13, 2020 at 2:42 PM Laurent Vivier <lvivier@redhat.com> wrote:
> 
> ...
> 
>>> If you fix the issue, kindly add following tag as appropriate
>>> Reported-by: kernel test robot <lkp@intel.com>
>>>
>>> All errors (new ones prefixed by >>, old ones prefixed by <<):
>>>
>>>>> ERROR: modpost: "mac_pton" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined!
>>
>> I think something like this might fix the problem.
> 
> ...
> 
>> +       select NET
>>         default n
> 
> You may also drop 'default n' :-)
> 
> But what I want to say is that API is under NET_UTILS, I dunno if the
> driver requires full NET to be selected. And IIRC NET_UTILS is
> selected by NET.

I think GENERIC_NET_UTILS might be enough.

The problem I have for the moment is to find or1k-linux-gcc for my Fedora 33...

Thanks,
Laurent


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ERROR: modpost: "mac_pton" undefined!
  2020-11-13 13:19     ` Laurent Vivier
@ 2020-11-13 14:32       ` Andy Shevchenko
  2020-11-13 15:19       ` Michael S. Tsirkin
  1 sibling, 0 replies; 7+ messages in thread
From: Andy Shevchenko @ 2020-11-13 14:32 UTC (permalink / raw)
  To: Laurent Vivier
  Cc: kernel test robot, kbuild-all, Linux Kernel Mailing List,
	Michael S. Tsirkin

On Fri, Nov 13, 2020 at 3:19 PM Laurent Vivier <lvivier@redhat.com> wrote:
> On 13/11/2020 14:12, Andy Shevchenko wrote:
> > On Fri, Nov 13, 2020 at 2:42 PM Laurent Vivier <lvivier@redhat.com> wrote:

...

> > But what I want to say is that API is under NET_UTILS, I dunno if the
> > driver requires full NET to be selected. And IIRC NET_UTILS is
> > selected by NET.
>
> I think GENERIC_NET_UTILS might be enough.

Good!

> The problem I have for the moment is to find or1k-linux-gcc for my Fedora 33...

Usually for a compilation test for the kernel is enough to have
precompiled compilers from kernel.org [1].

[1]: https://mirrors.edge.kernel.org/pub/tools/crosstool/

-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ERROR: modpost: "mac_pton" undefined!
  2020-11-13 12:38 ` Laurent Vivier
  2020-11-13 13:12   ` Andy Shevchenko
@ 2020-11-13 15:17   ` Michael S. Tsirkin
  1 sibling, 0 replies; 7+ messages in thread
From: Michael S. Tsirkin @ 2020-11-13 15:17 UTC (permalink / raw)
  To: Laurent Vivier; +Cc: kernel test robot, kbuild-all, linux-kernel

On Fri, Nov 13, 2020 at 01:38:40PM +0100, Laurent Vivier wrote:
> On 13/11/2020 12:58, kernel test robot wrote:
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head:   585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba
> > commit: 0c86d774883fa17e7c81b0c8838b88d06c2c911e vdpasim: allow to assign a MAC address
> > date:   2 weeks ago
> > config: openrisc-randconfig-r035-20201113 (attached as .config)
> > compiler: or1k-linux-gcc (GCC) 9.3.0
> > reproduce (this is a W=1 build):
> >         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> >         chmod +x ~/bin/make.cross
> >         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0c86d774883fa17e7c81b0c8838b88d06c2c911e
> >         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> >         git fetch --no-tags linus master
> >         git checkout 0c86d774883fa17e7c81b0c8838b88d06c2c911e
> >         # save the attached .config to linux build tree
> >         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc 
> > 
> > If you fix the issue, kindly add following tag as appropriate
> > Reported-by: kernel test robot <lkp@intel.com>
> > 
> > All errors (new ones prefixed by >>, old ones prefixed by <<):
> > 
> >>> ERROR: modpost: "mac_pton" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined!
> >
> 
> I think something like this might fix the problem.
> 
> 
> diff --git a/drivers/vdpa/Kconfig b/drivers/vdpa/Kconfig
> index d7d32b656102..d2de1cefd5cb 100644
> --- a/drivers/vdpa/Kconfig
> +++ b/drivers/vdpa/Kconfig
> @@ -13,6 +13,7 @@ config VDPA_SIM
>         depends on RUNTIME_TESTING_MENU && HAS_DMA
>         select DMA_OPS
>         select VHOST_RING
> +       select NET
>         default n
>         help
>           vDPA networking device simulator which loop TX traffic back


NET isn't usually selected, maybe depends on NET

> I'm going to test with .config and post a patch.
> 
> thanks,
> Laurent


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ERROR: modpost: "mac_pton" undefined!
  2020-11-13 13:19     ` Laurent Vivier
  2020-11-13 14:32       ` Andy Shevchenko
@ 2020-11-13 15:19       ` Michael S. Tsirkin
  1 sibling, 0 replies; 7+ messages in thread
From: Michael S. Tsirkin @ 2020-11-13 15:19 UTC (permalink / raw)
  To: Laurent Vivier
  Cc: Andy Shevchenko, kernel test robot, kbuild-all,
	Linux Kernel Mailing List

On Fri, Nov 13, 2020 at 02:19:31PM +0100, Laurent Vivier wrote:
> On 13/11/2020 14:12, Andy Shevchenko wrote:
> > On Fri, Nov 13, 2020 at 2:42 PM Laurent Vivier <lvivier@redhat.com> wrote:
> > 
> > ...
> > 
> >>> If you fix the issue, kindly add following tag as appropriate
> >>> Reported-by: kernel test robot <lkp@intel.com>
> >>>
> >>> All errors (new ones prefixed by >>, old ones prefixed by <<):
> >>>
> >>>>> ERROR: modpost: "mac_pton" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined!
> >>
> >> I think something like this might fix the problem.
> > 
> > ...
> > 
> >> +       select NET
> >>         default n
> > 
> > You may also drop 'default n' :-)
> > 
> > But what I want to say is that API is under NET_UTILS, I dunno if the
> > driver requires full NET to be selected. And IIRC NET_UTILS is
> > selected by NET.
> 
> I think GENERIC_NET_UTILS might be enough.

Yes that is ok to select.
But really vdpa sim is a fake ethernet device, nothing
much is lost if it depends on NET too.

> The problem I have for the moment is to find or1k-linux-gcc for my Fedora 33...
> 
> Thanks,
> Laurent


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-11-13 15:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-13 11:58 ERROR: modpost: "mac_pton" undefined! kernel test robot
2020-11-13 12:38 ` Laurent Vivier
2020-11-13 13:12   ` Andy Shevchenko
2020-11-13 13:19     ` Laurent Vivier
2020-11-13 14:32       ` Andy Shevchenko
2020-11-13 15:19       ` Michael S. Tsirkin
2020-11-13 15:17   ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).