Skip to content

Commit

Permalink
[PATCH] put_compat_shminfo() warning fix
Browse files Browse the repository at this point in the history
GCC 4 complains because the function put_compat_shminfo() can't get to its
return statement if there is no error...  If the function does not return
-EFAULT, it doesn't return anything at all.  Looks like a typo.

Signed-off-by: Jesse Millan <jessem@cs.pdx.edu>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Jesse Millan authored and Linus Torvalds committed Jul 8, 2005
1 parent ff87b37 commit 214a627
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ipc/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ static inline int put_compat_shminfo(struct shminfo64 *smi,
err |= __put_user(smi->shmmni, &up->shmmni);
err |= __put_user(smi->shmseg, &up->shmseg);
err |= __put_user(smi->shmall, &up->shmall);
return err;
}

static inline int put_compat_shm_info(struct shm_info __user *ip,
Expand Down

0 comments on commit 214a627

Please sign in to comment.