All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-misc:set_fs-removal 85/85] arch/x86/include/asm/processor.h:882:23: error: initializer element is not constant
@ 2020-06-09 21:00 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-06-09 21:00 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6041 bytes --]

tree:   git://git.infradead.org/users/hch/misc.git set_fs-removal
head:   153bec971d1618bc5abb582c90a6de920fe00e59
commit: 153bec971d1618bc5abb582c90a6de920fe00e59 [85/85] x86: remove address space overrides using set_fs()
config: x86_64-randconfig-r036-20200609 (attached as .config)
compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
reproduce (this is a W=1 build):
        git checkout 153bec971d1618bc5abb582c90a6de920fe00e59
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>, old ones prefixed by <<):

In file included from arch/x86/include/asm/cpufeature.h:5:0,
from arch/x86/include/asm/thread_info.h:53,
from include/linux/thread_info.h:38,
from arch/x86/include/asm/preempt.h:7,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:6,
from arch/x86/mm/init.c:1:
>> arch/x86/include/asm/processor.h:882:23: error: initializer element is not constant
#define TASK_SIZE_MAX ((1UL << __VIRTUAL_MASK_SHIFT) - PAGE_SIZE)
^
>> arch/x86/mm/init.c:38:37: note: in expansion of macro 'TASK_SIZE_MAX'
const unsigned long task_size_max = TASK_SIZE_MAX;
^
arch/x86/mm/init.c:83:6: warning: no previous prototype for 'x86_has_pat_wp' [-Wmissing-prototypes]
bool x86_has_pat_wp(void)
^
arch/x86/mm/init.c:88:22: warning: no previous prototype for 'pgprot2cachemode' [-Wmissing-prototypes]
enum page_cache_mode pgprot2cachemode(pgprot_t pgprot)
^
--
drivers/staging/media/atomisp/pci/atomisp_compat_ioctl32.c: In function 'atomisp_do_compat_ioctl':
>> drivers/staging/media/atomisp/pci/atomisp_compat_ioctl32.c:1009:11: error: implicit declaration of function 'get_fs' [-Werror=implicit-function-declaration]
old_fs = get_fs();
^
>> drivers/staging/media/atomisp/pci/atomisp_compat_ioctl32.c:1009:9: error: incompatible types when assigning to type 'mm_segment_t {aka struct <anonymous>}' from type 'int'
old_fs = get_fs();
^
>> drivers/staging/media/atomisp/pci/atomisp_compat_ioctl32.c:1010:2: error: implicit declaration of function 'set_fs' [-Werror=implicit-function-declaration]
set_fs(KERNEL_DS);
^
>> drivers/staging/media/atomisp/pci/atomisp_compat_ioctl32.c:1010:9: error: 'KERNEL_DS' undeclared (first use in this function)
set_fs(KERNEL_DS);
^
drivers/staging/media/atomisp/pci/atomisp_compat_ioctl32.c:1010:9: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors

vim +882 arch/x86/include/asm/processor.h

2f66dcc933f012 include/asm-x86/processor.h      Glauber de Oliveira Costa 2008-01-30  862  
2f66dcc933f012 include/asm-x86/processor.h      Glauber de Oliveira Costa 2008-01-30  863  #else
2f66dcc933f012 include/asm-x86/processor.h      Glauber de Oliveira Costa 2008-01-30  864  /*
f55f0501cbf65e arch/x86/include/asm/processor.h Andy Lutomirski           2017-12-12  865   * User space process size.  This is the first address outside the user range.
f55f0501cbf65e arch/x86/include/asm/processor.h Andy Lutomirski           2017-12-12  866   * There are a few constraints that determine this:
f55f0501cbf65e arch/x86/include/asm/processor.h Andy Lutomirski           2017-12-12  867   *
f55f0501cbf65e arch/x86/include/asm/processor.h Andy Lutomirski           2017-12-12  868   * On Intel CPUs, if a SYSCALL instruction is at the highest canonical
f55f0501cbf65e arch/x86/include/asm/processor.h Andy Lutomirski           2017-12-12  869   * address, then that syscall will enter the kernel with a
f55f0501cbf65e arch/x86/include/asm/processor.h Andy Lutomirski           2017-12-12  870   * non-canonical return address, and SYSRET will explode dangerously.
f55f0501cbf65e arch/x86/include/asm/processor.h Andy Lutomirski           2017-12-12  871   * We avoid this particular problem by preventing anything executable
f55f0501cbf65e arch/x86/include/asm/processor.h Andy Lutomirski           2017-12-12  872   * from being mapped at the maximum canonical address.
f55f0501cbf65e arch/x86/include/asm/processor.h Andy Lutomirski           2017-12-12  873   *
f55f0501cbf65e arch/x86/include/asm/processor.h Andy Lutomirski           2017-12-12  874   * On AMD CPUs in the Ryzen family, there's a nasty bug in which the
f55f0501cbf65e arch/x86/include/asm/processor.h Andy Lutomirski           2017-12-12  875   * CPUs malfunction if they execute code from the highest canonical page.
f55f0501cbf65e arch/x86/include/asm/processor.h Andy Lutomirski           2017-12-12  876   * They'll speculate right off the end of the canonical space, and
f55f0501cbf65e arch/x86/include/asm/processor.h Andy Lutomirski           2017-12-12  877   * bad things happen.  This is worked around in the same way as the
f55f0501cbf65e arch/x86/include/asm/processor.h Andy Lutomirski           2017-12-12  878   * Intel problem.
f55f0501cbf65e arch/x86/include/asm/processor.h Andy Lutomirski           2017-12-12  879   *
f55f0501cbf65e arch/x86/include/asm/processor.h Andy Lutomirski           2017-12-12  880   * With page table isolation enabled, we map the LDT in ... [stay tuned]
2f66dcc933f012 include/asm-x86/processor.h      Glauber de Oliveira Costa 2008-01-30  881   */
ee00f4a32a76ef arch/x86/include/asm/processor.h Kirill A. Shutemov        2017-07-17 @882  #define TASK_SIZE_MAX	((1UL << __VIRTUAL_MASK_SHIFT) - PAGE_SIZE)
2f66dcc933f012 include/asm-x86/processor.h      Glauber de Oliveira Costa 2008-01-30  883  

:::::: The code@line 882 was first introduced by commit
:::::: ee00f4a32a76ef631394f31d5b6028d50462b357 x86/mm: Allow userspace have mappings above 47-bit

:::::: TO: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
:::::: CC: Ingo Molnar <mingo@kernel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 38653 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-09 21:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-09 21:00 [hch-misc:set_fs-removal 85/85] arch/x86/include/asm/processor.h:882:23: error: initializer element is not constant kernel test robot

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.