Guest User

Untitled

a guest
Apr 11th, 2019
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.99 KB | None | 0 0
  1. diff --git a/arch/s390/include/asm/bitops.h b/arch/s390/include/asm/bitops.h
  2. index d1f8a4d94cca..9900d655014c 100644
  3. --- a/arch/s390/include/asm/bitops.h
  4. +++ b/arch/s390/include/asm/bitops.h
  5. @@ -73,7 +73,7 @@ static inline void set_bit(unsigned long nr, volatile unsigned long *ptr)
  6.     }
  7.  #endif
  8.     mask = 1UL << (nr & (BITS_PER_LONG - 1));
  9. -   __atomic64_or(mask, addr);
  10. +   __atomic64_or(mask, (long *)addr);
  11.  }
  12.  
  13.  static inline void clear_bit(unsigned long nr, volatile unsigned long *ptr)
  14. @@ -94,7 +94,7 @@ static inline void clear_bit(unsigned long nr, volatile unsigned long *ptr)
  15.     }
  16.  #endif
  17.     mask = ~(1UL << (nr & (BITS_PER_LONG - 1)));
  18. -   __atomic64_and(mask, addr);
  19. +   __atomic64_and(mask, (long *)addr);
  20.  }
  21.  
  22.  static inline void change_bit(unsigned long nr, volatile unsigned long *ptr)
  23. @@ -115,7 +115,7 @@ static inline void change_bit(unsigned long nr, volatile unsigned long *ptr)
  24.     }
  25.  #endif
  26.     mask = 1UL << (nr & (BITS_PER_LONG - 1));
  27. -   __atomic64_xor(mask, addr);
  28. +   __atomic64_xor(mask, (long *)addr);
  29.  }
  30.  
  31.  static inline int
  32. @@ -125,7 +125,7 @@ test_and_set_bit(unsigned long nr, volatile unsigned long *ptr)
  33.     unsigned long old, mask;
  34.  
  35.     mask = 1UL << (nr & (BITS_PER_LONG - 1));
  36. -   old = __atomic64_or_barrier(mask, addr);
  37. +   old = __atomic64_or_barrier(mask, (long *)addr);
  38.     return (old & mask) != 0;
  39.  }
  40.  
  41. @@ -136,7 +136,7 @@ test_and_clear_bit(unsigned long nr, volatile unsigned long *ptr)
  42.     unsigned long old, mask;
  43.  
  44.     mask = ~(1UL << (nr & (BITS_PER_LONG - 1)));
  45. -   old = __atomic64_and_barrier(mask, addr);
  46. +   old = __atomic64_and_barrier(mask, (long *)addr);
  47.     return (old & ~mask) != 0;
  48.  }
  49.  
  50. @@ -147,7 +147,7 @@ test_and_change_bit(unsigned long nr, volatile unsigned long *ptr)
  51.     unsigned long old, mask;
  52.  
  53.     mask = 1UL << (nr & (BITS_PER_LONG - 1));
  54. -   old = __atomic64_xor_barrier(mask, addr);
  55. +   old = __atomic64_xor_barrier(mask, (long *)addr);
  56.     return (old & mask) != 0;
  57.  }
  58.  
  59. diff --git a/arch/s390/include/asm/ebcdic.h b/arch/s390/include/asm/ebcdic.h
  60. index 29441beb92e6..d3ce6adacb10 100644
  61. --- a/arch/s390/include/asm/ebcdic.h
  62. +++ b/arch/s390/include/asm/ebcdic.h
  63. @@ -20,7 +20,7 @@ extern __u8 _ebc_tolower[256]; /* EBCDIC -> lowercase */
  64.  extern __u8 _ebc_toupper[256]; /* EBCDIC -> uppercase */
  65.  
  66.  static inline void
  67. -codepage_convert(const __u8 *codepage, volatile __u8 * addr, unsigned long nr)
  68. +codepage_convert(const __u8 *codepage, volatile char* addr, unsigned long nr)
  69.  {
  70.     if (nr-- <= 0)
  71.         return;
  72. diff --git a/arch/s390/include/asm/ipl.h b/arch/s390/include/asm/ipl.h
  73. index a8389e2d2f03..32de5ed1a29b 100644
  74. --- a/arch/s390/include/asm/ipl.h
  75. +++ b/arch/s390/include/asm/ipl.h
  76. @@ -52,7 +52,7 @@ struct ipl_block_fcp {
  77.     u64 br_lba;
  78.     u32 scp_data_len;
  79.     u8  reserved6[260];
  80. -   u8  scp_data[];
  81. +   char scp_data[];
  82.  } __attribute__((packed));
  83.  
  84.  #define DIAG308_VMPARM_SIZE    64
  85. diff --git a/arch/s390/include/asm/lowcore.h b/arch/s390/include/asm/lowcore.h
  86. index cc0947e08b6f..f3a637afd485 100644
  87. --- a/arch/s390/include/asm/lowcore.h
  88. +++ b/arch/s390/include/asm/lowcore.h
  89. @@ -128,7 +128,7 @@ struct lowcore {
  90.     /* SMP info area */
  91.     __u32   cpu_nr;             /* 0x0398 */
  92.     __u32   softirq_pending;        /* 0x039c */
  93. -   __u32   preempt_count;          /* 0x03a0 */
  94. +   __s32   preempt_count;          /* 0x03a0 */
  95.     __u32   spinlock_lockval;       /* 0x03a4 */
  96.     __u32   spinlock_index;         /* 0x03a8 */
  97.     __u32   fpu_flags;          /* 0x03ac */
  98. diff --git a/drivers/s390/char/sclp.h b/drivers/s390/char/sclp.h
  99. index 367e9d384d85..5918479ffa0e 100644
  100. --- a/drivers/s390/char/sclp.h
  101. +++ b/drivers/s390/char/sclp.h
  102. @@ -365,14 +365,14 @@ sclp_ascebc(unsigned char ch)
  103.  
  104.  /* translate string from EBCDIC to ASCII */
  105.  static inline void
  106. -sclp_ebcasc_str(unsigned char *str, int nr)
  107. +sclp_ebcasc_str(char *str, int nr)
  108.  {
  109.     (MACHINE_IS_VM) ? EBCASC(str, nr) : EBCASC_500(str, nr);
  110.  }
  111.  
  112.  /* translate string from ASCII to EBCDIC */
  113.  static inline void
  114. -sclp_ascebc_str(unsigned char *str, int nr)
  115. +sclp_ascebc_str(char *str, int nr)
  116.  {
  117.     (MACHINE_IS_VM) ? ASCEBC(str, nr) : ASCEBC_500(str, nr);
  118.  }
Advertisement
Add Comment
Please, Sign In to add comment