History

Merge tag 's390-5.2-5' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux

Pull s390 fixes from Heiko Carstens: - Disable address-of-packed-member warning in s390 specific boot code to get rid of a gcc9 warning which otherwise is already disabled for the whole kernel. - Fix yet another compiler error seen with CONFIG_OPTIMIZE_INLINING enabled. - Fix memory leak in vfio-ccw code on module exit. * tag 's390-5.2-5' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: vfio-ccw: Destroy kmem cache region on module exit s390/ctl_reg: mark __ctl_set_bit and __ctl_clear_bit as __always_inline s390/boot: disable address-of-packed-member warning

Linus Torvalds committed 7 years ago

Commit a409de62 parents d72558b 11aff183 files · +4 −2Browse files

Unified · Split

3 files
  1. arch/s390/Makefile +1 −0
  2. arch/s390/include/asm/ctl_reg.h +2 −2
  3. drivers/s390/cio/vfio_ccw_drv.c +1 −0
arch/s390/Makefile+1−0
@@ -30,6 +30,7 @@ KBUILD_CFLAGS_DECOMPRESSOR += -DDISABLE_BRANCH_PROFILING -D__NO_FORTIFY · 29 unmodified lines
3030 KBUILD_CFLAGS_DECOMPRESSOR += -fno-delete-null-pointer-checks -msoft-float
3131 KBUILD_CFLAGS_DECOMPRESSOR += -fno-asynchronous-unwind-tables
3232 KBUILD_CFLAGS_DECOMPRESSOR += $(call cc-option,-ffreestanding)
33+KBUILD_CFLAGS_DECOMPRESSOR += $(call cc-disable-warning, address-of-packed-member)
3334 KBUILD_CFLAGS_DECOMPRESSOR += $(if $(CONFIG_DEBUG_INFO),-g)
3435 KBUILD_CFLAGS_DECOMPRESSOR += $(if $(CONFIG_DEBUG_INFO_DWARF4), $(call cc-option, -gdwarf-4,))
3536 UTS_MACHINE := s390x
arch/s390/include/asm/ctl_reg.h+2−2
@@ -55,7 +55,7 @@ · 54 unmodified lines
5555 : "i" (low), "i" (high)); \
5656 } while (0)
5757
58−static inline void __ctl_set_bit(unsigned int cr, unsigned int bit)
58+static __always_inline void __ctl_set_bit(unsigned int cr, unsigned int bit)
5959 {
6060 unsigned long reg;
6161
@@ -64,7 +64,7 @@ static inline void __ctl_set_bit(unsigned int cr, unsigned int bit) · 2 unmodified lines
6464 __ctl_load(reg, cr, cr);
6565 }
6666
67−static inline void __ctl_clear_bit(unsigned int cr, unsigned int bit)
67+static __always_inline void __ctl_clear_bit(unsigned int cr, unsigned int bit)
6868 {
6969 unsigned long reg;
7070
drivers/s390/cio/vfio_ccw_drv.c+1−0
@@ -299,6 +299,7 @@ static void __exit vfio_ccw_sch_exit(void) · 298 unmodified lines
299299 css_driver_unregister(&vfio_ccw_sch_driver);
300300 isc_unregister(VFIO_CCW_ISC);
301301 kmem_cache_destroy(vfio_ccw_io_region);
302+ kmem_cache_destroy(vfio_ccw_cmd_region);
302303 destroy_workqueue(vfio_ccw_work_q);
303304 }
304305 module_init(vfio_ccw_sch_init);