Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: s390: Mark __kvm_s390_init() and its descendants as __init

Tag __kvm_s390_init() and its unique helpers as __init. These functions
are only ever called during module_init(), but could not be tagged
accordingly while they were invoked from the common kvm_arch_init(),
which is not __init because of x86.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Message-Id: <20221130230934.1014142-29-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

authored by

Sean Christopherson and committed by
Paolo Bonzini
6c30cd2e b8449265

+6 -6
+1 -1
arch/s390/kvm/interrupt.c
··· 3411 3411 gib = NULL; 3412 3412 } 3413 3413 3414 - int kvm_s390_gib_init(u8 nisc) 3414 + int __init kvm_s390_gib_init(u8 nisc) 3415 3415 { 3416 3416 int rc = 0; 3417 3417
+2 -2
arch/s390/kvm/kvm-s390.c
··· 366 366 #define INSN_SORTL 0xb938 367 367 #define INSN_DFLTCC 0xb939 368 368 369 - static void kvm_s390_cpu_feat_init(void) 369 + static void __init kvm_s390_cpu_feat_init(void) 370 370 { 371 371 int i; 372 372 ··· 469 469 */ 470 470 } 471 471 472 - static int __kvm_s390_init(void) 472 + static int __init __kvm_s390_init(void) 473 473 { 474 474 int rc = -ENOMEM; 475 475
+1 -1
arch/s390/kvm/kvm-s390.h
··· 470 470 void kvm_s390_gisa_destroy(struct kvm *kvm); 471 471 void kvm_s390_gisa_disable(struct kvm *kvm); 472 472 void kvm_s390_gisa_enable(struct kvm *kvm); 473 - int kvm_s390_gib_init(u8 nisc); 473 + int __init kvm_s390_gib_init(u8 nisc); 474 474 void kvm_s390_gib_destroy(void); 475 475 476 476 /* implemented in guestdbg.c */
+1 -1
arch/s390/kvm/pci.c
··· 672 672 return r; 673 673 } 674 674 675 - int kvm_s390_pci_init(void) 675 + int __init kvm_s390_pci_init(void) 676 676 { 677 677 zpci_kvm_hook.kvm_register = kvm_s390_pci_register_kvm; 678 678 zpci_kvm_hook.kvm_unregister = kvm_s390_pci_unregister_kvm;
+1 -1
arch/s390/kvm/pci.h
··· 60 60 61 61 int kvm_s390_pci_zpci_op(struct kvm *kvm, struct kvm_s390_zpci_op *args); 62 62 63 - int kvm_s390_pci_init(void); 63 + int __init kvm_s390_pci_init(void); 64 64 void kvm_s390_pci_exit(void); 65 65 66 66 static inline bool kvm_s390_pci_interp_allowed(void)