[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250610175424.209796-11-Neeraj.Upadhyay@amd.com>
Date: Tue, 10 Jun 2025 23:23:57 +0530
From: Neeraj Upadhyay <Neeraj.Upadhyay@....com>
To: <linux-kernel@...r.kernel.org>
CC: <bp@...en8.de>, <tglx@...utronix.de>, <mingo@...hat.com>,
<dave.hansen@...ux.intel.com>, <Thomas.Lendacky@....com>, <nikunj@....com>,
<Santosh.Shukla@....com>, <Vasant.Hegde@....com>,
<Suravee.Suthikulpanit@....com>, <David.Kaplan@....com>, <x86@...nel.org>,
<hpa@...or.com>, <peterz@...radead.org>, <seanjc@...gle.com>,
<pbonzini@...hat.com>, <kvm@...r.kernel.org>,
<kirill.shutemov@...ux.intel.com>, <huibo.wang@....com>,
<naveen.rao@....com>, <francescolavra.fl@...il.com>, <tiala@...rosoft.com>
Subject: [RFC PATCH v7 10/37] KVM: lapic: Mark apic_find_highest_vector() inline
In preparation for moving apic_find_highest_vector() to
common apic.h header, annotate apic_find_highest_vector() as
inline.
This results (on gcc-13) in slight increase in text size of the
binaries:
Obj-file Old-bytes New-bytes
lapic.o 28455 28563
kvm.o 664638 664746
kvm.ko 701907 702015
Signed-off-by: Neeraj Upadhyay <Neeraj.Upadhyay@....com>
---
Changes since v6:
- New change.
arch/x86/kvm/lapic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c
index 20e2ceb965b7..1f44bbc63f17 100644
--- a/arch/x86/kvm/lapic.c
+++ b/arch/x86/kvm/lapic.c
@@ -616,7 +616,7 @@ static const unsigned int apic_lvt_mask[KVM_APIC_MAX_NR_LVT_ENTRIES] = {
[LVT_CMCI] = LVT_MASK | APIC_MODE_MASK
};
-static int apic_find_highest_vector(void *bitmap)
+static inline int apic_find_highest_vector(void *bitmap)
{
int vec;
u32 *reg;
--
2.34.1
Powered by blists - more mailing lists