X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Fcommon%2Fdebug-yield.h;h=b6d3c102f8260eb62520a3e18bc6c72c69f0de86;hb=ce29b37132cef1c1c758e0862ac701e9bb756d29;hp=b48561c4589fdc82e1e79aaaa107cfb999d10756;hpb=094c8c59183be7b084e4faf061dc23faab1f13b1;p=urcu.git diff --git a/tests/common/debug-yield.h b/tests/common/debug-yield.h index b48561c..b6d3c10 100644 --- a/tests/common/debug-yield.h +++ b/tests/common/debug-yield.h @@ -1,28 +1,14 @@ +// SPDX-FileCopyrightText: 2009 Mathieu Desnoyers +// SPDX-FileCopyrightText: 2009 Paul E. McKenney, IBM Corporation. +// +// SPDX-License-Identifier: LGPL-2.1-or-later + #ifndef URCU_TESTS_DEBUG_YIELD_H #define URCU_TESTS_DEBUG_YIELD_H /* - * debug-yield.h - * * Userspace RCU library tests - Debugging header * - * Copyright (c) 2009 Mathieu Desnoyers - * Copyright (c) 2009 Paul E. McKenney, IBM Corporation. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * * IBM's contributions to this file may be relicensed under LGPLv2 or later. */ @@ -87,11 +73,13 @@ static inline void rcu_debug_yield_write(void) { } -static inline void rcu_debug_yield_enable(unsigned int flags) +static inline void rcu_debug_yield_enable( + unsigned int flags __attribute__((unused))) { } -static inline void rcu_debug_yield_disable(unsigned int flags) +static inline void rcu_debug_yield_disable( + unsigned int flags __attribute__((unused))) { }