Commit f15ba52
KVM: Standardize on "int" return types instead of "long" in kvm_main.c
KVM functions use "long" return values for functions that are wired up
to "struct file_operations", but otherwise use "int" return values for
functions that can return 0/-errno in order to avoid unintentional
divergences between 32-bit and 64-bit kernels.
Some code still uses "long" in unnecessary spots, though, which can
cause a little bit of confusion and unnecessary size casts. Let's
change these spots to use "int" types, too.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230208140105.655814-6-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent 2def950 commit f15ba52
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4467 | 4467 | | |
4468 | 4468 | | |
4469 | 4469 | | |
4470 | | - | |
| 4470 | + | |
4471 | 4471 | | |
4472 | 4472 | | |
4473 | 4473 | | |
| |||
5045 | 5045 | | |
5046 | 5046 | | |
5047 | 5047 | | |
5048 | | - | |
| 5048 | + | |
5049 | 5049 | | |
5050 | 5050 | | |
5051 | 5051 | | |
| |||
0 commit comments