Skip to contentSkip to conversation

ath6kl build error.

DISCUSSION [email protected] 3 participants 4 messages Mar 8, 2013 – Mar 10, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

I'm getting a build error when building ath6kl modules.

include/linux/mmc/sdio_func.h:162:12: error: expected identifier or '(' before numeric constant

the line it's complaining about is like this:

extern int sdio_set_host_pm_flags(struct sdio_func *func, mmc_pm_flag_t flags);

A bit of googling has shown that others have seen the same problem too. But, I've not seen a fix for it.

Any ideas appreciated.

Regards

Nick Thomas

#1 lore raw
Quoted 9 lines · On 03/08/2013 05:25 AM, [email protected] wrote:

Hi,

I'm getting a build error when building ath6kl modules.

include/linux/mmc/sdio_func.h:162:12: error: expected identifier or '(' before numeric constant

the line it's complaining about is like this:

Quoted 7 lines

extern int sdio_set_host_pm_flags(struct sdio_func *func, mmc_pm_flag_t flags);

A bit of googling has shown that others have seen the same problem too. But, I've not seen a fix for it.

Any ideas appreciated.

The complete gcc error output would be helpful.

What kernel are you using? A quick check of 3.9-rc1 shows that "struct sdio_func" is defined in include/linux/mmc/sdio_func.h, which is included from both drivers/net/wireless/ath/ath6kl/init.c and drivers/net/wireless/ath/ath6kl/sdio.c. The symbol "mmc_pm_flag_t" is defined in include/linux/mmc/pm.h, which is included in include/linux/mmc/sdio_func.h. It seems unlikely that either "extern" or "int" is undefined, thus the error is hard to understand.

Larry

#2 lore raw
Quoted 11 lines · Larry Finger
Quoted 10 lines · On 03/08/2013 05:25 AM, [email protected] wrote:

I'm getting a build error when building ath6kl modules.

include/linux/mmc/sdio_func.h:162:12: error: expected identifier or '(' before numeric constant

the line it's complaining about is like this:

extern int sdio_set_host_pm_flags(struct sdio_func *func, mmc_pm_flag_t flags);

Quoted 8 lines
Quoted 4 lines

A bit of googling has shown that others have seen the same problem too. But, I've not seen a fix for it.

Any ideas appreciated.

The complete gcc error output would be helpful.

What kernel are you using?

I think he's using compat-driver and compiling against some old vendor kernel.

Signature · 1 line
Kalle Valo
#3 lore raw

Hi,

My compilation problem comes down to this:

In drivers/include_local/linux/compat-2.6.34.h .

I see this:

#define sdio_set_host_pm_flags(a, b) 0

That's causing my compiler problem.

I'm going to have to locally patch the tree to fix this.

Regards

Nick

Quoted 38 lines

Message Received: Mar 09 2013, 06:22 AM
From: "Kalle Valo"
To: "Larry Finger"
Cc: [email protected], [email protected], [email protected]
Subject: Re: ath6kl build error.

Quoted 11 lines · Larry Finger
Quoted 10 lines · On 03/08/2013 05:25 AM, [email protected] wrote:

I'm getting a build error when building ath6kl modules.

include/linux/mmc/sdio_func.h:162:12: error: expected identifier or '(' before numeric constant

the line it's complaining about is like this:

extern int sdio_set_host_pm_flags(struct sdio_func *func, mmc_pm_flag_t flags);

Quoted 8 lines
Quoted 4 lines

A bit of googling has shown that others have seen the same problem too. But, I've not seen a fix for it.

Any ideas appreciated.

The complete gcc error output would be helpful.

What kernel are you using?

I think he's using compat-driver and compiling against some old vendor kernel.

--
Kalle Valo
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html