Skip to content

Commit

Permalink
isofs: use get/put_unaligned_* helpers
Browse files Browse the repository at this point in the history
Signed-off-by: Harvey Harrison <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
hharrison authored and torvalds committed Apr 29, 2008
1 parent 8b3789e commit 58d485d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions fs/isofs/isofs.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,29 +78,29 @@ static inline int isonum_712(char *p)
}
static inline unsigned int isonum_721(char *p)
{
return le16_to_cpu(get_unaligned((__le16 *)p));
return get_unaligned_le16(p);
}
static inline unsigned int isonum_722(char *p)
{
return be16_to_cpu(get_unaligned((__le16 *)p));
return get_unaligned_be16(p);
}
static inline unsigned int isonum_723(char *p)
{
/* Ignore bigendian datum due to broken mastering programs */
return le16_to_cpu(get_unaligned((__le16 *)p));
return get_unaligned_le16(p);
}
static inline unsigned int isonum_731(char *p)
{
return le32_to_cpu(get_unaligned((__le32 *)p));
return get_unaligned_le32(p);
}
static inline unsigned int isonum_732(char *p)
{
return be32_to_cpu(get_unaligned((__le32 *)p));
return get_unaligned_be32(p);
}
static inline unsigned int isonum_733(char *p)
{
/* Ignore bigendian datum due to broken mastering programs */
return le32_to_cpu(get_unaligned((__le32 *)p));
return get_unaligned_le32(p);
}
extern int iso_date(char *, int);

Expand Down

0 comments on commit 58d485d

Please sign in to comment.