Linux wireless drivers development
 help / color / mirror / Atom feed
* libertas warnings & bugs
@ 2007-07-18 14:00 Johannes Berg
  2007-07-18 15:50 ` Dan Williams
  2007-07-19 20:00 ` Dan Williams
  0 siblings, 2 replies; 4+ messages in thread
From: Johannes Berg @ 2007-07-18 14:00 UTC (permalink / raw)
  To: Dan Williams; +Cc: linux-wireless

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

Hi Dan,

As promised a few more warnings from libertas from my ppc64 build.

drivers/net/wireless/libertas/cmd.c: In function ‘wlan_cmd_802_11_set_wep’:
drivers/net/wireless/libertas/cmd.c:189: warning: large integer implicitly truncated to unsigned type
drivers/net/wireless/libertas/cmd.c:195: warning: large integer implicitly truncated to unsigned type

The code is:
wep->keytype[i] = cpu_to_le16(cmd_type_wep_40_bit);

and it's fairly obvious why it warns: keytype[i] is a u8 so always ends
up 0...

drivers/net/wireless/libertas/debugfs.c: In function ‘libertas_getscantable’:
drivers/net/wireless/libertas/debugfs.c:85: warning: format ‘%08llx’ expects type ‘long long unsigned int’, but argument 4 has type ‘u64’
drivers/net/wireless/libertas/debugfs.c:85: warning: format ‘%08llx’ expects type ‘long long unsigned int’, but argument 4 has type ‘u64’

probably just needs a cast to unsigned long long.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

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

* Re: libertas warnings & bugs
  2007-07-18 14:00 libertas warnings & bugs Johannes Berg
@ 2007-07-18 15:50 ` Dan Williams
  2007-07-19 20:00 ` Dan Williams
  1 sibling, 0 replies; 4+ messages in thread
From: Dan Williams @ 2007-07-18 15:50 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless

On Wed, 2007-07-18 at 16:00 +0200, Johannes Berg wrote:
> Hi Dan,
>=20
> As promised a few more warnings from libertas from my ppc64 build.
>=20
> drivers/net/wireless/libertas/cmd.c: In function =E2=80=98wlan_cmd_80=
2_11_set_wep=E2=80=99:
> drivers/net/wireless/libertas/cmd.c:189: warning: large integer impli=
citly truncated to unsigned type
> drivers/net/wireless/libertas/cmd.c:195: warning: large integer impli=
citly truncated to unsigned type
>=20
> The code is:
> wep->keytype[i] =3D cpu_to_le16(cmd_type_wep_40_bit);
>=20
> and it's fairly obvious why it warns: keytype[i] is a u8 so always en=
ds
> up 0...
>=20
> drivers/net/wireless/libertas/debugfs.c: In function =E2=80=98liberta=
s_getscantable=E2=80=99:
> drivers/net/wireless/libertas/debugfs.c:85: warning: format =E2=80=98=
%08llx=E2=80=99 expects type =E2=80=98long long unsigned int=E2=80=99, =
but argument 4 has type =E2=80=98u64=E2=80=99
> drivers/net/wireless/libertas/debugfs.c:85: warning: format =E2=80=98=
%08llx=E2=80=99 expects type =E2=80=98long long unsigned int=E2=80=99, =
but argument 4 has type =E2=80=98u64=E2=80=99
>=20
> probably just needs a cast to unsigned long long.

Thanks, doing patch review and such today, I'll try to roll these in.

Dan


-
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] 4+ messages in thread

* Re: libertas warnings & bugs
  2007-07-18 14:00 libertas warnings & bugs Johannes Berg
  2007-07-18 15:50 ` Dan Williams
@ 2007-07-19 20:00 ` Dan Williams
  2007-07-19 20:56   ` Johannes Berg
  1 sibling, 1 reply; 4+ messages in thread
From: Dan Williams @ 2007-07-19 20:00 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless

On Wed, 2007-07-18 at 16:00 +0200, Johannes Berg wrote:
> Hi Dan,
>=20
> As promised a few more warnings from libertas from my ppc64 build.
>=20
> drivers/net/wireless/libertas/cmd.c: In function =E2=80=98wlan_cmd_80=
2_11_set_wep=E2=80=99:
> drivers/net/wireless/libertas/cmd.c:189: warning: large integer impli=
citly truncated to unsigned type
> drivers/net/wireless/libertas/cmd.c:195: warning: large integer impli=
citly truncated to unsigned type

=46ixed this one.

> The code is:
> wep->keytype[i] =3D cpu_to_le16(cmd_type_wep_40_bit);
>=20
> and it's fairly obvious why it warns: keytype[i] is a u8 so always en=
ds
> up 0...
>=20
> drivers/net/wireless/libertas/debugfs.c: In function =E2=80=98liberta=
s_getscantable=E2=80=99:
> drivers/net/wireless/libertas/debugfs.c:85: warning: format =E2=80=98=
%08llx=E2=80=99 expects type =E2=80=98long long unsigned int=E2=80=99, =
but argument 4 has type =E2=80=98u64=E2=80=99
> drivers/net/wireless/libertas/debugfs.c:85: warning: format =E2=80=98=
%08llx=E2=80=99 expects type =E2=80=98long long unsigned int=E2=80=99, =
but argument 4 has type =E2=80=98u64=E2=80=99
>=20
> probably just needs a cast to unsigned long long.

You probably want the 'libertas' branch, where this one doesn't
appear...  master is plain linus kernels.  The layout was suggested by
linville but maybe it's confusing?

Dan


-
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] 4+ messages in thread

* Re: libertas warnings & bugs
  2007-07-19 20:00 ` Dan Williams
@ 2007-07-19 20:56   ` Johannes Berg
  0 siblings, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2007-07-19 20:56 UTC (permalink / raw)
  To: Dan Williams; +Cc: linux-wireless

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

On Thu, 2007-07-19 at 16:00 -0400, Dan Williams wrote:

> You probably want the 'libertas' branch, where this one doesn't
> appear...  master is plain linus kernels.  The layout was suggested by
> linville but maybe it's confusing?

Actually, I was using plain Linus kernel :)

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

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

end of thread, other threads:[~2007-07-19 20:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-18 14:00 libertas warnings & bugs Johannes Berg
2007-07-18 15:50 ` Dan Williams
2007-07-19 20:00 ` Dan Williams
2007-07-19 20:56   ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox