Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1522200imm; Thu, 12 Jul 2018 03:27:08 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfWsiVvYpW0PCZ5aRMa0l6gQeXCDBAIprDci/VyhQ4+trO7rNpp+ugqd2+Bg4jpXhbal68v X-Received: by 2002:a17:902:e101:: with SMTP id cc1-v6mr1610188plb.96.1531391228510; Thu, 12 Jul 2018 03:27:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531391228; cv=none; d=google.com; s=arc-20160816; b=XqqrpIwUb5zeGuWqAFRGTQwVWUF/dDcDkPeDs3ABH8L+1AZi6eXcaHhln0gDLjZ8qr xWOPGAhvQoiS7lyCH0/NFt8aIDLuAySPmfOB1dcvWOnDBp93GozY3rpbx6ByM6kL+rAc dj3bkgyuWdZun7wk74mDkBsphoWja34rpnXAKEulgct+dqT/aNOALKrd6YpYASE+XqDr Mrb3AmXl5Q+BVuVWD2LiZ6M4jJIaL99bYQa1ewK5p/sJDQMO72wKN4RyKaIiIXL0FBS9 hKUE2rEO5xieJ8vB4VWRgioBTiZw4oZPy77vr6V2YGK05dtmWV8UCY/QstPNhQ8zYo2/ RUGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=Gb9EqTq6/vuwDMs0sCYxaKM3vjF8RDxpUaV0hxObpqU=; b=X403KXVPtl1fEjiVSTmQ2K/+qczlneEaUGi85SgI5pjW9kF01ccOqVP9jBBcpyGNJj 5zjWqoIcaaSbLoFk+SoVNXTizvVJOZCvl0ejSvNJJzb81Ngm63rwQpHpz91gx3kfYtGa nrYC8+ksUNJynLjkhZe+I/jKaPxB5Yt60SSBgQvwvLDz1GJGgSYqT/Xq00jNFNWnQ5Qa A67/6SLe1sagTjQraNUmjU8eXgEkT6JujrV2ts8W8ELPzyorUtbmloa44NYTpu65Ba+H +lWabjPeq/t+9o4ER30t1CQujiqbL3aF1nN5kD6qTkKl0BbWBPeVkVe2CNSHrPE7646Z DBtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=ms6JUH2L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j63-v6si11340766pgd.425.2018.07.12.03.26.52; Thu, 12 Jul 2018 03:27:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=ms6JUH2L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726632AbeGLKe3 (ORCPT + 99 others); Thu, 12 Jul 2018 06:34:29 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:57096 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726208AbeGLKe3 (ORCPT ); Thu, 12 Jul 2018 06:34:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Gb9EqTq6/vuwDMs0sCYxaKM3vjF8RDxpUaV0hxObpqU=; b=ms6JUH2LIYzimTu5NBjVZFjyJ wbWwtqZPeLK+WGVxEb7VBc+0OClbaVzyaNu+6qYY7sa7+IGgTUV2NwqB6al7ZlytTAS43VUtHgZTZ w26xJWOeIBkcguz27rbe9D5/+dbNQA28XryD5C3xGOs9cmnKlGBbUAa/VnAXo/tK+m+5Q=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdYmv-0003gU-HX; Thu, 12 Jul 2018 10:25:29 +0000 Received: from broonie by debutante with local (Exim 4.91) (envelope-from ) id 1fdYmv-000609-13; Thu, 12 Jul 2018 11:25:29 +0100 Date: Thu, 12 Jul 2018 11:25:29 +0100 From: Mark Brown To: Benjamin Gaignard Cc: Greg KH , "Rafael J. Wysocki" , pascal paillet , Linux Kernel Mailing List , Marek Szyprowski , Benjamin Gaignard Subject: Re: [PATCH] base: core: Remove WARN_ON from link dependencies check Message-ID: <20180712102529.GB10369@sirena.org.uk> References: <20180712080623.21203-1-benjamin.gaignard@st.com> <20180712085501.GA25313@kroah.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cvVnyQ+4j833TQvp" Content-Disposition: inline In-Reply-To: X-Cookie: Kleeneness is next to Godelness. User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --cvVnyQ+4j833TQvp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jul 12, 2018 at 11:18:26AM +0200, Benjamin Gaignard wrote: > 2018-07-12 10:55 GMT+02:00 Greg KH : > > Why would a link already exist that is asked to be created again? What > > code path causes this? > It could happen that the link exist because a device use it parent as supplier. > That case has been describe by Marek in this thread (I forgot to add > it in the commit message, sorry): > https://lkml.org/lkml/2018/7/9/356 If we don't remove the warning then we'd need to have some way for generic code to check if a link that it wants to create exists already since if more than one thing adds links there's always a chance that two of them will come up with the same idea for a link. We could export device_is_dependent() and have them check that, or add a new flag that skips the check for example. This is however probably going to affect a reasonable percentage of potential users. --cvVnyQ+4j833TQvp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAltHLJgACgkQJNaLcl1U h9C01Qf/Yo8mNsWOqLp3z3EqeLhbvMwTrMpea8unVff9E7aS/LrnUPVLxIiW8X5O znojR6MJEZESFT/yTUlzjEvEMP+XQPEixtj+4aSRfrGqhOA9s8nsQaTqsJdE4nqV BRJtJ/lSX62yu01wBhvbi8jMjYPmAc4zPKMXCZ74vmcpZ1pUFGhFCJUMvPKdHY3W QVlRGygDQvFzVTpa4CqJ8TVuiSGCxwP2YXWpVQ2iDTe3591yJasARhuGThMPFv+k jhgIQPhWyL/pPYcfkTaWFSGYNBVjB7F4si+8SRUqfJC37cyJn3xKtpOJftxQTWe8 uUnAMJ7rJiqdShqN8ucv33SCvlC+rQ== =SpG8 -----END PGP SIGNATURE----- --cvVnyQ+4j833TQvp--