Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2799345ybc; Mon, 25 Nov 2019 04:28:11 -0800 (PST) X-Google-Smtp-Source: APXvYqwMVWNdtBamlPxK5r6eb3b9PwVNQd8t/BeovMfkp9riFHIBHbYuN+wVzY9Jtjr6WBy62LJe X-Received: by 2002:a17:906:80c:: with SMTP id e12mr37195358ejd.59.1574684891494; Mon, 25 Nov 2019 04:28:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574684891; cv=none; d=google.com; s=arc-20160816; b=Bxolekf0j0JXIuKIMS+olBJs9jQ3hb5+6ESxuFOzC99o9E2yqyP86YRO/wZrnDPmRB VUVYMaQnkCndWcnthec6Zn/dXpy9BrJLw543QvfsDFLnHTgz44POKb0HlwgoDohq7G2s bYVq7xiUvVqYMvguXsdMPtTduC11vvydFjJwGmkBaiqjV55fTzqhgDx+cAET1oMpl0Ir tacftI7VNBGn1XbBY//LRVVOnWbha3KA1endxCeLO4IdlRpSaXhYFY4NiWxWWYyJkYD4 PTtf3SPcPDPtQ0iGeNKW3LC04N8TmUhyR2bDgqHca4eigxXXUEdxzev3GHjAeyVhNNJk 39IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=GahGsa9WTwFN434Oregky2OAITUCK95LguBdiETlU2U=; b=ntRZeEX501iVtY1BA9+ai7bHVmR4JktsjzQLECzZP4Myq+ZbbYNpkp131QiR0twP1i kD/qbhg6OE9sM3tYd24TYJWrpQr2c+8aH4tOQbMg3UBgRTW5gd6li/xIEjUqm0J2kUAs HgB+24VnEq/Q6Rhz2SzcFE9B5nQvf/LUgJElwLBH4NcTbX/rwj6LBR1dm4SSADCWPE+P jdVYPv0hL6asWIysccWEkUYArb78Gfn2VpS0Fr7OwikgJ95Ho2wgxqHwWEyq8WKX0m20 VSbrmz0rjmu5K6AAF8STcAxhjK8gaOD0aTaOmwZgLE2cdX1/rLAqTlLpq0nCKFPMtwBO 5Y7w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o17si4722664edv.258.2019.11.25.04.27.48; Mon, 25 Nov 2019 04:28:11 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725916AbfKYL2Z (ORCPT + 99 others); Mon, 25 Nov 2019 06:28:25 -0500 Received: from foss.arm.com ([217.140.110.172]:49066 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727783AbfKYL2T (ORCPT ); Mon, 25 Nov 2019 06:28:19 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C4A941396; Mon, 25 Nov 2019 03:28:18 -0800 (PST) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.195.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0644D3F52E; Mon, 25 Nov 2019 03:28:17 -0800 (PST) From: Qais Yousef To: Thomas Gleixner , Greg Kroah-Hartman Cc: Qais Yousef , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: [PATCH v2 09/14] driver: base: cpu: Export device_online/offline Date: Mon, 25 Nov 2019 11:27:49 +0000 Message-Id: <20191125112754.25223-10-qais.yousef@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191125112754.25223-1-qais.yousef@arm.com> References: <20191125112754.25223-1-qais.yousef@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org And the {lock,unlock}_device_hotplug so that they can be used from modules. This is in preparation to replace cpu_up/down with device_online/offline; which kernel/torture.c will require to be exported to be built as a module. Acked-by: Greg Kroah-Hartman Signed-off-by: Qais Yousef CC: Greg Kroah-Hartman CC: "Rafael J. Wysocki" CC: linux-kernel@vger.kernel.org --- drivers/base/core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/base/core.c b/drivers/base/core.c index 7bd9cd366d41..29b40c71b1ba 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -883,11 +883,13 @@ void lock_device_hotplug(void) { mutex_lock(&device_hotplug_lock); } +EXPORT_SYMBOL_GPL(lock_device_hotplug); void unlock_device_hotplug(void) { mutex_unlock(&device_hotplug_lock); } +EXPORT_SYMBOL_GPL(unlock_device_hotplug); int lock_device_hotplug_sysfs(void) { @@ -2679,6 +2681,7 @@ int device_offline(struct device *dev) return ret; } +EXPORT_SYMBOL_GPL(device_offline); /** * device_online - Put the device back online after successful device_offline(). @@ -2710,6 +2713,7 @@ int device_online(struct device *dev) return ret; } +EXPORT_SYMBOL_GPL(device_online); struct root_device { struct device dev; -- 2.17.1