compiler.h 623 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2016-2021, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under both the BSD-style license (found in the
  6. * LICENSE file in the root directory of this source tree) and the GPLv2 (found
  7. * in the COPYING file in the root directory of this source tree).
  8. * You may select, at your option, one of the above-listed licenses.
  9. */
  10. #ifndef LINUX_COMPILER_H
  11. #define LINUX_COMPILER_H
  12. #ifndef inline
  13. #define inline __inline __attribute__((unused))
  14. #endif
  15. #ifndef noinline
  16. #define noinline __attribute__((noinline))
  17. #endif
  18. #define fallthrough __attribute__((__fallthrough__))
  19. #endif