Remove direct use of compiler attribute.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
#ifdef TUP
#elif defined(__GNUC__)
-#define TUP(x) x##_unused __attribute__((unused))
+#define TUP(x) x##_unused txgbe_unused
#elif defined(__LCLINT__)
#define TUP(x) x /*@unused@*/
#else
PMD_DRV_LOG(ERR, "TXGBE: %d", x); \
} while (0)
+#define txgbe_unused __rte_unused
+
#define usec_delay(x) rte_delay_us(x)
#define msec_delay(x) rte_delay_ms(x)
#define usleep(x) rte_delay_us(x)
((mask & 0xFFFFFFFF00000000) >> 32);
}
-#ifndef __rte_weak
-#define __rte_weak __attribute__((__weak__))
-#endif
-
#define IOMEM
#define prefetch(x) rte_prefetch0(x)