kernel-hacking-2024-linux-s.../arch/s390
Geert Uytterhoeven cbe05685c1 s390: Always use "long" for ssize_t to match size_t
On s390x-linux-gcc, __SIZE_TYPE__ expands to "long unsigned int" for both
32-bit s390 and 64-bit s390x, as
gcc-4.6.3-nolibc/s390x-linux/lib/gcc/s390x-linux/4.6.3/plugin/include/config/s390/linux.h
has

    #define SIZE_TYPE (TARGET_64BIT ? "long unsigned int" : "long unsigned int")

To match this, __kernel_size_t is always set to "long unsigned int".

But while __kernel_ssize_t is "long" on 64-bit s390x, it is "int" on 32-bit
s390, causing compiler warnings like:

    fs/quota/quota_tree.c:372:4: warning: format '%zd' expects argument of type 'signed size_t', but argument 4 has type 'ssize_t' [-Wformat]

To fix this, __kernel_ssize_t should be "long", irrespective of word size.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2012-08-21 15:23:04 +02:00
..
appldata s390/vtimer: rework virtual timer interface 2012-07-20 11:15:08 +02:00
boot s390: add various .gitignore files. 2012-05-16 14:42:41 +02:00
crypto Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2012-07-26 13:00:59 -07:00
hypfs s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
include/asm s390: Always use "long" for ssize_t to match size_t 2012-08-21 15:23:04 +02:00
kernel s390/compat: fix mmap compat system calls 2012-08-08 07:32:57 -07:00
kvm KVM updates for the 3.6 merge window 2012-07-24 12:01:20 -07:00
lib s390/vtimer: rework virtual timer interface 2012-07-20 11:15:08 +02:00
math-emu s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
mm s390: make use of user_mode() macro where possible 2012-07-30 11:03:12 +02:00
oprofile s390: make use of user_mode() macro where possible 2012-07-30 11:03:12 +02:00
defconfig Merge branch 'akpm' (Andrew's patch-bomb) 2012-07-31 19:25:39 -07:00
Kbuild [S390] make arch/s390 subdirectories depend on config option 2011-12-27 11:27:12 +01:00
Kconfig s390/seccomp: add support for system call filtering using BPF 2012-08-08 07:32:56 -07:00
Kconfig.debug
Makefile s390: Use generic init_task 2012-05-05 13:00:25 +02:00