public inbox for linuxppc-dev@ozlabs.org
 help / color / mirror / Atom feed
From: Vitaly Bordug <vitb@kernel.crashing.org>
To: hs@denx.de
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [FIX] fs_enet: Using mii-bitbang as module
Date: Thu, 4 Sep 2008 22:40:18 +0400	[thread overview]
Message-ID: <20080904224018.500188d1@vitb-lp> (raw)
In-Reply-To: <48BF79C2.6050902@denx.de>

В Thu, 04 Sep 2008 08:01:38 +0200
Heiko Schocher <hs@denx.de> пишет:

> Hello Vitaly,
> 
> I tried to use the mii-bitbang driver
> (drivers/net/fs_enet/mii-bitbang.c) as a module and got the following
> error, when inserting it with insmod:
> 
> ~ # insmod fs_enet
> eth0: fs_enet: a6:07:11:7f:de:26
> ~ # insmod mii-bitbang
> mii_bitbang: module license 'unspecified' taints kernel.
> mii_bitbang: Unknown symbol of_address_to_resource
> mii_bitbang: Unknown symbol of_irq_to_resource
> insmod: cannot insert
> '/lib/modules/2.6.27-rc5-01144-g967b424-dirty/kernel/drivers/net/fs_enet/mii-bitbang.ko':
> Unknown symbol in module (-1): No such file or directory ~ #
> 
> Following patch solves this. Maybe you add the other MODULE_ macros
> too?
Maybe _DESCRIPTION()... I'll combine my part with yours and will send it
to netdev.

Thanks,
-Vitaly
> 
> Signed-off-by: Heiko Schocher <hs@denx.de>
> ---
>  drivers/net/fs_enet/mii-bitbang.c                  |    2 +
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/net/fs_enet/mii-bitbang.c
> b/drivers/net/fs_enet/mii-bitbang.c index be4b72f..863ceed 100644
> --- a/drivers/net/fs_enet/mii-bitbang.c
> +++ b/drivers/net/fs_enet/mii-bitbang.c
> @@ -26,6 +26,8 @@
> 
>  #include "fs_enet.h"
> 
> +MODULE_LICENSE("GPL");
> +
>  struct bb_info {
>  	struct mdiobb_ctrl ctrl;
>  	__be32 __iomem *dir;

      reply	other threads:[~2008-09-04 18:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-04  6:01 [FIX] fs_enet: Using mii-bitbang as module Heiko Schocher
2008-09-04 18:40 ` Vitaly Bordug [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080904224018.500188d1@vitb-lp \
    --to=vitb@kernel.crashing.org \
    --cc=hs@denx.de \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox