Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281158
b: refs/heads/master
c: ccc7340
h: refs/heads/master
v: v3
  • Loading branch information
Mathieu Desnoyers authored and Greg Kroah-Hartman committed Nov 29, 2011
1 parent d7d4ec8 commit eb3a99a
Show file tree
Hide file tree
Showing 7 changed files with 1,752 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6857797120e99facc465a972026038199e4c2356
refs/heads/master: ccc7340a9415839763e872bceb626638c58174a1
31 changes: 31 additions & 0 deletions trunk/drivers/staging/lttng/ltt-endian.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#ifndef _LTT_ENDIAN_H
#define _LTT_ENDIAN_H

/*
* ltt-endian.h
*
* Copyright 2010 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
* Dual LGPL v2.1/GPL v2 license.
*/

#ifdef __KERNEL__
# include <asm/byteorder.h>
# ifdef __BIG_ENDIAN
# define __BYTE_ORDER __BIG_ENDIAN
# elif defined(__LITTLE_ENDIAN)
# define __BYTE_ORDER __LITTLE_ENDIAN
# else
# error "unknown endianness"
# endif
#ifndef __BIG_ENDIAN
# define __BIG_ENDIAN 4321
#endif
#ifndef __LITTLE_ENDIAN
# define __LITTLE_ENDIAN 1234
#endif
#else
# include <endian.h>
#endif

#endif /* _LTT_ENDIAN_H */
Loading

0 comments on commit eb3a99a

Please sign in to comment.