[LU-4501] lustre don't able to build with invariants enabled Created: 17/Jan/14  Updated: 17/Jan/14  Resolved: 17/Jan/14

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.6.0
Fix Version/s: None

Type: Bug Priority: Blocker
Reporter: Alexey Lyashkov Assignee: WC Triage
Resolution: Duplicate Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 12314

 Description   

cc1: warnings being treated as errors
/Users/shadow/work/lustre/work/WC-review/CLSTR-2003/lustre/osc/osc_lock.c: In function ‘osc_lock_has_pages’:
/Users/shadow/work/lustre/work/WC-review/CLSTR-2003/lustre/osc/osc_lock.c:1487: error: passing argument 2 of ‘osc_page_gang_lookup’ from incompatible pointer type
/Users/shadow/work/lustre/work/WC-review/CLSTR-2003/lustre/osc/osc_cl_internal.h:691: note: expected ‘struct cl_io *’ but argument is of type ‘struct osc_object *’
/Users/shadow/work/lustre/work/WC-review/CLSTR-2003/lustre/osc/osc_lock.c:1487: error: passing argument 3 of ‘osc_page_gang_lookup’ from incompatible pointer type
/Users/shadow/work/lustre/work/WC-review/CLSTR-2003/lustre/osc/osc_cl_internal.h:691: note: expected ‘struct osc_object *’ but argument is of type ‘struct cl_io *’
make[6]: *** [/Users/shadow/work/lustre/work/WC-review/CLSTR-2003/lustre/osc/osc_lock.o] Error 1



 Comments   
Comment by Alexey Lyashkov [ 17/Jan/14 ]

looks typo error in code.

[root@rhel6-64 osc]# git diff osc_lock.c 
diff --git a/lustre/osc/osc_lock.c b/lustre/osc/osc_lock.c
index e06a900..8016db6 100644
--- a/lustre/osc/osc_lock.c
+++ b/lustre/osc/osc_lock.c
@@ -1482,7 +1482,7 @@ static int osc_lock_has_pages(struct osc_lock *olck)
        io->ci_ignore_layout = 1;
         cl_io_init(env, io, CIT_MISC, io->ci_obj);
        do {
-               result = osc_page_gang_lookup(env, oob, io,
+               result = osc_page_gang_lookup(env, io, oob,
                                              descr->cld_start, descr->cld_end,
                                              check_cb, (void *)lock);
                if (result == CLP_GANG_ABORT)

Comment by Dmitry Eremin (Inactive) [ 17/Jan/14 ]

The same as LU-4488 which have a patch.

Generated at Sat Feb 10 01:43:17 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.