Opened 12 years ago

Closed 12 years ago

Last modified 4 years ago

#153 closed defect (fixed)

pte_offset_kernel deps for spca5xx

Reported by: hfi Owned by: wbx
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version: 2.0
Keywords: Cc:


I'm currently using openwrt experimental version release r2730.

It seem like the compilation procedure for spca5xx quite broken for pte_offset_kernel directive. Loading the module will fail.

root@wl500g:~# insmod spca5xx
Using /lib/modules/2.4.32/spca5xx.o
insmod: unresolved symbol pte_offset_kernel

The only solution i found it to load successfully in kernel is by removing "ifdef pte_offset" in source code so that it only use pte_offset instead of pte_offset_kernel.

laptop@spca5xx-20051105 # grep pte_ drivers/usb/*
drivers/usb/spca5xx.c:  pte_t *ptep, pte;
drivers/usb/spca5xx.c:    /* WOLT kernels appear to have changed pte_offset to pte_offset_kernel */
drivers/usb/spca5xx.c:#ifdef pte_offset
drivers/usb/spca5xx.c:    ptep = pte_offset (pmd, adr);
drivers/usb/spca5xx.c:#else /* pte_offset */
drivers/usb/spca5xx.c:    ptep = pte_offset_kernel (pmd, adr);
drivers/usb/spca5xx.c:#endif /* pte_offset */
drivers/usb/spca5xx.c:    if (pte_present (pte))
drivers/usb/spca5xx.c:        ret = (unsigned long) page_address (pte_page (pte));

Attachments (0)

Change History (3)

comment:1 Changed 12 years ago by wbx

  • Milestone set to 2.0
  • Owner changed from developers to wbx
  • severity changed from major to minor
  • Version changed from 1.0 to 2.0

comment:2 Changed 12 years ago by wbx

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r2767. thx for report.

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.