Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938595AbcKKVOQ (ORCPT ); Fri, 11 Nov 2016 16:14:16 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35733 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935582AbcKKVOP (ORCPT ); Fri, 11 Nov 2016 16:14:15 -0500 Message-ID: <5826349F.80408@gmail.com> Date: Fri, 11 Nov 2016 21:14:07 +0000 From: Sudip Mukherjee User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Joe Lawrence CC: "linux-kernel@vger.kernel.org" , gregkh@linuxfoundation.org Subject: Re: [ppdev] sysfs warning on qemu boot References: <0039c5ca-0a77-968c-7356-07977242474b@redhat.com> <58235726.6000903@codethink.co.uk> <0d71c0da-d888-85b0-2e77-ad5064c5e0bb@redhat.com> In-Reply-To: <0d71c0da-d888-85b0-2e77-ad5064c5e0bb@redhat.com> Content-Type: multipart/mixed; boundary="------------070308060808020406060409" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2952 Lines: 63 This is a multi-part message in MIME format. --------------070308060808020406060409 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi Joe, On Wednesday 09 November 2016 06:41 PM, Joe Lawrence wrote: > On 11/09/2016 12:04 PM, Sudip Mukherjee wrote: >> Hi Joe, >> >> On 09/11/16 16:00, Joe Lawrence wrote: >>> Hi Sudip, >>> >>> I hit a sysfs_warn_dup inside QEMU running 4.9.0-rc4 (I suspect earlier >>> versions as well, but this is the first upstream I've run in a while). >>> This warning looks like something the kernel test robot ran into a few >>> months ago: >> >> Yes, 0day reported, but I was unable to reproduce it with the config >> file that was given. Can you please send me your .config file and I will >> try to reproduce this on my setup, and if I am not able to then i will >> have to disturb you for debugging and testing. Can you please test the attached patch and try to reproduce the error... Sorry I could not test it as i could not build using your .config, I guess its time for me to upgrade gcc. Regards Sudip --------------070308060808020406060409 Content-Type: text/plain; charset=UTF-8; name="patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch" ZGlmZiAtLWdpdCBhL2RyaXZlcnMvY2hhci9wcGRldi5jIGIvZHJpdmVycy9jaGFyL3BwZGV2 LmMKaW5kZXggZDIzMzY4OC4uNjc1NTg4NyAxMDA2NDQKLS0tIGEvZHJpdmVycy9jaGFyL3Bw ZGV2LmMKKysrIGIvZHJpdmVycy9jaGFyL3BwZGV2LmMKQEAgLTg2LDYgKzg2LDkgQEAgc3Ry dWN0IHBwX3N0cnVjdCB7CiAJbG9uZyBkZWZhdWx0X2luYWN0aXZpdHk7CiB9OwogCisvKiBz aG91bGQgd2UgdXNlIFBBUkRFVklDRV9NQVggaGVyZSAqLworc3RhdGljIHN0cnVjdCBkZXZp Y2UgKmRldmljZXNbUEFSUE9SVF9NQVhdOworCiAvKiBwcF9zdHJ1Y3QuZmxhZ3MgYml0Zmll bGRzICovCiAjZGVmaW5lIFBQX0NMQUlNRUQgICAgKDE8PDApCiAjZGVmaW5lIFBQX0VYQ0wg ICAgICAgKDE8PDEpCkBAIC03OTIsMTMgKzc5NSwyOSBAQCBzdGF0aWMgdW5zaWduZWQgaW50 IHBwX3BvbGwoc3RydWN0IGZpbGUgKmZpbGUsIHBvbGxfdGFibGUgKndhaXQpCiAKIHN0YXRp YyB2b2lkIHBwX2F0dGFjaChzdHJ1Y3QgcGFycG9ydCAqcG9ydCkKIHsKLQlkZXZpY2VfY3Jl YXRlKHBwZGV2X2NsYXNzLCBwb3J0LT5kZXYsIE1LREVWKFBQX01BSk9SLCBwb3J0LT5udW1i ZXIpLAotCQkgICAgICBOVUxMLCAicGFycG9ydCVkIiwgcG9ydC0+bnVtYmVyKTsKKwlzdHJ1 Y3QgZGV2aWNlICpyZXQ7CisKKwlpZiAoZGV2aWNlc1twb3J0LT5udW1iZXJdKQorCQlyZX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