Skip to contentSkip to conversation

A question regarding init_mm

DISCUSSION Sid Boyce 2 participants 3 messages Aug 8, 2008

lore
Share & tools
lore

Sid Boyce

author
#0 lore raw

Trying to build the nvidia video module for 2.6.26-git through 2.6.27-rc2, I get "Unknown symbol init_mm", openSUSE 11.1 Alpha1. Checking a few places I can see init_mm.

# cat /proc/kallsyms |grep init_mm
ffffffff80630020 D init_mm
# grep init_mm System.map-2.6.27-rc2-smp
ffffffff80630020 D init_mm
/usr/src/linux-2.6.27-rc2/arch/x86/kernel # grep init_mm init_task.c
struct mm_struct init_mm = INIT_MM(init_mm);
EXPORT_UNUSED_SYMBOL(init_mm); /* will be removed in 2.6.26 */

Any thoughts on why it's not seen? No one on the nvidia list has a clue either. Regards
Sid.

Signature · 3 lines
Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Specialist, Cricket Coach
Microsoft Windows Free Zone - Linux used for all Computing Tasks
#1 lore raw
Quoted 4 lines · Sid Boyce

EXPORT_UNUSED_SYMBOL(init_mm); /* will be removed in 2.6.26 */

Any thoughts on why it's not seen? No one on the nvidia list has a clue either.

Run a kernel built with 'CONFIG_UNUSED_SYMBOLS=y', that should help matters somewhat.

The *real* problem is that the NVidia driver uses the deprecated pgd_offset_k() function (see NV_PGD_OFFSET in lv-linux.h). That's what needs fixing.

author
#2 lore raw
Quoted 4 lines · [email protected] wrote:
Quoted 1 line · Sid Boyce

EXPORT_UNUSED_SYMBOL(init_mm); /* will be removed in 2.6.26 */

Quoted 8 lines
Quoted 2 lines

Any thoughts on why it's not seen? No one on the nvidia list has a clue either.

Run a kernel built with 'CONFIG_UNUSED_SYMBOLS=y', that should help matters somewhat.

The *real* problem is that the NVidia driver uses the deprecated pgd_offset_k() function (see NV_PGD_OFFSET in lv-linux.h). That's what needs fixing.

Thanks, that solved the problem. There is a patch for NVidia 177.13 which works, but I haven't yet been able to read it through to see exactly what files were altered. Regards
Sid.

Signature · 3 lines
Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Specialist, Cricket Coach
Microsoft Windows Free Zone - Linux used for all Computing Tasks