diff options
author | Sean Christopherson <seanjc@google.com> | 2022-12-01 02:09:12 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-12-29 23:41:22 +0300 |
commit | 6c30cd2ef43d15f9799d8a77dca2f075e9d717e6 (patch) | |
tree | 6441c67c3f1388a917f975fca786e6c28c8240b1 /arch/s390/kvm/pci.c | |
parent | b8449265915ddf834b15a8c7ace2fe7f361eac93 (diff) | |
download | linux-6c30cd2ef43d15f9799d8a77dca2f075e9d717e6.tar.xz |
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>
Diffstat (limited to 'arch/s390/kvm/pci.c')
-rw-r--r-- | arch/s390/kvm/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kvm/pci.c b/arch/s390/kvm/pci.c index ec51e810e381..b124d586db55 100644 --- a/arch/s390/kvm/pci.c +++ b/arch/s390/kvm/pci.c @@ -672,7 +672,7 @@ out: return r; } -int kvm_s390_pci_init(void) +int __init kvm_s390_pci_init(void) { zpci_kvm_hook.kvm_register = kvm_s390_pci_register_kvm; zpci_kvm_hook.kvm_unregister = kvm_s390_pci_unregister_kvm; |