From patchwork Thu Jan 11 10:11:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: simon X-Patchwork-Id: 10157743 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B6712602B3 for ; Thu, 11 Jan 2018 10:12:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5C33205A4 for ; Thu, 11 Jan 2018 10:12:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA51622AFC; Thu, 11 Jan 2018 10:12:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E454205A4 for ; Thu, 11 Jan 2018 10:12:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933276AbeAKKMf (ORCPT ); Thu, 11 Jan 2018 05:12:35 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:38265 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932982AbeAKKMd (ORCPT ); Thu, 11 Jan 2018 05:12:33 -0500 Received: by mail-pf0-f194.google.com with SMTP id k19so1309493pfj.5; Thu, 11 Jan 2018 02:12:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2wC9NkHUFhYZ9e4o08Amebiq6CGfaKHA+mYyWXCbS4I=; b=BAHEnZn34xwxYFf1p/p+3OTYxe16cG/0PHcLRJm1LIbywySEAx+ubgp9Pw3t7iG9X0 2FK3EZWa0TKWRsYGM25J8M5saybGoQi6QtWb53z2Ly7utGth7+NjYazJMNvEyVtJtTcC LI3wj0HgMlFeE648yNcfh+My5SyZtv2omh7y/5eQkG5N8o3dJVIs1AF4avMe2OZp6Que 1pTa/EaSiWJj2R5SaaG2JEr6f+MNbOVwc15lyfEMcdORtnp8KFKh3DK78jkTSddmHo48 PWapom0mJHBFylDXswtjlZHy4luFk2m9verJHpf7UCEXo2KcY/ClaPenbKpXCfxjqem2 eAcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2wC9NkHUFhYZ9e4o08Amebiq6CGfaKHA+mYyWXCbS4I=; b=PV4ihvf3gCecLKJIEb91nqsC6VZ8+rpo7yiKcgxiTdGtW9Lpsxi6nFt+4/cPX5D0KJ IHlnyv7nhuiXdFdKWAoGLcsI9LUsJCW32E65XYQSTe3YrsI5Q7LecYC5Sh5eBlf/WF9h WK7Z4ANYw7poRWJm2GEoQhsWape/9ulrxl6+PlBrucgTxqD+O3UocmiaKrNuss9dQlCA DnMBFr1aaXQwtM6JtlPgkFszq1P4dmmzF0nYbz6fxUgjHhEoXCCByMby1a1HwI7z/xHq CckVXONgzW3jjgZwz8hUD7MEwqtCrgfzlH9R2KsoDsU+B9qNcDNwcBVORSjt0k2UKHEi 7fCw== X-Gm-Message-State: AKGB3mIXgeoJxuDNb+9FJ4S0BqfRjZFFNLUGw63XKw2U6tG2agJfsdF8 +02I/Zt3hBRVXws2V8YHL+g= X-Google-Smtp-Source: ACJfBovES9naZUIjrqXx3eR1yltXTIy0D3Zbop6YeeBiK/cN//KP7igIiiLGuOh/f7oKBf9w9SrfKQ== X-Received: by 10.84.244.202 with SMTP id f10mr17841013plt.386.1515665553293; Thu, 11 Jan 2018 02:12:33 -0800 (PST) Received: from simonLocalRHEL7.cn.ibm.com ([112.73.0.88]) by smtp.gmail.com with ESMTPSA id m11sm34336122pgt.56.2018.01.11.02.12.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jan 2018 02:12:32 -0800 (PST) From: wei.guo.simon@gmail.com To: linuxppc-dev@lists.ozlabs.org Cc: Paul Mackerras , kvm@vger.kernel.org, kvm-ppc@vger.kernel.org, Simon Guo Subject: [PATCH 12/26] powerpc: export symbol msr_check_and_set(). Date: Thu, 11 Jan 2018 18:11:25 +0800 Message-Id: <1515665499-31710-13-git-send-email-wei.guo.simon@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1515665499-31710-1-git-send-email-wei.guo.simon@gmail.com> References: <1515665499-31710-1-git-send-email-wei.guo.simon@gmail.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Simon Guo PR KVM will need to reuse msr_check_and_set(). This patch exports this API for reuse. Signed-off-by: Simon Guo Reviewed-by: Paul Mackerras --- arch/powerpc/kernel/process.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 72be0c3..8f430e6 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c @@ -152,6 +152,7 @@ unsigned long msr_check_and_set(unsigned long bits) return newmsr; } +EXPORT_SYMBOL_GPL(msr_check_and_set); void __msr_check_and_clear(unsigned long bits) {