Commit-ID: 54cfe8dbfe60de0c51d975929e2ed5a3b532cf89 Gitweb: http://git.kernel.org/tip/54cfe8dbfe60de0c51d975929e2ed5a3b532cf89 Author: Lan Tianyu <tianyu.lan@xxxxxxxxx> AuthorDate: Thu, 15 Dec 2011 21:40:14 +0800 Committer: Pekka Enberg <penberg@xxxxxxxxxx> CommitDate: Sat, 17 Dec 2011 09:28:02 +0200 kvm tools: Use kernel error check functions Add compiler.h file to support using kernel error check funciotns(e.g ERR_PTR, PTR_ERR and so on). Signed-off-by: Lan Tianyu <tianyu.lan@xxxxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- tools/{perf/util => kvm}/include/linux/compiler.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/tools/perf/util/include/linux/compiler.h b/tools/kvm/include/linux/compiler.h similarity index 76% copy from tools/perf/util/include/linux/compiler.h copy to tools/kvm/include/linux/compiler.h index 791f9dd..bd360c2 100644 --- a/tools/perf/util/include/linux/compiler.h +++ b/tools/kvm/include/linux/compiler.h @@ -8,5 +8,9 @@ #define __attribute_const__ #define __used __attribute__((__unused__)) +#define __iomem +#define __force +#define __must_check +#define unlikely #endif -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html