From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============0871703598631193675==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [RFC PATCH joro] x86/head/64: startup_gdt[] can be static Date: Sat, 18 Jul 2020 10:07:52 +0800 Message-ID: <20200718020752.GA13077@48b94b458c98> In-Reply-To: <202007181014.Nc7hu4Gg%lkp@intel.com> List-Id: --===============0871703598631193675== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Fixes: c12cc81e6b52 ("x86/head/64: Install startup GDT") Signed-off-by: kernel test robot --- head64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c index 74766728baf32..0f12adcc3bf83 100644 --- a/arch/x86/kernel/head64.c +++ b/arch/x86/kernel/head64.c @@ -64,7 +64,7 @@ EXPORT_SYMBOL(vmemmap_base); /* * GDT used on the boot CPU before switching to virtual addresses. */ -struct desc_struct startup_gdt[GDT_ENTRIES] =3D { +static struct desc_struct startup_gdt[GDT_ENTRIES] =3D { [GDT_ENTRY_KERNEL32_CS] =3D GDT_ENTRY_INIT(0xc09b, 0, 0xfffff), [GDT_ENTRY_KERNEL_CS] =3D GDT_ENTRY_INIT(0xa09b, 0, 0xfffff), [GDT_ENTRY_KERNEL_DS] =3D GDT_ENTRY_INIT(0xc093, 0, 0xfffff), @@ -74,7 +74,7 @@ struct desc_struct startup_gdt[GDT_ENTRIES] =3D { * Address needs to be set at runtime because it references the startup_gd= t while * the kernel still uses a direct mapping. */ -struct desc_ptr startup_gdt_descr =3D { +static struct desc_ptr startup_gdt_descr =3D { .size =3D sizeof(startup_gdt), .address =3D 0, }; --===============0871703598631193675==--