Received: by 10.192.165.148 with SMTP id m20csp2931103imm; Sun, 22 Apr 2018 19:37:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx4//lkOqzriY02i9gONHSCBDMsTOxdHSqtIcg0h/MQJh3I49ULIlOs157cdO456u9ysaUe2p X-Received: by 10.98.194.133 with SMTP id w5mr18265454pfk.6.1524451061796; Sun, 22 Apr 2018 19:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524451061; cv=none; d=google.com; s=arc-20160816; b=bnthEAfXnYkS6ULT0c3diApR83vlrk8vxFGTpzd3nRqlUsJ0rVBJKQsBvQ/kB3KtXd 3MhrmeRuvk6I7IfHYZzfOTemlvEwj7UHtoP9y6SckhRTSTKxcm1rXQyg0u7dxK9GaXJG zUZbwSu1MlpU5wtcRqwjtZ/uoZC58tbXVEgj9BQR4Q37NB9n2CPdMQlCUuTckJDKVMfT 3DwzdklNMNf/L+f6AOA4TaGzpnvj3td3CeoMiIHHEmM2KUdATVzdMOnBVz58FnoI5GLh RfSyrWab7yoSD/KHXVVu6fxZ/bZ2S0sJSUrC+nTezEOoKaZVSKwIm5HbzqRvMl5OfnK1 jbag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=ZH3NnfpRjDBgOmS7Cepe4eU89njoqCdmv49dpKwGLFw=; b=tp0ABkgkh/AX1vuH+CNLby1KGws/w8LpD4FthCBC+hxzgIFjPaN1W7ZqytYkJuADnq RKWEynJH1YefG1G+s84HaqSQL8RunEiufFSZym2+M6heJtozrsPmxW8kMSny80eyn9WM dV+DSzd3XJU+L7t7PVnLHKB37oDyQLzpIX9hWyd9sHt6Mgn9iQpvcMB2N3MvBfkaVSD9 2IpAh21tO7FXiSxjer8BOn87OpIsgCA5JJ02JRDQySTfY51sHzFjMeeTbcukYO1z8Dle iYQmY4SigafEYNjrPFCXwNxdIWZZuDG4vklis5LhNehVu388+ns2IW/cZOM/tB5hVNdQ Vw3g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a64si8771888pgc.265.2018.04.22.19.37.27; Sun, 22 Apr 2018 19:37:41 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754238AbeDWCfc (ORCPT + 99 others); Sun, 22 Apr 2018 22:35:32 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:59652 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753938AbeDWCbW (ORCPT ); Sun, 22 Apr 2018 22:31:22 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3N2UR3b058341 for ; Sun, 22 Apr 2018 22:31:21 -0400 Received: from e15.ny.us.ibm.com (e15.ny.us.ibm.com [129.33.205.205]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hh3w5cshe-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Sun, 22 Apr 2018 22:31:21 -0400 Received: from localhost by e15.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 22 Apr 2018 22:31:20 -0400 Received: from b01cxnp22034.gho.pok.ibm.com (9.57.198.24) by e15.ny.us.ibm.com (146.89.104.202) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Sun, 22 Apr 2018 22:31:16 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3N2VETE53805308; Mon, 23 Apr 2018 02:31:15 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 56649B2060; Sun, 22 Apr 2018 23:33:18 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.85.149.45]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id 1ACC6B2052; Sun, 22 Apr 2018 23:33:18 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 908A416C91AB; Sun, 22 Apr 2018 19:32:28 -0700 (PDT) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: mingo@kernel.org, jiangshanlai@gmail.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, fweisbec@gmail.com, oleg@redhat.com, joel.opensrc@gmail.com, Yury Norov , "Paul E. McKenney" Subject: [PATCH tip/core/rcu 10/22] rcu: Declare rcu_eqs_special_set() in public header Date: Sun, 22 Apr 2018 19:32:15 -0700 X-Mailer: git-send-email 2.5.2 In-Reply-To: <20180423023150.GA21533@linux.vnet.ibm.com> References: <20180423023150.GA21533@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18042302-0036-0000-0000-000002E8AF7C X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008903; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000257; SDB=6.01021888; UDB=6.00521536; IPR=6.00801123; MB=3.00020719; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-23 02:31:19 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18042302-0037-0000-0000-00004414FD95 Message-Id: <1524450747-22778-10-git-send-email-paulmck@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-23_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804230025 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yury Norov Because rcu_eqs_special_set() is declared only in internal header kernel/rcu/tree.h and stubbed in include/linux/rcutiny.h, it is inaccessible outside of the RCU implementation. This patch therefore moves the rcu_eqs_special_set() declaration to include/linux/rcutree.h, which allows it to be used in non-rcu kernel code. Signed-off-by: Yury Norov Signed-off-by: Paul E. McKenney --- include/linux/rcutree.h | 1 + kernel/rcu/tree.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/rcutree.h b/include/linux/rcutree.h index fd996cdf1833..448f20f27396 100644 --- a/include/linux/rcutree.h +++ b/include/linux/rcutree.h @@ -74,6 +74,7 @@ static inline void synchronize_rcu_bh_expedited(void) void rcu_barrier(void); void rcu_barrier_bh(void); void rcu_barrier_sched(void); +bool rcu_eqs_special_set(int cpu); unsigned long get_state_synchronize_rcu(void); void cond_synchronize_rcu(unsigned long oldstate); unsigned long get_state_synchronize_sched(void); diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h index 5fd374c71404..0b3a90ebe225 100644 --- a/kernel/rcu/tree.h +++ b/kernel/rcu/tree.h @@ -404,7 +404,6 @@ extern struct rcu_state rcu_preempt_state; #endif /* #ifdef CONFIG_PREEMPT_RCU */ int rcu_dynticks_snap(struct rcu_dynticks *rdtp); -bool rcu_eqs_special_set(int cpu); #ifdef CONFIG_RCU_BOOST DECLARE_PER_CPU(unsigned int, rcu_cpu_kthread_status); -- 2.5.2