On 06/09/2011 05:01 PM, Takuya Yoshikawa wrote:
From: Takuya Yoshikawa<[email protected]>

Avoid two step jumps to the error handling part.  This eliminates the
use of the variables present and rsvd_fault.

We also mark the variables write/user/fetch_fault with const to show
these do not change in the function.

These were suggested by Ingo Molnar.
  error:
-       walker->fault.vector = PF_VECTOR;
-       walker->fault.error_code_valid = true;
-       walker->fault.error_code = 0;
-       if (present)
-               walker->fault.error_code |= PFERR_PRESENT_MASK;
-
-       walker->fault.error_code |= write_fault | user_fault;
-
+       errcode |= write_fault | user_fault;
        if (fetch_fault&&  mmu->nx)
-               walker->fault.error_code |= PFERR_FETCH_MASK;
-       if (rsvd_fault)
-               walker->fault.error_code |= PFERR_RSVD_MASK;
+               errcode |= PFERR_FETCH_MASK;


This area has changed, please regenerate against 'next'.

--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to