summaryrefslogtreecommitdiff
path: root/backport-include/linux/err.h
blob: d08968e5e2d095f8eb1ae12b029ed217918066ba (plain)
1
2
3
4
5
6
7
8
9
10
#ifndef __BACKPORT_LINUX_ERR_H
#define __BACKPORT_LINUX_ERR_H
#include_next <linux/err.h>
#include <linux/version.h>

#if LINUX_VERSION_IS_LESS(3,12,0)
#define PTR_ERR_OR_ZERO(p) PTR_RET(p)
#endif

#endif /* __BACKPORT_LINUX_ERR_H */