Path: blob/main/sys/compat/linuxkpi/common/include/linux/compiler_attributes.h
96366 views
/*1* SPDX-License-Identifier: BSD-2-Clause2*3* Copyright (c) 2010 Isilon Systems, Inc.4* Copyright (c) 2010 iX Systems, Inc.5* Copyright (c) 2010 Panasas, Inc.6* Copyright (c) 2013-2016 Mellanox Technologies, Ltd.7* Copyright (c) 2015 François Tigeot8* All rights reserved.9*/1011#ifndef _LINUXKPI_LINUX_COMPILER_ATTRIBUTES_H_12#define _LINUXKPI_LINUX_COMPILER_ATTRIBUTES_H_1314#include <sys/cdefs.h>1516#define __attribute_const__ __attribute__((__const__))1718#ifndef __deprecated19#define __deprecated20#endif2122#define fallthrough /* FALLTHROUGH */ do { } while(0)2324#undef __always_inline25#define __always_inline inline2627#define __printf(a,b) __printflike(a,b)2829#define __malloc3031#define noinline __noinline3233#if __has_attribute(__nonstring__)34#define __nonstring __attribute__((__nonstring__))35#else36#define __nonstring37#endif3839#define noinline_for_stack __noinline4041#define __maybe_unused __unused42#define __always_unused __unused4344#define __must_check __result_use_check4546#define __weak __weak_symbol4748#endif495051