Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753584AbcD0VUW (ORCPT ); Wed, 27 Apr 2016 17:20:22 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:47036 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751734AbcD0VUO (ORCPT ); Wed, 27 Apr 2016 17:20:14 -0400 Message-ID: <1461791992.1169.0.camel@decadent.org.uk> Subject: Re: [PATCH 3.2 000/115] 3.2.80-rc1 review From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: torvalds@linux-foundation.org, Guenter Roeck , Phil Jensen , akpm@linux-foundation.org Date: Wed, 27 Apr 2016 23:19:52 +0200 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-5wiOERKHRLhrq0DGfOU3" X-Mailer: Evolution 3.18.5.1-1 Mime-Version: 1.0 X-SA-Exim-Connect-IP: 92.40.248.210 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 199255 Lines: 2617 --=-5wiOERKHRLhrq0DGfOU3 Content-Type: multipart/mixed; boundary="=-317KozlXvUodno0n5f5+" --=-317KozlXvUodno0n5f5+ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This is the combined diff for 3.2.80-rc1 relative to 3.2.79. Ben. --=20 Ben Hutchings Once a job is fouled up, anything done to improve it makes it worse. --=-317KozlXvUodno0n5f5+ Content-Disposition: attachment; filename="linux-3.2.80-rc1.patch" Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name="linux-3.2.80-rc1.patch"; charset="UTF-8" ZGlmZiAtLWdpdCBhL0RvY3VtZW50YXRpb24vbmV0d29ya2luZy9pcC1zeXNjdGwudHh0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NiX3BhcnNlX2F1ZGlvX2ludGVyZmFjZShzdHJ1Y3Qgc25kX3VzYl9hdWRpbyAqY2hp cCwgaW50IGlmYWNlX25vKQogCQkJCQkqIChmcC0+bWF4cGFja3NpemUgJiAweDdmZik7CiAJCWZw LT5hdHRyaWJ1dGVzID0gcGFyc2VfdWFjX2VuZHBvaW50X2F0dHJpYnV0ZXMoY2hpcCwgYWx0cywg cHJvdG9jb2wsIGlmYWNlX25vKTsKIAkJZnAtPmNsb2NrID0gY2xvY2s7CisJCUlOSVRfTElTVF9I RUFEKCZmcC0+bGlzdCk7CiAKIAkJLyogc29tZSBxdWlya3MgZm9yIGF0dHJpYnV0ZXMgaGVyZSAq LwogCkBAIC00NDYsNiArNDQ5LDcgQEAgaW50IHNuZF91c2JfcGFyc2VfYXVkaW9faW50ZXJmYWNl KHN0cnVjdCBzbmRfdXNiX2F1ZGlvICpjaGlwLCBpbnQgaWZhY2Vfbm8pCiAJCXNuZF9wcmludGRk KEtFUk5fSU5GTyAiJWQ6JXU6JWQ6IGFkZCBhdWRpbyBlbmRwb2ludCAlI3hcbiIsIGRldi0+ZGV2 bnVtLCBpZmFjZV9ubywgYWx0bm8sIGZwLT5lbmRwb2ludCk7CiAJCWVyciA9IHNuZF91c2JfYWRk X2F1ZGlvX3N0cmVhbShjaGlwLCBzdHJlYW0sIGZwKTsKIAkJaWYgKGVyciA8IDApIHsKKwkJCWxp c3RfZGVsKCZmcC0+bGlzdCk7IC8qIHVubGluayBmb3IgYXZvaWRpbmcgZG91YmxlLWZyZWUgKi8K IAkJCWtmcmVlKGZwLT5yYXRlX3RhYmxlKTsKIAkJCWtmcmVlKGZwKTsKIAkJCXJldHVybiBlcnI7 Ck== --=-317KozlXvUodno0n5f5+-- --=-5wiOERKHRLhrq0DGfOU3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCgAGBQJXISz4AAoJEOe/yOyVhhEJhJ8P/jVNHKtCOZ7je9W98kZF3kgu jDTij6CEG60PncwiBVrNdB7mrAbzWKai9HZHU694isVg6e0WPEfarr0XHIA41Mjj +F++sfFXqf1pYs+HkPuWMcjoO9vyeDUjDjyX0bs3PMMVaJEqr1F1rf6nzC9CuMKK fwi/0XICEiVyST0dAd+ouf9D4gu3gBSEVDSrMLcqwVFA661F6bJy+f6cla7xFOZV bnxk8sEcMhD9UDVNpqa0wyPZRjylMtCgLIdozSEfNXKacAKxuK3iwxIqN7JHKj7+ Bg2JPiteiR2YtX4LbFofdPkkqkhDTMhIzNUer1ZvULA9kFnlT7VBqSnZVu0wfWt7 cnCMPKKFIfdrbnHKvXVEiKjhXqMZzJ2drbcEcPfxV+UxeCm6V48sf++g/7msF2B3 gyuyV13csYdftOcuammrb5BYYYe4s+AWRmxcQXLab5nLfoIWv2Usigb1dhVrYLHu rfHC+lRPD2WY3v+ZNaoASHPpuhlyHGrJRDethxsyRhAexrzZGOLD6vpASa2cdFKV GmDIOzz24m+wNmwanBuY7pqonv9FXRgAfWqafFvUWTpKTKNbj8XN8nt6dwVFTdXA ZUSYHaW8MB48ECgIbPRKLpBFWeeu8OiIbdBye8QYS0m93Nuj0awceZLpnQA4Ttbq 4jitIIbWVCV5NpmnT3jr =pq29 -----END PGP SIGNATURE----- --=-5wiOERKHRLhrq0DGfOU3--