linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ath: add module information
@ 2009-04-13 20:44 Christian Lamparter
  2009-04-13 20:44 ` maximilian attems
  2009-04-14 11:58 ` Christoph Hellwig
  0 siblings, 2 replies; 8+ messages in thread
From: Christian Lamparter @ 2009-04-13 20:44 UTC (permalink / raw)
  To: linux-wireless; +Cc: Bob Copeland, Luis R. Rodriguez, John W. Linville

This patch adds licensing information, description and author to the module.

Signed-off-by: Christian Lamparter <chunkeey@web.de>
---
Luis,

what does your secretary say?
As we are "borrowing" dual licensed code and I guess Atheros wants
to keep their code "this way", right?

Regards,
	Chr
---
diff --git a/drivers/net/wireless/ath/Makefile b/drivers/net/wireless/ath/Makefile
index a005b91..4bb0132 100644
--- a/drivers/net/wireless/ath/Makefile
+++ b/drivers/net/wireless/ath/Makefile
@@ -3,5 +3,4 @@ obj-$(CONFIG_ATH9K)		+= ath9k/
 obj-$(CONFIG_AR9170_USB)        += ar9170/
 
 obj-$(CONFIG_ATH_COMMON)	+= ath.o
-ath-objs 		:= regd.o
-
+ath-objs 		:= main.o regd.o
diff --git a/drivers/net/wireless/ath/main.c b/drivers/net/wireless/ath/main.c
new file mode 100644
index 0000000..c5eb144
--- /dev/null
+++ b/drivers/net/wireless/ath/main.c
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) 2008-2009 Atheros Communications Inc.
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#include <linux/kernel.h>
+#include <linux/module.h>
+
+MODULE_AUTHOR("Atheros Communications");
+MODULE_DESCRIPTION("Shared library for Atheros wireless LAN cards.");
+MODULE_LICENSE("Dual BSD/GPL");
+
+static int __init ath_init(void)
+{
+	return 0;
+}
+module_init(ath_init);
+
+static void __exit ath_exit(void)
+{
+}
+module_exit(ath_exit);

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

* Re: [PATCH] ath: add module information
  2009-04-13 20:44 [PATCH] ath: add module information Christian Lamparter
@ 2009-04-13 20:44 ` maximilian attems
  2009-04-13 21:00   ` Luis R. Rodriguez
  2009-04-13 21:18   ` Christian Lamparter
  2009-04-14 11:58 ` Christoph Hellwig
  1 sibling, 2 replies; 8+ messages in thread
From: maximilian attems @ 2009-04-13 20:44 UTC (permalink / raw)
  To: Christian Lamparter
  Cc: linux-wireless, Bob Copeland, Luis R. Rodriguez, John W. Linville

On Mon, Apr 13, 2009 at 10:44:23PM +0200, Christian Lamparter wrote:
> diff --git a/drivers/net/wireless/ath/Makefile b/drivers/net/wireless/ath/Makefile
> index a005b91..4bb0132 100644
> --- a/drivers/net/wireless/ath/Makefile
> +++ b/drivers/net/wireless/ath/Makefile
> @@ -3,5 +3,4 @@ obj-$(CONFIG_ATH9K)		+= ath9k/
>  obj-$(CONFIG_AR9170_USB)        += ar9170/
>  
>  obj-$(CONFIG_ATH_COMMON)	+= ath.o
> -ath-objs 		:= regd.o
> -
> +ath-objs 		:= main.o regd.o

why do you put that in a different file and not in ath.c?

> diff --git a/drivers/net/wireless/ath/main.c b/drivers/net/wireless/ath/main.c
> new file mode 100644
> index 0000000..c5eb144
> --- /dev/null
> +++ b/drivers/net/wireless/ath/main.c
> @@ -0,0 +1,33 @@
> +/*
> + * Copyright (c) 2008-2009 Atheros Communications Inc.
> + *
> + * Permission to use, copy, modify, and/or distribute this software for any
> + * purpose with or without fee is hereby granted, provided that the above
> + * copyright notice and this permission notice appear in all copies.
> + *
> + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
> + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
> + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
> + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
> + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
> + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
> + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
> + */
> +
> +#include <linux/kernel.h>
> +#include <linux/module.h>
> +
> +MODULE_AUTHOR("Atheros Communications");
> +MODULE_DESCRIPTION("Shared library for Atheros wireless LAN cards.");
> +MODULE_LICENSE("Dual BSD/GPL");
> +
> +static int __init ath_init(void)
> +{
> +	return 0;
> +}
> +module_init(ath_init);
> +
> +static void __exit ath_exit(void)
> +{
> +}
> +module_exit(ath_exit);

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

* Re: [PATCH] ath: add module information
  2009-04-13 20:44 ` maximilian attems
@ 2009-04-13 21:00   ` Luis R. Rodriguez
  2009-04-13 21:08     ` Luis R. Rodriguez
  2009-04-13 21:11     ` Bob Copeland
  2009-04-13 21:18   ` Christian Lamparter
  1 sibling, 2 replies; 8+ messages in thread
From: Luis R. Rodriguez @ 2009-04-13 21:00 UTC (permalink / raw)
  To: maximilian attems
  Cc: Christian Lamparter, linux-wireless, Bob Copeland,
	John W. Linville

On Mon, Apr 13, 2009 at 1:44 PM, maximilian attems <max@stro.at> wrote:
> On Mon, Apr 13, 2009 at 10:44:23PM +0200, Christian Lamparter wrote:
>> diff --git a/drivers/net/wireless/ath/Makefile b/drivers/net/wireles=
s/ath/Makefile
>> index a005b91..4bb0132 100644
>> --- a/drivers/net/wireless/ath/Makefile
>> +++ b/drivers/net/wireless/ath/Makefile
>> @@ -3,5 +3,4 @@ obj-$(CONFIG_ATH9K) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
 +=3D ath9k/
>> =C2=A0obj-$(CONFIG_AR9170_USB) =C2=A0 =C2=A0 =C2=A0 =C2=A0+=3D ar917=
0/
>>
>> =C2=A0obj-$(CONFIG_ATH_COMMON) =C2=A0 =C2=A0 +=3D ath.o
>> -ath-objs =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :=3D regd.o
>> -
>> +ath-objs =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :=3D main.o regd=
=2Eo
>
> why do you put that in a different file and not in ath.c?

Apart from this objection, looks good -- and thanks.

  Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] ath: add module information
  2009-04-13 21:00   ` Luis R. Rodriguez
@ 2009-04-13 21:08     ` Luis R. Rodriguez
  2009-04-13 21:11     ` Bob Copeland
  1 sibling, 0 replies; 8+ messages in thread
From: Luis R. Rodriguez @ 2009-04-13 21:08 UTC (permalink / raw)
  To: maximilian attems
  Cc: Christian Lamparter, linux-wireless, Bob Copeland,
	John W. Linville

On Mon, Apr 13, 2009 at 2:00 PM, Luis R. Rodriguez
<lrodriguez@atheros.com> wrote:
> On Mon, Apr 13, 2009 at 1:44 PM, maximilian attems <max@stro.at> wrot=
e:
>> On Mon, Apr 13, 2009 at 10:44:23PM +0200, Christian Lamparter wrote:
>>> diff --git a/drivers/net/wireless/ath/Makefile b/drivers/net/wirele=
ss/ath/Makefile
>>> index a005b91..4bb0132 100644
>>> --- a/drivers/net/wireless/ath/Makefile
>>> +++ b/drivers/net/wireless/ath/Makefile
>>> @@ -3,5 +3,4 @@ obj-$(CONFIG_ATH9K) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 +=3D ath9k/
>>> =C2=A0obj-$(CONFIG_AR9170_USB) =C2=A0 =C2=A0 =C2=A0 =C2=A0+=3D ar91=
70/
>>>
>>> =C2=A0obj-$(CONFIG_ATH_COMMON) =C2=A0 =C2=A0 +=3D ath.o
>>> -ath-objs =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :=3D regd.o
>>> -
>>> +ath-objs =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :=3D main.o reg=
d.o
>>
>> why do you put that in a different file and not in ath.c?
>
> Apart from this objection, looks good -- and thanks.

Actually a new file makes sense -- we might later add more stuff other
than regulatory. That is the idea.

  Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] ath: add module information
  2009-04-13 21:00   ` Luis R. Rodriguez
  2009-04-13 21:08     ` Luis R. Rodriguez
@ 2009-04-13 21:11     ` Bob Copeland
  1 sibling, 0 replies; 8+ messages in thread
From: Bob Copeland @ 2009-04-13 21:11 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: maximilian attems, Christian Lamparter, linux-wireless,
	John W. Linville

On Mon, Apr 13, 2009 at 5:00 PM, Luis R. Rodriguez
<lrodriguez@atheros.com> wrote:
>> why do you put that in a different file and not in ath.c?
>
> Apart from this objection, looks good -- and thanks.

Because there is no ath.c? :)

I like it, thanks Christian.

-- 
Bob Copeland %% www.bobcopeland.com

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

* Re: [PATCH] ath: add module information
  2009-04-13 20:44 ` maximilian attems
  2009-04-13 21:00   ` Luis R. Rodriguez
@ 2009-04-13 21:18   ` Christian Lamparter
  1 sibling, 0 replies; 8+ messages in thread
From: Christian Lamparter @ 2009-04-13 21:18 UTC (permalink / raw)
  To: maximilian attems
  Cc: linux-wireless, Bob Copeland, Luis R. Rodriguez, John W. Linville

On Monday 13 April 2009 22:44:30 maximilian attems wrote:
> On Mon, Apr 13, 2009 at 10:44:23PM +0200, Christian Lamparter wrote:
> > diff --git a/drivers/net/wireless/ath/Makefile b/drivers/net/wireless/ath/Makefile
> > index a005b91..4bb0132 100644
> > --- a/drivers/net/wireless/ath/Makefile
> > +++ b/drivers/net/wireless/ath/Makefile
> > @@ -3,5 +3,4 @@ obj-$(CONFIG_ATH9K)		+= ath9k/
> >  obj-$(CONFIG_AR9170_USB)        += ar9170/
> >  
> >  obj-$(CONFIG_ATH_COMMON)	+= ath.o
> > -ath-objs 		:= regd.o
> > -
> > +ath-objs 		:= main.o regd.o
> 
> why do you put that in a different file and not in ath.c?
which ath.c?

besides, is this possible?
as kbuild will then generate two ath.o
- one from ath.c.
- when all ath-objs are merged into ath.o
  so we end up reading & writing to the same file?!

Regards,
	Chr

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

* Re: [PATCH] ath: add module information
  2009-04-13 20:44 [PATCH] ath: add module information Christian Lamparter
  2009-04-13 20:44 ` maximilian attems
@ 2009-04-14 11:58 ` Christoph Hellwig
  2009-04-14 20:11   ` [PATCH v2] " Christian Lamparter
  1 sibling, 1 reply; 8+ messages in thread
From: Christoph Hellwig @ 2009-04-14 11:58 UTC (permalink / raw)
  To: Christian Lamparter
  Cc: linux-wireless, Bob Copeland, Luis R. Rodriguez, John W. Linville

> +static int __init ath_init(void)
> +{
> +	return 0;
> +}
> +module_init(ath_init);
> +
> +static void __exit ath_exit(void)
> +{
> +}
> +module_exit(ath_exit);

No need for these.


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

* [PATCH v2] ath: add module information
  2009-04-14 11:58 ` Christoph Hellwig
@ 2009-04-14 20:11   ` Christian Lamparter
  0 siblings, 0 replies; 8+ messages in thread
From: Christian Lamparter @ 2009-04-14 20:11 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: linux-wireless, Bob Copeland, Luis R. Rodriguez, John W. Linville

This patch adds licensing, author information and a description to the module.

Signed-off-by: Christian Lamparter <chunkeey@web.de>
---
On Tuesday 14 April 2009 13:58:43 Christoph Hellwig wrote:
> > [module_init & module_exit stubs]
> 
> No need for these.

OK! will remove the ones in p54common.c too.
---
diff --git a/drivers/net/wireless/ath/Makefile b/drivers/net/wireless/ath/Makefile
index a005b91..4bb0132 100644
--- a/drivers/net/wireless/ath/Makefile
+++ b/drivers/net/wireless/ath/Makefile
@@ -3,5 +3,4 @@ obj-$(CONFIG_ATH9K)		+= ath9k/
 obj-$(CONFIG_AR9170_USB)        += ar9170/
 
 obj-$(CONFIG_ATH_COMMON)	+= ath.o
-ath-objs 		:= regd.o
-
+ath-objs 		:= main.o regd.o
diff --git a/drivers/net/wireless/ath/main.c b/drivers/net/wireless/ath/main.c
new file mode 100644
index 0000000..c5eb144
--- /dev/null
+++ b/drivers/net/wireless/ath/main.c
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2009 Atheros Communications Inc.
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#include <linux/kernel.h>
+#include <linux/module.h>
+
+MODULE_AUTHOR("Atheros Communications");
+MODULE_DESCRIPTION("Shared library for Atheros wireless LAN cards.");
+MODULE_LICENSE("Dual BSD/GPL");

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

end of thread, other threads:[~2009-04-14 20:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-13 20:44 [PATCH] ath: add module information Christian Lamparter
2009-04-13 20:44 ` maximilian attems
2009-04-13 21:00   ` Luis R. Rodriguez
2009-04-13 21:08     ` Luis R. Rodriguez
2009-04-13 21:11     ` Bob Copeland
2009-04-13 21:18   ` Christian Lamparter
2009-04-14 11:58 ` Christoph Hellwig
2009-04-14 20:11   ` [PATCH v2] " Christian Lamparter

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).