Ticket #1141 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

'make' broken with 2.6.20 kernel source

Reported by: iain@iain.mason.name Assigned to:
Priority: major Milestone: version 0.9.3
Component: madwifi: other Version: v0.9.2.1
Keywords: INIT_WORK affset_in_page Cc:
Patch is attached: 0 Pending:

Description (Last modified by mentor)

Distro : Slackware 11.0 Kernel : 2.6.20 madwifi : 0.9.2.1

Kernel source 2.6.20 seems to have made a few changes. So far I have come across the following

a) <linux/config.h> is no longer included - work round was to copy file from 2.6.18 source

b) INIT_WORK in <linux/workqueue.h> has changed and now takes 2 parameters rather than 3. Make reports the following:

if_ath.c:415:60: macro "INIT_WORK" passed 3 arguments, but takes just 2.
if_ath.c: In function `ath_attach':
if_ath.c:415: error : `INIT_WORK' undeclared (first use in this function)

c) Also get following error

include/linux/mm.h:658:1: "offset_in_page" redefined

Source for this appears to be ieee80211_linux.h .

Unfortunately my C skills are nowhere good enough to fix any of this!

Iain

Attachments

Change History

02/08/07 00:34:42 changed by mentor

  • description changed.
  • milestone set to version 0.9.3.

Could you try with trunk?

02/08/07 07:24:30 changed by mrenzmann

  • status changed from new to closed.
  • resolution set to fixed.

I can confirm that r2096 compiles cleanly against kernel 2.6.20.

(follow-up: ↓ 4 ) 06/09/07 11:12:16 changed by meju

i had the same error... :(

(in reply to: ↑ 3 ) 06/26/07 15:17:55 changed by mrenzmann

Replying to meju:

i had the same error... :(

Which version of MadWifi did you try?


Add/Change #1141 ('make' broken with 2.6.20 kernel source)