The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: “ChengZhenghan” <chengzhenghan@uniontech.com>
To: Herbert Xu <herbert@gondor.apana.org.au>,
	"David S . Miller" <davem@davemloft.net>,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	x86@kernel.org, linux-crypto@vger.kernel.org,
	linux-kernel@vger.kernel.org
Cc: "H . Peter Anvin" <hpa@zytor.com>,
	ChengZhenghan <chengzhenghan@uniontech.com>
Subject: [PATCH] x86_coco_sev: Fix build warnings about export.h
Date: Wed, 11 Jun 2025 10:49:51 +0800	[thread overview]
Message-ID: <20250611024951.21791-1-chengzhenghan@uniontech.com> (raw)

From: ChengZhenghan <chengzhenghan@uniontech.com>

I got a build warning with W=1:
arch/x86/coco/sev/core.c:
warning: EXPORT_SYMBOL() is used,
but #include <linux/export.h> is missing
so I fixed the build warning for x86_64.

Signed-off-by: ChengZhenghan <chengzhenghan@uniontech.com>
---
 arch/x86/coco/sev/core.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/coco/sev/core.c b/arch/x86/coco/sev/core.c
index b6db4e0b936b..4b5d41bdd58d 100644
--- a/arch/x86/coco/sev/core.c
+++ b/arch/x86/coco/sev/core.c
@@ -20,6 +20,7 @@
 #include <linux/mm.h>
 #include <linux/cpumask.h>
 #include <linux/efi.h>
+#include <linux/export.h>
 #include <linux/platform_device.h>
 #include <linux/io.h>
 #include <linux/psp-sev.h>
-- 
2.47.2



             reply	other threads:[~2025-06-11  2:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-11  2:49 “ChengZhenghan” [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-06-11  1:52 [PATCH] x86_coco_sev: Fix build warnings about export.h “ChengZhenghan”

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=20250611024951.21791-1-chengzhenghan@uniontech.com \
    --to=chengzhenghan@uniontech.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=hpa@zytor.com \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /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