linux/arch/s390/hypfs
Chen Gang e38f978133 s390/timex: fix get_tod_clock_ext() inline assembly
For C language, it treats array parameter as a pointer, so sizeof for an
array parameter is equal to sizeof for a pointer, which causes compiler
warning (with allmodconfig by gcc 5):

  ./arch/s390/include/asm/timex.h: In function 'get_tod_clock_ext':
  ./arch/s390/include/asm/timex.h:76:32: warning: 'sizeof' on array function parameter 'clk' will return size of 'char *' [-Wsizeof-array-argument]
    typedef struct { char _[sizeof(clk)]; } addrtype;
                                  ^
Can use macro CLOCK_STORE_SIZE instead of all related hard code numbers,
which also can avoid this warning. And also add a tab to CLOCK_TICK_RATE
definition to match coding styles.

[heiko.carstens@de.ibm.com]:
Chen's patch actually fixes a bug within the get_tod_clock_ext() inline assembly
where we incorrectly tell the compiler that only 8 bytes of memory get changed
instead of 16 bytes.
This would allow gcc to generate incorrect code. Right now this doesn't seem to
be the case.
Also slightly changed the patch a bit.
- renamed CLOCK_STORE_SIZE to STORE_CLOCK_EXT_SIZE
- changed get_tod_clock_ext() to receive a char pointer parameter

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2015-01-07 09:52:47 +01:00
..
Makefile s390/hypfs: add interface for diagnose 0x304 2014-01-24 09:40:59 +01:00
hypfs.h s390/hypfs: add interface for diagnose 0x304 2014-01-24 09:40:59 +01:00
hypfs_dbfs.c assorted conversions to %p[dD] 2014-11-19 13:01:20 -05:00
hypfs_diag.c don't pass superblock to hypfs_{mkdir,create*} 2013-09-03 22:52:49 -04:00
hypfs_sprp.c s390/hypfs: add interface for diagnose 0x304 2014-01-24 09:40:59 +01:00
hypfs_vm.c s390/timex: fix get_tod_clock_ext() inline assembly 2015-01-07 09:52:47 +01:00
inode.c s390/hypfs: add interface for diagnose 0x304 2014-01-24 09:40:59 +01:00