Skip to contentSkip to conversation

clear_user_page in page.h

DISCUSSION JP Foster 2 participants 4 messages Mar 8, 2005 – Mar 9, 2005 MIPS

lore
Share & tools
lore

JP Foster

author
#0 lore raw

Hi all,
I'm building the video4linux drivers as modules and the video-buf driver can't load as it has no reference to shm_align_mask and flush_data_cache_page.

These are needed by asm-mips/page.h for the inline funcs, pages_do_alias and clear/copy_user_page.
How should shm_align_mask and flush_data_cache_page. be exported to modules?

Most other asm-xxx/page.h doesn't need any externs, all is #defined within page.h or files included by it.

Any ideas how I deal with this? Presumably other modules will be affected by this.

Signature · 2 lines
[email protected]
Digital Simplicity
#1 lore raw
Quoted 10 lines · JP Foster

Hi all,
I'm building the video4linux drivers as modules and the video-buf driver can't load as it has no reference to shm_align_mask and flush_data_cache_page.

These are needed by asm-mips/page.h for the inline funcs, pages_do_alias and clear/copy_user_page.
How should shm_align_mask and flush_data_cache_page. be exported to modules?

Quoted 5 lines

Most other asm-xxx/page.h doesn't need any externs, all is #defined within page.h or files included by it.

Any ideas how I deal with this? Presumably other modules will be affected by this.

The code in question should be considered broken anyway but for the time being until this is actually fixed I'm going to add the two symbol exports.

Ralf

author
#2 lore raw

Great, that's what I did here.
When you say the code in question do you mean the v4l stuff or page.h?

Signature · 2 lines
[email protected]
Digital Simplicity
#3 lore raw
Quoted 2 lines · JP Foster

Great, that's what I did here.
When you say the code in question do you mean the v4l stuff or page.h?

Linux mm. The (brain-)damage goes beyond page.h.

Ralf