linux-um archives
 help / color / mirror / Atom feed
From: "Tiwei Bie" <tiwei.btw@antgroup.com>
To: richard@nod.at, anton.ivanov@cambridgegreys.com,
	johannes@sipsolutions.net
Cc: <jani.nikula@intel.com>, <linux-um@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>, <intel-xe@lists.freedesktop.org>,
	"Tiwei Bie" <tiwei.btw@antgroup.com>
Subject: [PATCH v3 8/9] um: Fix -Wmissing-prototypes warnings for text_poke*
Date: Wed, 06 Mar 2024 18:19:24 +0800	[thread overview]
Message-ID: <20240306101925.1088870-9-tiwei.btw@antgroup.com> (raw)
In-Reply-To: <20240306101925.1088870-1-tiwei.btw@antgroup.com>

The prototypes for text_poke* are declared in asm/text-patching.h
under arch/x86/include/. It's safe to include this header, as it's
UML-aware (by checking CONFIG_UML_X86).

This will address below -Wmissing-prototypes warnings:

arch/um/kernel/um_arch.c:461:7: warning: no previous prototype for ‘text_poke’ [-Wmissing-prototypes]
arch/um/kernel/um_arch.c:473:6: warning: no previous prototype for ‘text_poke_sync’ [-Wmissing-prototypes]

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
---
 arch/um/kernel/um_arch.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c
index 7a9820797eae..e95f805e5004 100644
--- a/arch/um/kernel/um_arch.c
+++ b/arch/um/kernel/um_arch.c
@@ -23,6 +23,7 @@
 #include <asm/cpufeature.h>
 #include <asm/sections.h>
 #include <asm/setup.h>
+#include <asm/text-patching.h>
 #include <as-layout.h>
 #include <arch.h>
 #include <init.h>
-- 
2.34.1



  parent reply	other threads:[~2024-03-06 10:20 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-06 10:19 [PATCH v3 0/9] um: Minor fixes and cleanups Tiwei Bie
2024-03-06 10:19 ` [PATCH v3 1/9] um: Make local functions and variables static Tiwei Bie
2024-03-06 10:19 ` [PATCH v3 2/9] um: Fix the declaration of vfree Tiwei Bie
2024-03-06 10:19 ` [PATCH v3 3/9] um: Remove unused functions Tiwei Bie
2024-03-06 10:19 ` [PATCH v3 4/9] um: Fix the return type of __switch_to Tiwei Bie
2024-03-06 10:19 ` [PATCH v3 5/9] um: Add missing headers Tiwei Bie
2024-03-06 10:19 ` [PATCH v3 6/9] um: Stop tracking host PID in cpu_tasks Tiwei Bie
2024-03-06 10:19 ` [PATCH v3 7/9] um: Move declarations to proper headers Tiwei Bie
2024-03-06 10:19 ` Tiwei Bie [this message]
2024-03-26 14:13   ` [PATCH v3 8/9] um: Fix -Wmissing-prototypes warnings for text_poke* Lucas De Marchi
2024-03-26 15:05     ` Tiwei Bie
2024-03-06 10:19 ` [PATCH v3 9/9] um: Fix -Wmissing-prototypes warnings for __warp_* and foo Tiwei Bie
2024-03-26 12:27 ` [PATCH v3 0/9] um: Minor fixes and cleanups Tiwei Bie
2024-03-26 14:16   ` Lucas De Marchi
2024-03-26 15:07     ` Tiwei Bie
2024-03-28  8:46 ` Johannes Berg

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=20240306101925.1088870-9-tiwei.btw@antgroup.com \
    --to=tiwei.btw@antgroup.com \
    --cc=anton.ivanov@cambridgegreys.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-um@lists.infradead.org \
    --cc=richard@nod.at \
    /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