mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christian Ludwig <chrissicool@gmail.com>
To: linux-kernel@vger.kernel.org,
	Thomas Gleixner <tglx@linutronix.de>,
	Peter Zijlstra <peterz@infradead.org>,
	Andy Lutomirski <luto@kernel.org>
Subject: [PATCH] entry: KVM: Change override for arch_xfer_to_guest_mode_handle_work()
Date: Wed,  1 Jun 2022 21:32:31 +0000	[thread overview]
Message-ID: <20220601213231.954411-1-chrissicool@gmail.com> (raw)

Change the way arch_xfer_to_guest_mode_handle_work() can be overridden
by architecture code. Use the function name as the preprocessor define.
This is better greppable. And it resembles the way many other overrides
are constructed in the tree.

Note that none of this matters at the moment. There is no architecture
overriding this function. This change is purely cosmetic.

Signed-off-by: Christian Ludwig <chrissicool@gmail.com>
---
 include/linux/entry-kvm.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/include/linux/entry-kvm.h b/include/linux/entry-kvm.h
index 6813171afccb..2d2ba13b3e75 100644
--- a/include/linux/entry-kvm.h
+++ b/include/linux/entry-kvm.h
@@ -31,15 +31,13 @@ struct kvm_vcpu;
  * Invoked from xfer_to_guest_mode_handle_work(). Defaults to NOOP. Can be
  * replaced by architecture specific code.
  */
-static inline int arch_xfer_to_guest_mode_handle_work(struct kvm_vcpu *vcpu,
-						      unsigned long ti_work);
-
-#ifndef arch_xfer_to_guest_mode_work
+#ifndef arch_xfer_to_guest_mode_handle_work
 static inline int arch_xfer_to_guest_mode_handle_work(struct kvm_vcpu *vcpu,
 						      unsigned long ti_work)
 {
 	return 0;
 }
+#define arch_xfer_to_guest_mode_handle_work arch_xfer_to_guest_mode_handle_work
 #endif
 
 /**
-- 
2.35.1


                 reply	other threads:[~2022-06-01 21:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220601213231.954411-1-chrissicool@gmail.com \
    --to=chrissicool@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@kernel.org \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®