summaryrefslogtreecommitdiffstats
path: root/arch/ia64
diff options
context:
space:
mode:
authorSouptick Joarder (HPE) <jrdr.linux@gmail.com>2022-06-26 07:51:14 +0530
committerakpm <akpm@linux-foundation.org>2022-07-17 17:31:43 -0700
commit1298f83b546921506afa4050a833f21433ed4b88 (patch)
tree29a474146b3538e51758586363f996a5bfd98e17 /arch/ia64
parent3adb2d87238dea5e05bab747238bb47306b9cb56 (diff)
downloadlinux-stable-1298f83b546921506afa4050a833f21433ed4b88.tar.gz
linux-stable-1298f83b546921506afa4050a833f21433ed4b88.tar.bz2
linux-stable-1298f83b546921506afa4050a833f21433ed4b88.zip
ia64: old_rr4 added under CONFIG_HUGETLB_PAGE
kernel test robot throws below warning -> arch/ia64/include/asm/mmu_context.h: In function 'reload_context': arch/ia64/include/asm/mmu_context.h:127:48: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable] 127 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4; Add it under CONFIG_HUGETLB_PAGE Link: https://lkml.kernel.org/r/20220626022114.4020-1-jrdr.linux@gmail.com Signed-off-by: Souptick Joarder (HPE) <jrdr.linux@gmail.com> Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/ia64')
-rw-r--r--arch/ia64/include/asm/mmu_context.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/ia64/include/asm/mmu_context.h b/arch/ia64/include/asm/mmu_context.h
index 87a0d5bc11ef..06257e355d00 100644
--- a/arch/ia64/include/asm/mmu_context.h
+++ b/arch/ia64/include/asm/mmu_context.h
@@ -124,9 +124,12 @@ reload_context (nv_mm_context_t context)
{
unsigned long rid;
unsigned long rid_incr = 0;
- unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
+ unsigned long rr0, rr1, rr2, rr3, rr4;
+#ifdef CONFIG_HUGETLB_PAGE
+ unsigned long old_rr4;
old_rr4 = ia64_get_rr(RGN_BASE(RGN_HPAGE));
+#endif
rid = context << 3; /* make space for encoding the region number */
rid_incr = 1 << 8;