2010-01-26 22:42:03

by Larry Finger

[permalink] [raw]
Subject: [PATCH] b43: N PHY: Fix compilation after removal of typdef b43_c32

In the conversion between typedef and struct, two places that needed a "struct"
were missed.

Signed-off-by: Larry Finger <[email protected]>
---

John,

Without these, compilation fails.

Larry
---

Index: wireless-testing/drivers/net/wireless/b43/phy_n.c
===================================================================
--- wireless-testing.orig/drivers/net/wireless/b43/phy_n.c
+++ wireless-testing/drivers/net/wireless/b43/phy_n.c
@@ -822,7 +822,7 @@ static u16 b43_nphy_gen_load_samples(str
{
int i;
u16 bw, len, rot, angle;
- b43_c32 *samples;
+ struct b43_c32 *samples;


bw = (dev->phy.is_40mhz) ? 40 : 20;
@@ -840,7 +840,7 @@ static u16 b43_nphy_gen_load_samples(str
len = bw << 1;
}

- samples = kzalloc(len * sizeof(b43_c32), GFP_KERNEL);
+ samples = kzalloc(len * sizeof(struct b43_c32), GFP_KERNEL);
rot = (((freq * 36) / bw) << 16) / 100;
angle = 0;



2010-01-27 19:45:36

by John W. Linville

[permalink] [raw]
Subject: Re: [PATCH] b43: N PHY: Fix compilation after removal of typdef b43_c32

On Tue, Jan 26, 2010 at 04:42:02PM -0600, Larry Finger wrote:
> In the conversion between typedef and struct, two places that needed a "struct"
> were missed.
>
> Signed-off-by: Larry Finger <[email protected]>
> ---
>
> John,
>
> Without these, compilation fails.
>
> Larry

Larry, thanks for fixing this! Sorry I missed those bits.

John
--
John W. Linville Someday the world will need a hero, and you
[email protected] might be all we have. Be ready.