As far as I can see, kapi_subsystem is only used in fs/cluster/masklog.c, in mlog_sys_init(), where it's used with kobj_set_kset_s. kobj_set_kset_s expects a structure and takes a pointer to it itself. Since o2cb_subsys is passed as a pointer, we end up with an incompatible assignment.
This patch fixes that. Signed-off-by: Jeff Mahoney <[EMAIL PROTECTED]> --- kapi-compat/include/kobject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kapi-compat/include/kobject.h 2008-02-02 11:07:12.000000000 -0500 +++ b/kapi-compat/include/kobject.h 2008-02-02 11:07:50.000000000 -0500 @@ -6,7 +6,7 @@ # define kapi_subsystem(_sub) *((struct subsystem *)(_sub)) #else # define kapi_subsystem_kset(_sub) (_sub) -# define kapi_subsystem(_sub) (_sub) +# define kapi_subsystem(_sub) *(_sub) #endif #endif _______________________________________________ Ocfs2-devel mailing list [email protected] http://oss.oracle.com/mailman/listinfo/ocfs2-devel
