Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1844353pxb; Fri, 5 Mar 2021 00:36:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwFeAkva7kvV7GEz8fa8N5ZWOE3SNkkLa3mMPah0uTP5v605HzGD53G43yDT1PEplmQQ+4z X-Received: by 2002:aa7:c1d5:: with SMTP id d21mr7950947edp.167.1614933414681; Fri, 05 Mar 2021 00:36:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614933414; cv=none; d=google.com; s=arc-20160816; b=qi1Ocw5/kpS/r0DLEszMm7gLOwyk0rjWyJTrw1psfnx3TQC0+YIO+4ejP9IAImzSFm LVnvtY+jDuyksNllGyNPNt0PTShVc/ZS1CNsWG1nhoN30B3zqVGORqgnSqA6/ovGK4dG tfzcgnCFdNUlnHwyK6Wy7NA5wVaCp3U6kNtxTYE5woDCpaUj26S3aiCnQasC7vuSEKQT IQ6NO9EwoCHARI21RH0oHQ4WMlPEY3Hv/geVjML92K8/6+eWjtj9a3utIVYBoiuCxhAm Beo/3GTDJf/scimjo794Awm9C/xVb5tsYJRornd0yl/a36SOyGLJRCRBqfQjsPakQzw/ sKFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=b5qQ9OaXr9+WuEx12XH72RvLokbc06u12MBa0Oshx/0=; b=R1OrI+fBHiUS4L0n8Jd77txN6zEjJLqr+E5qZbKdPhtw3eiGOxWlzzrKKwO9Q4DpT8 y1gfdVjLGCqLfzmVU3MuePjhyl15fCe9LAu9TG89Xoo7gUWmOK8rM5SFx0+LwXMv77KP wDDaBulEHHAobQ9A2xTpgVq1Jc7y8i0lllcO2qBBAqhOqccFs5mTGX+CWqI9pT4f5R2k KQmjRWpC8x+GvGkdiKPkGpW5hS+V2dyZvH+nqa//OIdWcE4DbR0IUFrnF84+r+hIT6UQ fHftfYVDVX16+dif7hEHZv6YeiRUMyFy7ZVDJPPiXz2O8k9qTnEyFpbzdwo1ZvWxIH3e RJQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dXWlFuw6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s10si1062477ejv.67.2021.03.05.00.36.32; Fri, 05 Mar 2021 00:36:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dXWlFuw6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229653AbhCEIeY (ORCPT + 99 others); Fri, 5 Mar 2021 03:34:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:49726 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbhCEIeC (ORCPT ); Fri, 5 Mar 2021 03:34:02 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5A8AE64DD1; Fri, 5 Mar 2021 08:34:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614933241; bh=vw6EGjbXZIEeWKBtB6myI1NVU4w2Gp7ON2w8kB2mftg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dXWlFuw6bYicLWfrlUcriO6QBzFSOivpu1TEl0bhDZ/u8QQq4sLt9dUcov/TNHnfN 9k8XY0HqFFjPV/uIuvoQTFsshxVGpGmm+o7DGTBi4q0IaSPSXeR8PEc3W06s0GgIDU lAQpvSC9ie7bbj8wZrcHrRmIsliG8JCIOBacpBIg= Date: Fri, 5 Mar 2021 09:33:32 +0100 From: Greg KH To: Geert Uytterhoeven Cc: Bartosz Golaszewski , Joel Becker , Christoph Hellwig , Shuah Khan , Linus Walleij , Andy Shevchenko , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Kent Gibson , Jonathan Corbet , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , "open list:DOCUMENTATION" , Bartosz Golaszewski Subject: Re: [PATCH v2 08/12] drivers: export device_is_bound() Message-ID: References: <20210304102452.21726-1-brgl@bgdev.pl> <20210304102452.21726-9-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 05, 2021 at 09:18:30AM +0100, Geert Uytterhoeven wrote: > CC Greg > > On Thu, Mar 4, 2021 at 11:30 AM Bartosz Golaszewski wrote: > > > > From: Bartosz Golaszewski > > > > Export the symbol for device_is_bound() so that we can use it in gpio-sim > > to check if the simulated GPIO chip is bound before fetching its driver > > data from configfs callbacks in order to retrieve the name of the GPIO > > chip device. > > > > Signed-off-by: Bartosz Golaszewski > > --- > > drivers/base/dd.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/base/dd.c b/drivers/base/dd.c > > index 9179825ff646..c62c02e3490a 100644 > > --- a/drivers/base/dd.c > > +++ b/drivers/base/dd.c > > @@ -353,6 +353,7 @@ bool device_is_bound(struct device *dev) > > { > > return dev->p && klist_node_attached(&dev->p->knode_driver); > > } > > +EXPORT_SYMBOL_GPL(device_is_bound); No. Please no. Why is this needed? Feels like someone is doing something really wrong... NACK.