public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] init cleanups
@ 2010-08-30 17:27 Namhyung Kim
  2010-08-30 17:27 ` [PATCH v3 1/2] init: add sys-wrapper.h Namhyung Kim
  2010-08-30 17:27 ` [PATCH v3 2/2] init: use kern_sys_* wrappers instead of syscall Namhyung Kim
  0 siblings, 2 replies; 8+ messages in thread
From: Namhyung Kim @ 2010-08-30 17:27 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Arnd Bergmann, Phillip Lougher, Al Viro, linux-kernel

Hello,

This patchset tries to cleanup init/initramfs code especially for syscall
invocation which produces many warnings from sparse because of address
space change. This can be done by wrapping each syscall invocation and
doing such conversions in it using kern_sys_call() macro suggested by
Arnd Bergmann.

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

Any comments would be welcomed.

Thanks.

[1] http://lkml.org/lkml/2010/8/18/157


---

* changes from v2:
  use kern_sys_call() macro only on functions have pointer argument
  config option to use low-level VFS code removed
  apply to all init/*.c not only initramfs code

* changes from v1:
  introduce kern_sys_* wrappers instead of adding __force markups
  config option to use low-level VFS code added


Namhyung Kim (2):
  init: add sys-wrapper.h
  init: use kern_sys_* wrappers instead of syscall

 init/do_mounts.c        |   29 +++---
 init/do_mounts_initrd.c |   48 +++++-----
 init/do_mounts_md.c     |   29 +++---
 init/do_mounts_rd.c     |   37 ++++----
 init/initramfs.c        |   61 +++++++------
 init/main.c             |    9 +-
 init/noinitramfs.c      |   10 +-
 init/sys-wrapper.h      |  230 +++++++++++++++++++++++++++++++++++++++++++++++
 8 files changed, 345 insertions(+), 108 deletions(-)
 create mode 100644 init/sys-wrapper.h

--
1.7.2.2


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-08-31 14:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-30 17:27 [PATCH v3 0/2] init cleanups Namhyung Kim
2010-08-30 17:27 ` [PATCH v3 1/2] init: add sys-wrapper.h Namhyung Kim
2010-08-30 19:03   ` Sam Ravnborg
2010-08-31 14:16     ` Namhyung Kim
2010-08-31 14:30       ` Sam Ravnborg
2010-08-31 14:34         ` Namhyung Kim
2010-08-30 17:27 ` [PATCH v3 2/2] init: use kern_sys_* wrappers instead of syscall Namhyung Kim
2010-08-30 19:10   ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox