Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
changes to support zfs encryption: Unused modlinkage struct removed a…
Browse files Browse the repository at this point in the history
…nd ntohll functions added.
  • Loading branch information
Tom Caputi committed Feb 21, 2016
1 parent 8f3b403 commit 8077eca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
9 changes: 9 additions & 0 deletions include/sys/byteorder.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define _SPL_BYTEORDER_H

#include <asm/byteorder.h>
#include <sys/isa_defs.h>

#define LE_16(x) cpu_to_le16(x)
#define LE_32(x) cpu_to_le32(x)
Expand All @@ -43,4 +44,12 @@
#define BE_IN32(xa) \
(((uint32_t)BE_IN16(xa) << 16) | BE_IN16((uint8_t *)(xa)+2))

#ifdef _BIG_ENDIAN
#define htonll(x) (x)
#define ntohll(x) (x)
#else
#define htonll(x) ((((uint64_t)htonl(x)) << 32) + htonl((x) >> 32))
#define ntohll(x) ((((uint64_t)ntohl(x)) << 32) + ntohl((x) >> 32))
#endif

#endif /* SPL_BYTEORDER_H */
19 changes: 0 additions & 19 deletions include/sys/sunldi.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,4 @@

#define SECTOR_SIZE 512

typedef struct modlinkage {
int ml_rev;
struct modlfs *ml_modlfs;
struct modldrv *ml_modldrv;
major_t ml_major;
unsigned ml_minors;
void *pad1;
} modlinkage_t;

typedef struct ldi_ident {
char li_modname[MAXNAMELEN];
dev_t li_dev;
} *ldi_ident_t;

typedef struct block_device *ldi_handle_t;

extern int ldi_ident_from_mod(struct modlinkage *modlp, ldi_ident_t *lip);
extern void ldi_ident_release(ldi_ident_t li);

#endif /* SPL_SUNLDI_H */

0 comments on commit 8077eca

Please sign in to comment.