mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
conditionally define U32_MAX
The symbol U32_MAX is defined in several spots. Change these definitions to be conditional. This is in preparation for the next patch, which centralizes the definition in <linux/kernel.h>. Signed-off-by: Alex Elder <[email protected]> Cc: Sage Weil <[email protected]> Cc: David Miller <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a6ce7114ee
commit
77719536dc
3 changed files with 6 additions and 0 deletions
|
|
@ -1958,7 +1958,9 @@ struct treepath var = {.path_length = ILLEGAL_PATH_ELEMENT_OFFSET, .reada = 0,}
|
|||
#define MAX_US_INT 0xffff
|
||||
|
||||
// reiserfs version 2 has max offset 60 bits. Version 1 - 32 bit offset
|
||||
#ifndef U32_MAX
|
||||
#define U32_MAX (~(__u32)0)
|
||||
#endif /* !U32_MAX */
|
||||
|
||||
static inline loff_t max_reiserfs_offset(struct inode *inode)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue