From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Rostedt Subject: [PATCH 2/5] rcu: Fix macro substitution for synchronize_rcu_bh() on RT Date: Fri, 18 Nov 2011 23:45:12 -0500 Message-ID: <20111119044831.614814511@goodmis.org> References: <20111119044510.811163517@goodmis.org> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="00GvhwF7k39YY" Cc: Thomas Gleixner , Carsten Emde , John Kacur , Paul McKenney , stable-rt@vger.kernel.org To: linux-kernel@vger.kernel.org, linux-rt-users Return-path: Content-Disposition: inline; filename=0002-rcu-Fix-macro-substitution-for-synchronize_rcu_bh-on.patch Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-rt-users.vger.kernel.org --00GvhwF7k39YY Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: John Kacur kernel/rcutorture.c:492: error: =E2=80=98synchronize_rcu_bh=E2=80=99 undecl= ared here (not in a function) synchronize_rcu_bh() is not just called as a normal function, but can also be referenced as a function pointer. When CONFIG_PREEMPT_RT_FULL is enabled, synchronize_rcu_bh() is defined as synchronize_rcu(), but needs to be defined without the parenthesis because the compiler will complain when synchronize_rcu_bh is referenced as a function pointer and not a function. Signed-off-by: John Kacur Cc: Paul McKenney Cc: stable-rt@vger.kernel.org Link: http://lkml.kernel.org/r/1321235083-21756-1-git-send-email-jkacur@red= hat.com Signed-off-by: Thomas Gleixner Signed-off-by: Steven Rostedt --- include/linux/rcutree.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/rcutree.h b/include/linux/rcutree.h index 7a25aea..3bf47dc 100644 --- a/include/linux/rcutree.h +++ b/include/linux/rcutree.h @@ -60,7 +60,7 @@ static inline void exit_rcu(void) #ifndef CONFIG_PREEMPT_RT_FULL extern void synchronize_rcu_bh(void); #else -# define synchronize_rcu_bh() synchronize_rcu() +# define synchronize_rcu_bh synchronize_rcu #endif extern void synchronize_sched_expedited(void); extern void synchronize_rcu_expedited(void); --=20 1.7.7.1 --00GvhwF7k39YY Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAABAgAGBQJOxzUfAAoJEIy3vGnGbaoAXQUP/15+IXQ/IT/9MAhQd/04iueH FxzNx02/lnkL4RQEYi8NdP1D0ASoSKjc6QObAVrMCfvlYGyZgZIztc0AwNkns5fo J5bm6RE60MtsCoL0MUjfUcQ4JM7ZgFqjt8vzsyjBi0kIcXyI4DWMwRNTSomgINnB /Lhl3t5iAHQowzqyOZVcFvrtogYqFssXrsvnlEOa4ta5nSPdClAoC7kVaFknJQXj efNakJ8mFxSikhEUmG9AQOdd/o4GuuofhzE0COeghmpWuLVEwDUKvFqb0pxhoEms cp72fm2SVBsuo+Ld2voQzpK8l/0wvy2jZHkxMGIm03RAIMLRZDzdtue78B8kT6rV /RXuJNhjgQhi+6uPjlI5nDikqZPQ2B+c2+NuEdGdGmk9sKKeVxt/GEjwv8AdCi/M GxAmncTspV6RbhsGwntHDyE1Qv4ZAvqV1awmIw66t6E5kGuYJLvtiQKSsQq7QI/4 W6vpx+oa98x4vdy18H+JKXbmpHVqUK8juATi8wcCK1vIyO5uS9Q5eZyDDcscJM62 PhBG1X86/71119odhhUwlRUmsgVbMTzlb0FGFg0klR6YQy/87jastTjHMCOR50rA tw+u+KqdtWvEEQ+GD7BnNNxghUiOpqW8sLbsARoA+kmDUif68mCthgEI9jDl9VV+ baA9sJokN8h86n3eVz4h =vzUy -----END PGP SIGNATURE----- --00GvhwF7k39YY--