Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54255
b: refs/heads/master
c: 180e53a
h: refs/heads/master
i:
  54253: 0bbb1de
  54251: ed0adcf
  54247: d0accf2
  54239: e3528d2
v: v3
  • Loading branch information
Milind Arun Choudhary authored and Linus Torvalds committed May 7, 2007
1 parent 10b81cd commit 2434e6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 97a572b3b877173e284c687be34d8ae81b826160
refs/heads/master: 180e53a71f78e72a244deb65140928d4f3d72385
4 changes: 1 addition & 3 deletions trunk/arch/alpha/kernel/osf_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ osf_set_program_attributes(unsigned long text_start, unsigned long text_len,
* offset differences aren't the same as "d_reclen").
*/
#define NAME_OFFSET offsetof (struct osf_dirent, d_name)
#define ROUND_UP(x) (((x)+3) & ~3)

struct osf_dirent {
unsigned int d_ino;
Expand All @@ -115,7 +114,7 @@ osf_filldir(void *__buf, const char *name, int namlen, loff_t offset,
{
struct osf_dirent __user *dirent;
struct osf_dirent_callback *buf = (struct osf_dirent_callback *) __buf;
unsigned int reclen = ROUND_UP(NAME_OFFSET + namlen + 1);
unsigned int reclen = ALIGN(NAME_OFFSET + namlen + 1, sizeof(u32));
unsigned int d_ino;

buf->error = -EINVAL; /* only used if we fail */
Expand Down Expand Up @@ -174,7 +173,6 @@ osf_getdirentries(unsigned int fd, struct osf_dirent __user *dirent,
return error;
}

#undef ROUND_UP
#undef NAME_OFFSET

asmlinkage unsigned long
Expand Down

0 comments on commit 2434e6a

Please sign in to comment.