* [akpm-mm:mm-unstable 302/323] arch/x86/mm/pgprot.c:26:6: warning: no previous prototype for 'add_encrypt_protection_map'
@ 2022-07-02 8:32 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2022-07-02 8:32 UTC (permalink / raw)
To: Anshuman Khandual
Cc: kbuild-all, linux-kernel, Andrew Morton,
Linux Memory Management List, Christoph Hellwig
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
head: 706370e5c2ea7bb4544eee6e1172c4d68117a526
commit: d845587c05fd4ae52aaa0cd5c8939e8f4793301f [302/323] x86/mm: move protection_map[] inside the platform
config: i386-randconfig-a001 (https://download.01.org/0day-ci/archive/20220702/202207021641.cClg5oDA-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?id=d845587c05fd4ae52aaa0cd5c8939e8f4793301f
git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git
git fetch --no-tags akpm-mm mm-unstable
git checkout d845587c05fd4ae52aaa0cd5c8939e8f4793301f
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/mm/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> arch/x86/mm/pgprot.c:26:6: warning: no previous prototype for 'add_encrypt_protection_map' [-Wmissing-prototypes]
26 | void add_encrypt_protection_map(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/add_encrypt_protection_map +26 arch/x86/mm/pgprot.c
25
> 26 void add_encrypt_protection_map(void)
27 {
28 unsigned int i;
29
30 for (i = 0; i < ARRAY_SIZE(protection_map); i++)
31 protection_map[i] = pgprot_encrypted(protection_map[i]);
32 }
33
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [akpm-mm:mm-unstable 302/323] arch/x86/mm/pgprot.c:26:6: warning: no previous prototype for 'add_encrypt_protection_map'
2022-07-02 8:32 kernel test robot
@ 2022-07-02 20:26 ` Andrew Morton
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Morton @ 2022-07-02 20:26 UTC (permalink / raw)
To: kernel test robot
Cc: Anshuman Khandual, kbuild-all, linux-kernel,
Linux Memory Management List, Christoph Hellwig
On Sat, 2 Jul 2022 16:32:52 +0800 kernel test robot <lkp@intel.com> wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
> head: 706370e5c2ea7bb4544eee6e1172c4d68117a526
> commit: d845587c05fd4ae52aaa0cd5c8939e8f4793301f [302/323] x86/mm: move protection_map[] inside the platform
> config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20220702/202207021647.Jb0wNWF5-lkp@intel.com/config)
> compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
> reproduce (this is a W=1 build):
> # https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?id=d845587c05fd4ae52aaa0cd5c8939e8f4793301f
> git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git
> git fetch --no-tags akpm-mm mm-unstable
> git checkout d845587c05fd4ae52aaa0cd5c8939e8f4793301f
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/mm/
>
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <lkp@intel.com>
>
> All warnings (new ones prefixed by >>):
>
> >> arch/x86/mm/pgprot.c:26:6: warning: no previous prototype for 'add_encrypt_protection_map' [-Wmissing-prototypes]
> 26 | void add_encrypt_protection_map(void)
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> vim +/add_encrypt_protection_map +26 arch/x86/mm/pgprot.c
>
> 25
> > 26 void add_encrypt_protection_map(void)
> 27 {
> 28 unsigned int i;
> 29
> 30 for (i = 0; i < ARRAY_SIZE(protection_map); i++)
> 31 protection_map[i] = pgprot_encrypted(protection_map[i]);
> 32 }
> 33
Something like this?
arch/x86/include/asm/mem_encrypt.h | 2 ++
arch/x86/mm/mem_encrypt_amd.c | 3 +--
arch/x86/mm/pgprot.c | 1 +
3 files changed, 4 insertions(+), 2 deletions(-)
--- a/arch/x86/include/asm/mem_encrypt.h~x86-mm-move-protection_map-inside-the-platform-fix
+++ a/arch/x86/include/asm/mem_encrypt.h
@@ -89,6 +89,8 @@ static inline void mem_encrypt_free_decr
/* Architecture __weak replacement functions */
void __init mem_encrypt_init(void);
+void add_encrypt_protection_map(void);
+
/*
* The __sme_pa() and __sme_pa_nodebug() macros are meant for use when
* writing to or comparing values from the cr3 register. Having the
--- a/arch/x86/mm/mem_encrypt_amd.c~x86-mm-move-protection_map-inside-the-platform-fix
+++ a/arch/x86/mm/mem_encrypt_amd.c
@@ -26,6 +26,7 @@
#include <asm/tlbflush.h>
#include <asm/fixmap.h>
#include <asm/setup.h>
+#include <asm/mem_encrypt.h>
#include <asm/bootparam.h>
#include <asm/set_memory.h>
#include <asm/cacheflush.h>
@@ -484,8 +485,6 @@ void __init early_set_mem_enc_dec_hyperc
enc_dec_hypercall(vaddr, npages, enc);
}
-void add_encrypt_protection_map(void);
-
void __init sme_early_init(void)
{
if (!sme_me_mask)
--- a/arch/x86/mm/pgprot.c~x86-mm-move-protection_map-inside-the-platform-fix
+++ a/arch/x86/mm/pgprot.c
@@ -3,6 +3,7 @@
#include <linux/export.h>
#include <linux/mm.h>
#include <asm/pgtable.h>
+#include <asm/mem_encrypt.h>
static pgprot_t protection_map[16] __ro_after_init = {
[VM_NONE] = PAGE_NONE,
_
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [akpm-mm:mm-unstable 302/323] arch/x86/mm/pgprot.c:26:6: warning: no previous prototype for 'add_encrypt_protection_map'
@ 2022-07-02 20:26 ` Andrew Morton
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Morton @ 2022-07-02 20:26 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3340 bytes --]
On Sat, 2 Jul 2022 16:32:52 +0800 kernel test robot <lkp@intel.com> wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
> head: 706370e5c2ea7bb4544eee6e1172c4d68117a526
> commit: d845587c05fd4ae52aaa0cd5c8939e8f4793301f [302/323] x86/mm: move protection_map[] inside the platform
> config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20220702/202207021647.Jb0wNWF5-lkp(a)intel.com/config)
> compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
> reproduce (this is a W=1 build):
> # https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?id=d845587c05fd4ae52aaa0cd5c8939e8f4793301f
> git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git
> git fetch --no-tags akpm-mm mm-unstable
> git checkout d845587c05fd4ae52aaa0cd5c8939e8f4793301f
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/mm/
>
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <lkp@intel.com>
>
> All warnings (new ones prefixed by >>):
>
> >> arch/x86/mm/pgprot.c:26:6: warning: no previous prototype for 'add_encrypt_protection_map' [-Wmissing-prototypes]
> 26 | void add_encrypt_protection_map(void)
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> vim +/add_encrypt_protection_map +26 arch/x86/mm/pgprot.c
>
> 25
> > 26 void add_encrypt_protection_map(void)
> 27 {
> 28 unsigned int i;
> 29
> 30 for (i = 0; i < ARRAY_SIZE(protection_map); i++)
> 31 protection_map[i] = pgprot_encrypted(protection_map[i]);
> 32 }
> 33
Something like this?
arch/x86/include/asm/mem_encrypt.h | 2 ++
arch/x86/mm/mem_encrypt_amd.c | 3 +--
arch/x86/mm/pgprot.c | 1 +
3 files changed, 4 insertions(+), 2 deletions(-)
--- a/arch/x86/include/asm/mem_encrypt.h~x86-mm-move-protection_map-inside-the-platform-fix
+++ a/arch/x86/include/asm/mem_encrypt.h
@@ -89,6 +89,8 @@ static inline void mem_encrypt_free_decr
/* Architecture __weak replacement functions */
void __init mem_encrypt_init(void);
+void add_encrypt_protection_map(void);
+
/*
* The __sme_pa() and __sme_pa_nodebug() macros are meant for use when
* writing to or comparing values from the cr3 register. Having the
--- a/arch/x86/mm/mem_encrypt_amd.c~x86-mm-move-protection_map-inside-the-platform-fix
+++ a/arch/x86/mm/mem_encrypt_amd.c
@@ -26,6 +26,7 @@
#include <asm/tlbflush.h>
#include <asm/fixmap.h>
#include <asm/setup.h>
+#include <asm/mem_encrypt.h>
#include <asm/bootparam.h>
#include <asm/set_memory.h>
#include <asm/cacheflush.h>
@@ -484,8 +485,6 @@ void __init early_set_mem_enc_dec_hyperc
enc_dec_hypercall(vaddr, npages, enc);
}
-void add_encrypt_protection_map(void);
-
void __init sme_early_init(void)
{
if (!sme_me_mask)
--- a/arch/x86/mm/pgprot.c~x86-mm-move-protection_map-inside-the-platform-fix
+++ a/arch/x86/mm/pgprot.c
@@ -3,6 +3,7 @@
#include <linux/export.h>
#include <linux/mm.h>
#include <asm/pgtable.h>
+#include <asm/mem_encrypt.h>
static pgprot_t protection_map[16] __ro_after_init = {
[VM_NONE] = PAGE_NONE,
_
^ permalink raw reply [flat|nested] 4+ messages in thread
* [akpm-mm:mm-unstable 302/323] arch/x86/mm/pgprot.c:26:6: warning: no previous prototype for 'add_encrypt_protection_map'
@ 2022-07-02 8:32 kernel test robot
2022-07-02 20:26 ` Andrew Morton
0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2022-07-02 8:32 UTC (permalink / raw)
To: Anshuman Khandual
Cc: kbuild-all, linux-kernel, Andrew Morton,
Linux Memory Management List, Christoph Hellwig
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
head: 706370e5c2ea7bb4544eee6e1172c4d68117a526
commit: d845587c05fd4ae52aaa0cd5c8939e8f4793301f [302/323] x86/mm: move protection_map[] inside the platform
config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20220702/202207021647.Jb0wNWF5-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?id=d845587c05fd4ae52aaa0cd5c8939e8f4793301f
git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git
git fetch --no-tags akpm-mm mm-unstable
git checkout d845587c05fd4ae52aaa0cd5c8939e8f4793301f
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/mm/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> arch/x86/mm/pgprot.c:26:6: warning: no previous prototype for 'add_encrypt_protection_map' [-Wmissing-prototypes]
26 | void add_encrypt_protection_map(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/add_encrypt_protection_map +26 arch/x86/mm/pgprot.c
25
> 26 void add_encrypt_protection_map(void)
27 {
28 unsigned int i;
29
30 for (i = 0; i < ARRAY_SIZE(protection_map); i++)
31 protection_map[i] = pgprot_encrypted(protection_map[i]);
32 }
33
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-07-02 20:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-02 8:32 [akpm-mm:mm-unstable 302/323] arch/x86/mm/pgprot.c:26:6: warning: no previous prototype for 'add_encrypt_protection_map' kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2022-07-02 8:32 kernel test robot
2022-07-02 20:26 ` Andrew Morton
2022-07-02 20:26 ` Andrew Morton
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.