[lkml]   [2009]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[patch] ipc: unbreak 32-bit shmctl/semctl/msgctl
    31a985f "ipc: use __ARCH_WANT_IPC_PARSE_VERSION in ipc/util.h" would
    choose the implementation of ipc_parse_version() based on a symbol
    defined in <asm/unistd.h>.

    But it failed to also include this header and thus broke
    IPC_64-passing 32-bit userspace because the flag wasn't masked out
    properly anymore and the command not understood.

    Include <linux/unistd.h> to give the architecture a chance to ask for
    the no-no-op ipc_parse_version().

    Signed-off-by: Johannes Weiner <>
    ipc/util.h | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

    diff --git a/ipc/util.h b/ipc/util.h
    index ab3ebf2..764b51a 100644
    --- a/ipc/util.h
    +++ b/ipc/util.h
    @@ -10,6 +10,7 @@
    #ifndef _IPC_UTIL_H
    #define _IPC_UTIL_H

    +#include <linux/unistd.h>
    #include <linux/err.h>


     \ /
      Last update: 2009-06-20 03:17    [W:0.018 / U:37.096 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site