mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rdunlap@xenotime.net>
To: Alex Davis <alex14641@yahoo.com>
Cc: linville@tuxdriver.com, linux-netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] compile error in ieee80211_ioctl.c
Date: Tue, 25 Apr 2006 14:11:54 -0700	[thread overview]
Message-ID: <20060425141154.347c5889.rdunlap@xenotime.net> (raw)
In-Reply-To: <20060425210450.72120.qmail@web50212.mail.yahoo.com>

On Tue, 25 Apr 2006 14:04:50 -0700 (PDT) Alex Davis wrote:

> Hello:
> 
> I sent this patch earlier and got no response, so I'm sending it again.

There was at least one reply, from me.

The third parameter of module_param() is being misused in your patch.
It represents a "permission" value, such as 0, 0444, 0644, etc.
Or you can use existing #defined values for it.

> I cloned git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-dev.git
> last night and got compile errors while compiling net/d80211/ieee80211_ioctl.c
> into a module:
> 
>   CC [M]  net/d80211/ieee80211_ioctl.o
> net/d80211/ieee80211_ioctl.c:33: error: syntax error before string constant
> net/d80211/ieee80211_ioctl.c:33: warning: type defaults to `int' in declaration of `MODULE_PARM'
> net/d80211/ieee80211_ioctl.c:33: warning: function declaration isn't a prototype
> net/d80211/ieee80211_ioctl.c:33: warning: data definition has no type or storage class
> net/d80211/ieee80211_ioctl.c:43: error: syntax error before string constant
> net/d80211/ieee80211_ioctl.c:43: warning: type defaults to `int' in declaration of `MODULE_PARM'
> net/d80211/ieee80211_ioctl.c:43: warning: function declaration isn't a prototype
> net/d80211/ieee80211_ioctl.c:43: warning: data definition has no type or storage class
> make[2]: *** [net/d80211/ieee80211_ioctl.o] Error 1
> make[1]: *** [net/d80211] Error 2
> make: *** [net] Error 2
> 
> This patch fixes it.
> 
> Signed-off-by: Alex Davis <alex14641@yahoo.com>
> 
> diff --git a/net/d80211/ieee80211_ioctl.c b/net/d80211/ieee80211_ioctl.c
> index 42a7abe..4949e52 100644
> --- a/net/d80211/ieee80211_ioctl.c
> +++ b/net/d80211/ieee80211_ioctl.c
> @@ -30,7 +30,7 @@ #include "aes_ccm.h"
>  
>  
>  static int ieee80211_regdom = 0x10; /* FCC */
> -MODULE_PARM(ieee80211_regdom, "i");
> +module_param(ieee80211_regdom, int, 0x10);
>  MODULE_PARM_DESC(ieee80211_regdom, "IEEE 802.11 regulatory domain; 64=MKK");
>  
>  /*
> @@ -40,7 +40,7 @@ MODULE_PARM_DESC(ieee80211_regdom, "IEEE
>   * module.
>   */
>  static int ieee80211_japan_5ghz /* = 0 */;
> -MODULE_PARM(ieee80211_japan_5ghz, "i");
> +module_param(ieee80211_japan_5ghz, int, 0);
>  MODULE_PARM_DESC(ieee80211_japan_5ghz, "Vendor-updated firmware for 5 GHz");

---
~Randy

  reply	other threads:[~2006-04-25 21:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-25 21:04 Alex Davis
2006-04-25 21:11 ` Randy.Dunlap [this message]
2006-04-25 21:12 ` John W. Linville
2006-04-26 16:29   ` Alex Davis

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=20060425141154.347c5889.rdunlap@xenotime.net \
    --to=rdunlap@xenotime.net \
    --cc=alex14641@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-netdev@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /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

all inboxes | Powered by JetHome®