X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libringbuffer%2Fsmp.h;h=028a66f7844aa47a791db7618469a387e7f999b2;hb=f1324c1158b8ad5b9dd8bcc55e2a1a26ab2113ae;hp=479a9dc60a01c9810d166ed1944e8fc7dfb4ecb0;hpb=e92f3e285939848f248af08f11a39a04a7fcf852;p=lttng-ust.git diff --git a/libringbuffer/smp.h b/libringbuffer/smp.h index 479a9dc6..028a66f7 100644 --- a/libringbuffer/smp.h +++ b/libringbuffer/smp.h @@ -1,26 +1,12 @@ -#ifndef _LIBRINGBUFFER_SMP_H -#define _LIBRINGBUFFER_SMP_H - /* - * libringbuffer/smp.h + * SPDX-License-Identifier: LGPL-2.1-only * * Copyright (C) 2011-2012 Mathieu Desnoyers - * - * 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; only - * version 2.1 of the License. - * - * 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 */ +#ifndef _LIBRINGBUFFER_SMP_H +#define _LIBRINGBUFFER_SMP_H + #include "getcpu.h" /* @@ -29,8 +15,11 @@ */ #define PER_CPU_MEM_SIZE 4096 -extern int __num_possible_cpus; -extern void _get_num_possible_cpus(void); +extern int __num_possible_cpus + __attribute__((visibility("hidden"))); + +extern void _get_num_possible_cpus(void) + __attribute__((visibility("hidden"))); static inline int num_possible_cpus(void)