Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2443988pxb; Sun, 8 Nov 2020 00:27:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtrWzjvKQ01wPr8bRpWakiNO7VGpA754EatDFU2deGMpFdgDdNjU7w6t0o9Fnmiw8LrS0M X-Received: by 2002:a17:906:c0c1:: with SMTP id bn1mr9830431ejb.454.1604824058552; Sun, 08 Nov 2020 00:27:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604824058; cv=none; d=google.com; s=arc-20160816; b=HDuNZIlvDFeZlarl9M4eLOUZqid/6+qYXuVi2EzYAfi7j4s4drzKbtFVw2/kBYxlBN qGOCa+6+cc4LcjJ6ikP5OBf9fLnwrUFEH5GUD7kqUK2y4l3pVbvamyLTIlVXJMhyHMx1 ypBrgqBU8RfiyCHkgP+5U2QlM0KKkpgxR4Hew7Dy1Irde/VqDOmO3Vq0LlHgDcJp5RbE aBB5XP1wtgRWCLKEvDHUAAvDA54+/CXw1P1EUnpB+5TjNKtkGQsUqYAQrRgy4yfae+OL tmS0CDf0OErte6Xr/WYVz6qDHjqMxkYiY6x+UAUeQ/ioiJvn1mG6heeXXex35U4QVsmX nA0A== 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=+pn4hArKKGwcl1uMCVzaxJeE/Eemec/q3V5ArR2fuH0=; b=MCx4ykIFbGQDEKgk0KUzWD+UF3z+2Fy4h8aIAfPZLS+l5ST9UANysrKZ2T6KeNy/e4 CINi/l3abASdOXyPJZ1LQwbRCOzqz2/oN1hZ+0M1Q1dFKZXPGOT2VK4tqzU7485f4ILx wvUzSoKagvuGBBTSkQdccKOvsUf8cpWcaCm6DoXwcIJofLSZlH8vMBAhpNMT4p90yFtv sBdMEE31GdCi5xeORyH7d9RzWNAZ4pIddRmLsVDLWzNDvMi8ea34jFFe4ZOmrEvOYJ+D doGj38thrvEKruFtxyLQokTxs+T2XOARrPUlU+zp9ZNgi0Aw+PBUoC5ZxZJx6fVFYrLn s+Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uWWGQo9Q; 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=fail (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 c19si4576725ejz.274.2020.11.08.00.27.16; Sun, 08 Nov 2020 00:27:38 -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=@kernel.org header.s=default header.b=uWWGQo9Q; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727348AbgKHIXX (ORCPT + 99 others); Sun, 8 Nov 2020 03:23:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:44330 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbgKHIXX (ORCPT ); Sun, 8 Nov 2020 03:23:23 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A3C89206F4; Sun, 8 Nov 2020 08:23:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604823801; bh=dfgoyyo0jn/lReXCamWsp1y7s4TCxk3GXJ9wucogaGc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uWWGQo9QNKJ71+/EnDW/0rYlCJ3YWrIvDvirxoG8C+SPkfuFdcaALnB+a+ttz6j4l pwzWq54zkMPsU1Ui3uBMYpVzG2G3dA1/kkzd8kDDHORJ6wZ9T+E/T52Et1xULZtf9Y R5mGyav4M75O5IH1zFxOWqt7ZmhLonGkayQBZZqU= Date: Sun, 8 Nov 2020 09:23:17 +0100 From: Greg Kroah-Hartman To: Sudip Mukherjee Cc: "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, Shawn Guo , Stephen Boyd , Dong Aisheng Subject: Re: [PATCH RESEND] driver core: export device_is_bound() to fix build failure Message-ID: <20201108082317.GA40741@kroah.com> References: <20201107224727.11015-1-sudipm.mukherjee@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201107224727.11015-1-sudipm.mukherjee@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 07, 2020 at 10:47:27PM +0000, Sudip Mukherjee wrote: > When CONFIG_MXC_CLK_SCU is configured as 'm' the build fails as it > is unable to find device_is_bound(). The error being: > ERROR: modpost: "device_is_bound" [drivers/clk/imx/clk-imx-scu.ko] > undefined! > > Export the symbol so that the module finds it. > > Fixes: 77d8f3068c63 ("clk: imx: scu: add two cells binding support") > Signed-off-by: Sudip Mukherjee > --- > > resending with the Fixes: tag. > > drivers/base/dd.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/base/dd.c b/drivers/base/dd.c > index 148e81969e04..a796a57e5efb 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(device_is_bound); EXPORT_SYMBOL_GPL() please, like all the other exports in this file. Also, wait, no, don't call this, are you sure you are calling it in a race-free way? And what branch/tree is the above commit in? thanks, greg k-h