[lkml]   [2010]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Subject[RFC v2 PATCH 0/3] initramfs: cleanups

    This patchset tries to cleanup init/initramfs code especially for syscall
    invocation which produces many warnings from sparse because of address
    space change. One possible solution would be eliminating such calls at all
    and use internal kernel functions directly. But Al Viro mentions there's
    a historical(?) reason not to do so. [1]

    First two of this patchset wrap all of syscall invocations with kern_sys_*()
    helper functions which does nasty address space conversions for you. This
    idea was suggested by Arnd Bergmann. Last one tries to implement above idea
    - calling internel functions directly - in favour of kernel config option
    even though I'm not sure this is right thing. :-(

    This patchset depends on my previous patch "init: mark __user address space
    on string literals" [2] now contained in -mm tree.

    Any comments would be welcomed.




    Namhyung Kim (3):
    init: add sys-wrapper.h
    initramfs: use kern_sys_* macros instead of syscall

    init/Makefile | 2 +
    init/sys-wrapper.c | 589 ++++++++++++++++++++++++++++++++++++++++++++++++++++
    init/sys-wrapper.h | 305 +++++++++++++++++++++++++++
    usr/Kconfig | 7 +
    4 files changed, 903 insertions(+), 0 deletions(-)
    create mode 100644 init/sys-wrapper.c
    create mode 100644 init/sys-wrapper.h


     \ /
      Last update: 2010-08-29 19:31    [W:0.026 / U:11.956 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site