Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1024728ybx; Wed, 30 Oct 2019 08:43:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkKz3t725eV7zuPCJsAwBqbCkT94pONxC3tjpv572o6wM+/NSoob3j8+ZIGlOQ3SzSQOPY X-Received: by 2002:a50:f7cc:: with SMTP id i12mr313710edn.81.1572450220499; Wed, 30 Oct 2019 08:43:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572450220; cv=none; d=google.com; s=arc-20160816; b=Q8TpzhItzLplKMYIPVOUp4H3MGpbe2fARVWrYqvs2ba0YobD95g/cO1yyOm+M1otns G0Tb0ZyTqTq9TeDAhVP1xu5GH3xnD9Nt+PvM1DVB5fne93oPMaZhpZjvF6AdlY5Wbl5Y V1V9W8taRZV/ujecqJfwBbSf7eu2bSkyl3/ITLeHJUIJj8dENQu+Psk6dTyiwX0blh5B t+IGs/yfi3BofErFK79TwMjA5cPLEb7BUKFVuKzoBpgBePLxdyxuw+u/WpGQGCib6pYS UnzWye9mJQ3fsIw+S+7qo1hatOAXvFXVFfmF6W4kMz7nyt4xLVyJsQMEGzDVuJ5E09fn iBSg== 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=jVQwGvjDrtWTxKG6Mu1SxGlPJR6RqE8YexxKgYZVzoE=; b=vqBR2Q7Kye4cjVvGcoLToX/vcT7rYioIu8Bs/fx268re4RBCnyM7M3VTpZmhk33WgF JIh4nMRev71agpb32oMtIbeIzFfq1pT49bJPtaM1Y8BvtreyH2k9C71mX/dW6ascc7nx +nWZPap40DGAna5YJIrIGgTrgYpsOR//lirL+SXnBc5BU4BrPXJM6/h+Pgcnwxbc2Vmw aZuJW4LOmulz+HMRVt12QqkjQoOQcOn/ZFlq9VvLBX0p+NSCmefXpwAec/HnSiWZqDtk GM3BEl/KHwFp08qOu51tdhT7QOI7ShGinwjcP+0UD01J/N0o3FESkNMcmRiGwGMn/Mzb CrJg== 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 m3si2018384edb.250.2019.10.30.08.43.17; Wed, 30 Oct 2019 08:43:40 -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; 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 S1727398AbfJ3Pm2 (ORCPT + 99 others); Wed, 30 Oct 2019 11:42:28 -0400 Received: from foss.arm.com ([217.140.110.172]:36696 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727377AbfJ3Pm0 (ORCPT ); Wed, 30 Oct 2019 11:42:26 -0400 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 0255E4F5; Wed, 30 Oct 2019 08:42:26 -0700 (PDT) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.195.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 351803F6C4; Wed, 30 Oct 2019 08:42:25 -0700 (PDT) From: Qais Yousef To: Thomas Gleixner , Greg Kroah-Hartman Cc: Qais Yousef , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: [PATCH 07/12] driver: base: cpu: export device_online/offline Date: Wed, 30 Oct 2019 15:38:32 +0000 Message-Id: <20191030153837.18107-8-qais.yousef@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191030153837.18107-1-qais.yousef@arm.com> References: <20191030153837.18107-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. 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 2db62d98e395..3431cd0c9eac 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -882,11 +882,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) { @@ -2678,6 +2680,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(). @@ -2709,6 +2712,7 @@ int device_online(struct device *dev) return ret; } +EXPORT_SYMBOL_GPL(device_online); struct root_device { struct device dev; -- 2.17.1