Bug 17071

Summary: Drm kernel module build fail with [error: too many arguments to function ‘on_each_cpu’]
Product: DRI Reporter: liuhaien <haien.liu>
Component: DRM/otherAssignee: Default DRI bug account <dri-devel>
Status: VERIFIED WONTFIX QA Contact:
Severity: normal    
Priority: medium CC: shuang.he
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Fix on_each_cpu for kernel >2.6.26 by conditionals none

Description liuhaien 2008-08-11 01:23:08 UTC
Drm kernel module compile again on kernel >=2.6.27 with below error:
-----------------------------------------------
/GFX/build/component/Drm/drm/linux-core/drm_ttm.c: In function ‘drm_ttm_cache_flush’:
/GFX/build/component/Drm/drm/linux-core/drm_ttm.c:75: error: too many arguments to function ‘on_each_cpu’
make[2]: *** [/GFX/build/component/Drm/drm/linux-core/drm_ttm.o] Error 1
make[1]: *** [_module_/GFX/build/component/Drm/drm/linux-core] Error 2
make[1]: Leaving directory `/home/graphics/linux-2.6'
make: *** [modules] Error 2
----------------------------------
Comment 1 Johannes Engel 2008-08-11 01:27:18 UTC
Created attachment 18214 [details] [review]
Fix on_each_cpu for kernel >2.6.26 by conditionals

That one should help. We had a discussion on the mailing list some time ago, but apparently upto now could not find a proper result...
Comment 2 Gordon Jin 2008-12-04 22:03:47 UTC
I guess we are not going to support this. I'm going to close this bug if no other comments.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.