All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/asm: Remove unused COMPILE_OFFSETS macro from asm-offsets.c
@ 2022-11-27  6:23 Vincent Mailhol
  2022-11-28  9:15 ` Kirill A . Shutemov
  0 siblings, 1 reply; 10+ messages in thread
From: Vincent Mailhol @ 2022-11-27  6:23 UTC (permalink / raw)
  To: Sean Christopherson, Paolo Bonzini, Thomas Gleixner, Ingo Molnar,
	Borislav Petkov, Dave Hansen, x86
  Cc: H . Peter Anvin, Kirill A . Shutemov, Josh Poimboeuf,
	Kuppuswamy Sathyanarayanan, Al Viro, linux-kernel,
	Vincent Mailhol

Following [1], the macro COMPILE_OFFSETS becomes unused:
  $ make W=2 arch/x86/kernel/asm-offsets.o
  <...>
  arch/x86/kernel/asm-offsets.c:7: warning: macro "COMPILE_OFFSETS" is not used [-Wunused-macros]
  <...>

Remove COMPILE_OFFSETS macro.

[1] commit debc5a1ec0d1 ("KVM: x86: use a separate asm-offsets.c file")
    Link: https://git.kernel.org/torvalds/linux/c/debc5a1ec0d1

Fixes: debc5a1ec0d1 ("KVM: x86: use a separate asm-offsets.c file")
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
---
 arch/x86/kernel/asm-offsets.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/x86/kernel/asm-offsets.c b/arch/x86/kernel/asm-offsets.c
index 437308004ef2..cf2e02bafbef 100644
--- a/arch/x86/kernel/asm-offsets.c
+++ b/arch/x86/kernel/asm-offsets.c
@@ -4,7 +4,6 @@
  * This code generates raw asm output which is post-processed to extract
  * and format the required data.
  */
-#define COMPILE_OFFSETS
 
 #include <linux/crypto.h>
 #include <linux/sched.h>
-- 
2.37.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-11-29 10:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-27  6:23 [PATCH] x86/asm: Remove unused COMPILE_OFFSETS macro from asm-offsets.c Vincent Mailhol
2022-11-28  9:15 ` Kirill A . Shutemov
2022-11-28 10:11   ` Vincent Mailhol
2022-11-28 11:11     ` kirill.shutemov
2022-11-28 11:30       ` Vincent MAILHOL
2022-11-28 17:45         ` Steven Rostedt
2022-11-28 18:00           ` Paolo Bonzini
2022-11-28 18:06             ` Sean Christopherson
2022-11-28 19:10               ` Steven Rostedt
2022-11-29 10:14                 ` Vincent MAILHOL

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.