From patchwork Tue Feb 27 17:37:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: simon X-Patchwork-Id: 10245855 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 1709A60384 for ; Tue, 27 Feb 2018 17:38:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08A7A287B1 for ; Tue, 27 Feb 2018 17:38:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F193D28A1F; Tue, 27 Feb 2018 17:38:25 +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 44F1728A1D for ; Tue, 27 Feb 2018 17:38:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751734AbeB0RiW (ORCPT ); Tue, 27 Feb 2018 12:38:22 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:42628 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751679AbeB0RiU (ORCPT ); Tue, 27 Feb 2018 12:38:20 -0500 Received: by mail-pl0-f66.google.com with SMTP id 93-v6so1217235plc.9; Tue, 27 Feb 2018 09:38:20 -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=EbQIjebSHmvlj+X1oKfD6kV+kVaQ3AzewoPoocwbNxWWng2Iwywi3WYt/Yjp2EBueo KPDBayaDfWZKKHf+sCCvLjwTFB+fJEOKhORUn5t9wzUdsrJs6sBThvmEJIbs9Hrou7y4 UGGCmTAPdHEz/MGENMRTk5UemGgZ1W7NRZu86syXzsJ3GwTRynam8SnxOxCq6sEWXjU0 OKLV96uNY4/+bjoYUG5N+iQGcMK5u4uXxALcXZ/btMJmCUFerfOsgrkHswMxSvoej0BO 0jsC9Ehn0Fdg+6M4pbPXDaf6EqClEWO3+UbuqcQAo5fQVsVGb8fxg2GQj8yBkz2I2UpY ZmFA== 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=pISGUFbSaBfbD+Z09GnIGou+JCXZo+ZuyooFAhC5NYPQFW9nvyvmIoqL6b1L5oZVFM RN7vjVsDc2W60Md8XKDOS3arbVh//3f+Qqhv6930CVuNP1y7MOCmUrsf42q402A/lRIR eXqFiBbKSPJDVyJ3MrjN+iySjL+c3QKskFBCyXpbdLBagngsuyY9XDz6W0boNiG52OpM Gy9cMP4FnyyQjxfL7wqf3CHsSwzRCz7QDKz61D4mH7VnhgVVKUB9s0M0ZL0Fk0OFd0cS c9ghQ+OwUl4QJAlo5Ugrh2Y29qrntBA/D6Qqc84bwJfnD8pDOvrB+B6yqAbDPMomF3oG R+BA== X-Gm-Message-State: APf1xPAhS8UeDA5E22IPQKlFp15NYppNxnve8JK32vNcHqMvmZZ1XuB4 Usoz//I5hhs6ys8ij0L816/3hA== X-Google-Smtp-Source: AH8x2247GJUbGOJHH/wShZCpnFQGifwPOzbXfDM1Q4UZWCXPuCUsV+hIP2K5dXXAYWk58strYoiXjw== X-Received: by 2002:a17:902:bb96:: with SMTP id m22-v6mr14952502pls.17.1519753099844; Tue, 27 Feb 2018 09:38:19 -0800 (PST) Received: from simonLocalRHEL7.x64 ([101.80.181.226]) by smtp.gmail.com with ESMTPSA id q87sm14734143pfa.29.2018.02.27.09.38.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Feb 2018 09:38:19 -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 v2 01/30] powerpc: export symbol msr_check_and_set(). Date: Wed, 28 Feb 2018 01:37:08 +0800 Message-Id: <1519753057-11059-2-git-send-email-wei.guo.simon@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1519753057-11059-1-git-send-email-wei.guo.simon@gmail.com> References: <1519753057-11059-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) {