linux-compat.h 565 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /**
  3. * linux-compat.h - DesignWare USB3 Linux Compatibiltiy Adapter Header
  4. *
  5. * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com
  6. *
  7. * Authors: Kishon Vijay Abraham I <kishon@ti.com>
  8. *
  9. */
  10. #ifndef __DWC3_LINUX_COMPAT__
  11. #define __DWC3_LINUX_COMPAT__
  12. #define WARN(val, format, arg...) debug(format, ##arg)
  13. #define dev_WARN(dev, format, arg...) debug(format, ##arg)
  14. static inline size_t strlcat(char *dest, const char *src, size_t n)
  15. {
  16. strcat(dest, src);
  17. return strlen(dest) + strlen(src);
  18. }
  19. #endif