diff for duplicates of <1331884714.3105.166.camel@pasglop> diff --git a/a/1.txt b/N1/1.txt index 20ed0d5..7759303 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -143,7 +143,7 @@ index 0000000..193ba68 + /* liobn, ioba, tce); */ + + list_for_each_entry(stt, &kvm->arch.spapr_tce_tables, list) { -+ if (stt->liobn = liobn) { ++ if (stt->liobn == liobn) { + unsigned long idx = ioba >> SPAPR_TCE_SHIFT; + struct page *page; + u64 *tbl; @@ -235,7 +235,7 @@ index 0000000..193ba68 + + /* Check this LIOBN hasn't been previously allocated */ + list_for_each_entry(stt, &kvm->arch.spapr_tce_tables, list) { -+ if (stt->liobn = args->liobn) ++ if (stt->liobn == args->liobn) + return -EBUSY; + } + @@ -332,7 +332,7 @@ index ea0f8c5..0000000 - /* liobn, ioba, tce); */ - - list_for_each_entry(stt, &kvm->arch.spapr_tce_tables, list) { -- if (stt->liobn = liobn) { +- if (stt->liobn == liobn) { - unsigned long idx = ioba >> SPAPR_TCE_SHIFT; - struct page *page; - u64 *tbl; @@ -431,7 +431,7 @@ index 012ea89..8ee46b9 100644 - - /* Check this LIOBN hasn't been previously allocated */ - list_for_each_entry(stt, &kvm->arch.spapr_tce_tables, list) { -- if (stt->liobn = args->liobn) +- if (stt->liobn == args->liobn) - return -EBUSY; - } - @@ -519,7 +519,7 @@ index 60ac0e7..3ff9013 100644 + long rc; + + rc = kvmppc_h_put_tce(vcpu, liobn, ioba, tce); -+ if (rc = H_TOO_HARD) ++ if (rc == H_TOO_HARD) + return EMULATE_FAIL; + kvmppc_set_gpr(vcpu, 3, rc); + return EMULATE_DONE; diff --git a/a/content_digest b/N1/content_digest index 2cc4d75..61e6e52 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "From\0Benjamin Herrenschmidt <benh@kernel.crashing.org>\0" "Subject\0[PATCH v2] kvm/book3s: Make kernel emulated H_PUT_TCE available for \"PR\" KVM\0" - "Date\0Fri, 16 Mar 2012 07:58:34 +0000\0" + "Date\0Fri, 16 Mar 2012 18:58:34 +1100\0" "To\0kvm-ppc@vger.kernel.org\0" "Cc\0kvm@vger.kernel.org" " Alexander Graf <agraf@suse.de>\0" @@ -151,7 +151,7 @@ "+\t/* \t liobn, ioba, tce); */\n" "+\n" "+\tlist_for_each_entry(stt, &kvm->arch.spapr_tce_tables, list) {\n" - "+\t\tif (stt->liobn = liobn) {\n" + "+\t\tif (stt->liobn == liobn) {\n" "+\t\t\tunsigned long idx = ioba >> SPAPR_TCE_SHIFT;\n" "+\t\t\tstruct page *page;\n" "+\t\t\tu64 *tbl;\n" @@ -243,7 +243,7 @@ "+\n" "+\t/* Check this LIOBN hasn't been previously allocated */\n" "+\tlist_for_each_entry(stt, &kvm->arch.spapr_tce_tables, list) {\n" - "+\t\tif (stt->liobn = args->liobn)\n" + "+\t\tif (stt->liobn == args->liobn)\n" "+\t\t\treturn -EBUSY;\n" "+\t}\n" "+\n" @@ -340,7 +340,7 @@ "-\t/* \t liobn, ioba, tce); */\n" "-\n" "-\tlist_for_each_entry(stt, &kvm->arch.spapr_tce_tables, list) {\n" - "-\t\tif (stt->liobn = liobn) {\n" + "-\t\tif (stt->liobn == liobn) {\n" "-\t\t\tunsigned long idx = ioba >> SPAPR_TCE_SHIFT;\n" "-\t\t\tstruct page *page;\n" "-\t\t\tu64 *tbl;\n" @@ -439,7 +439,7 @@ "-\n" "-\t/* Check this LIOBN hasn't been previously allocated */\n" "-\tlist_for_each_entry(stt, &kvm->arch.spapr_tce_tables, list) {\n" - "-\t\tif (stt->liobn = args->liobn)\n" + "-\t\tif (stt->liobn == args->liobn)\n" "-\t\t\treturn -EBUSY;\n" "-\t}\n" "-\n" @@ -527,7 +527,7 @@ "+\tlong rc;\n" "+\n" "+\trc = kvmppc_h_put_tce(vcpu, liobn, ioba, tce);\n" - "+\tif (rc = H_TOO_HARD)\n" + "+\tif (rc == H_TOO_HARD)\n" "+\t\treturn EMULATE_FAIL;\n" "+\tkvmppc_set_gpr(vcpu, 3, rc);\n" "+\treturn EMULATE_DONE;\n" @@ -585,4 +585,4 @@ "-- \n" 1.7.9.1 -938a9d1f781c1f9a97522f07cf37e7c05bcbf648e27a9ac22991d1776c7ab09b +94356fad05da616a79a76919bd8323fb92e582f688577be06e38cb74fb0b8b8b
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.