All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [xlnx:xlnx_rebase_v5.10 973/1745] include/linux/cpumask.h:94:42: error: enumerator value for 'FIX_KMAP_END' is not an integer constant
Date: Thu, 03 Jun 2021 19:42:32 +0800	[thread overview]
Message-ID: <202106031918.PCnp45YB-lkp@intel.com> (raw)

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

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.10
head:   cd1a972ed275ace731d851a8c88f575456262e75
commit: c2b2be1685f136a152d96ea9d74fd449532a2fd4 [973/1745] microblaze: Enable experimental SMP functionality
config: microblaze-allmodconfig (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/Xilinx/linux-xlnx/commit/c2b2be1685f136a152d96ea9d74fd449532a2fd4
        git remote add xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xlnx xlnx_rebase_v5.10
        git checkout c2b2be1685f136a152d96ea9d74fd449532a2fd4
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze 

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

All errors (new ones prefixed by >>):

   In file included from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/mutex.h:17,
                    from include/linux/kernfs.h:12,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/pci.h:35,
                    from drivers/scsi/esas2r/esas2r.h:46,
                    from drivers/scsi/esas2r/esas2r_log.c:44:
>> include/linux/cpumask.h:94:42: error: enumerator value for 'FIX_KMAP_END' is not an integer constant
      94 | #define cpu_possible_mask ((const struct cpumask *)&__cpu_possible_mask)
         |                                          ^~~~~~~
   include/linux/cpumask.h:114:44: note: in expansion of macro 'cpu_possible_mask'
     114 | #define num_possible_cpus() cpumask_weight(cpu_possible_mask)
         |                                            ^~~~~~~~~~~~~~~~~
   arch/microblaze/include/asm/fixmap.h:50:48: note: in expansion of macro 'num_possible_cpus'
      50 |  FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * num_possible_cpus()) - 1,
         |                                                ^~~~~~~~~~~~~~~~~
   drivers/scsi/esas2r/esas2r_log.c: In function 'esas2r_log_master':
   drivers/scsi/esas2r/esas2r_log.c:155:3: warning: function 'esas2r_log_master' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
     155 |   retval = vsnprintf(buffer, buflen, format, args);
         |   ^~~~~~
--
   In file included from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/mutex.h:17,
                    from include/linux/kernfs.h:12,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/pci.h:35,
                    from drivers/scsi/esas2r/esas2r.h:46,
                    from drivers/scsi/esas2r/esas2r_disc.c:45:
>> include/linux/cpumask.h:94:42: error: enumerator value for 'FIX_KMAP_END' is not an integer constant
      94 | #define cpu_possible_mask ((const struct cpumask *)&__cpu_possible_mask)
         |                                          ^~~~~~~
   include/linux/cpumask.h:114:44: note: in expansion of macro 'cpu_possible_mask'
     114 | #define num_possible_cpus() cpumask_weight(cpu_possible_mask)
         |                                            ^~~~~~~~~~~~~~~~~
   arch/microblaze/include/asm/fixmap.h:50:48: note: in expansion of macro 'num_possible_cpus'
      50 |  FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * num_possible_cpus()) - 1,
         |                                                ^~~~~~~~~~~~~~~~~
   drivers/scsi/esas2r/esas2r_disc.c: In function 'esas2r_disc_get_phys_addr':
   drivers/scsi/esas2r/esas2r_disc.c:1035:17: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
    1035 |   esas2r_bugon();
         |                 ^
--
   In file included from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/mutex.h:17,
                    from include/linux/kernfs.h:12,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/pci.h:35,
                    from drivers/scsi/esas2r/esas2r.h:46,
                    from drivers/scsi/esas2r/esas2r_flash.c:45:
>> include/linux/cpumask.h:94:42: error: enumerator value for 'FIX_KMAP_END' is not an integer constant
      94 | #define cpu_possible_mask ((const struct cpumask *)&__cpu_possible_mask)
         |                                          ^~~~~~~
   include/linux/cpumask.h:114:44: note: in expansion of macro 'cpu_possible_mask'
     114 | #define num_possible_cpus() cpumask_weight(cpu_possible_mask)
         |                                            ^~~~~~~~~~~~~~~~~
   arch/microblaze/include/asm/fixmap.h:50:48: note: in expansion of macro 'num_possible_cpus'
      50 |  FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * num_possible_cpus()) - 1,
         |                                                ^~~~~~~~~~~~~~~~~
--
   In file included from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/mutex.h:17,
                    from include/linux/kernfs.h:12,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/pci.h:35,
                    from drivers/scsi/esas2r/esas2r.h:46,
                    from drivers/scsi/esas2r/esas2r_init.c:44:
>> include/linux/cpumask.h:94:42: error: enumerator value for 'FIX_KMAP_END' is not an integer constant
      94 | #define cpu_possible_mask ((const struct cpumask *)&__cpu_possible_mask)
         |                                          ^~~~~~~
   include/linux/cpumask.h:114:44: note: in expansion of macro 'cpu_possible_mask'
     114 | #define num_possible_cpus() cpumask_weight(cpu_possible_mask)
         |                                            ^~~~~~~~~~~~~~~~~
   arch/microblaze/include/asm/fixmap.h:50:48: note: in expansion of macro 'num_possible_cpus'
      50 |  FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * num_possible_cpus()) - 1,
         |                                                ^~~~~~~~~~~~~~~~~
   drivers/scsi/esas2r/esas2r_init.c: In function 'esas2r_init_adapter':
   drivers/scsi/esas2r/esas2r_init.c:418:41: warning: suggest braces around empty body in an 'else' statement [-Wempty-body]
     418 |   esas2r_debug("esas2r_init_adapter ok");
         |                                         ^
--
   In file included from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/mutex.h:17,
                    from include/linux/kernfs.h:12,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/pci.h:35,
                    from drivers/scsi/esas2r/esas2r.h:46,
                    from drivers/scsi/esas2r/esas2r_int.c:45:
>> include/linux/cpumask.h:94:42: error: enumerator value for 'FIX_KMAP_END' is not an integer constant
      94 | #define cpu_possible_mask ((const struct cpumask *)&__cpu_possible_mask)
         |                                          ^~~~~~~
   include/linux/cpumask.h:114:44: note: in expansion of macro 'cpu_possible_mask'
     114 | #define num_possible_cpus() cpumask_weight(cpu_possible_mask)
         |                                            ^~~~~~~~~~~~~~~~~
   arch/microblaze/include/asm/fixmap.h:50:48: note: in expansion of macro 'num_possible_cpus'
      50 |  FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * num_possible_cpus()) - 1,
         |                                                ^~~~~~~~~~~~~~~~~
   drivers/scsi/esas2r/esas2r_int.c: In function 'esas2r_doorbell_interrupt':
   drivers/scsi/esas2r/esas2r_int.c:692:22: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
     692 |   esas2r_trace_exit();
         |                      ^
   drivers/scsi/esas2r/esas2r_int.c: In function 'esas2r_send_reset_ae':
   drivers/scsi/esas2r/esas2r_int.c:868:44: warning: suggest braces around empty body in an 'else' statement [-Wempty-body]
     868 |   esas2r_hdebug("*** sending reset AE ***");
         |                                            ^


vim +/FIX_KMAP_END +94 include/linux/cpumask.h

^1da177e4c3f41 Linus Torvalds   2005-04-16  49  
^1da177e4c3f41 Linus Torvalds   2005-04-16  50  /*
^1da177e4c3f41 Linus Torvalds   2005-04-16  51   * The following particular system cpumasks and operations manage
b3199c025d1646 Rusty Russell    2008-12-30  52   * possible, present, active and online cpus.
^1da177e4c3f41 Linus Torvalds   2005-04-16  53   *
b3199c025d1646 Rusty Russell    2008-12-30  54   *     cpu_possible_mask- has bit 'cpu' set iff cpu is populatable
b3199c025d1646 Rusty Russell    2008-12-30  55   *     cpu_present_mask - has bit 'cpu' set iff cpu is populated
b3199c025d1646 Rusty Russell    2008-12-30  56   *     cpu_online_mask  - has bit 'cpu' set iff cpu available to scheduler
b3199c025d1646 Rusty Russell    2008-12-30  57   *     cpu_active_mask  - has bit 'cpu' set iff cpu available to migration
^1da177e4c3f41 Linus Torvalds   2005-04-16  58   *
b3199c025d1646 Rusty Russell    2008-12-30  59   *  If !CONFIG_HOTPLUG_CPU, present == possible, and active == online.
^1da177e4c3f41 Linus Torvalds   2005-04-16  60   *
b3199c025d1646 Rusty Russell    2008-12-30  61   *  The cpu_possible_mask is fixed at boot time, as the set of CPU id's
b3199c025d1646 Rusty Russell    2008-12-30  62   *  that it is possible might ever be plugged in at anytime during the
b3199c025d1646 Rusty Russell    2008-12-30  63   *  life of that system boot.  The cpu_present_mask is dynamic(*),
b3199c025d1646 Rusty Russell    2008-12-30  64   *  representing which CPUs are currently plugged in.  And
b3199c025d1646 Rusty Russell    2008-12-30  65   *  cpu_online_mask is the dynamic subset of cpu_present_mask,
b3199c025d1646 Rusty Russell    2008-12-30  66   *  indicating those CPUs available for scheduling.
b3199c025d1646 Rusty Russell    2008-12-30  67   *
b3199c025d1646 Rusty Russell    2008-12-30  68   *  If HOTPLUG is enabled, then cpu_possible_mask is forced to have
^1da177e4c3f41 Linus Torvalds   2005-04-16  69   *  all NR_CPUS bits set, otherwise it is just the set of CPUs that
^1da177e4c3f41 Linus Torvalds   2005-04-16  70   *  ACPI reports present at boot.
^1da177e4c3f41 Linus Torvalds   2005-04-16  71   *
b3199c025d1646 Rusty Russell    2008-12-30  72   *  If HOTPLUG is enabled, then cpu_present_mask varies dynamically,
^1da177e4c3f41 Linus Torvalds   2005-04-16  73   *  depending on what ACPI reports as currently plugged in, otherwise
b3199c025d1646 Rusty Russell    2008-12-30  74   *  cpu_present_mask is just a copy of cpu_possible_mask.
^1da177e4c3f41 Linus Torvalds   2005-04-16  75   *
b3199c025d1646 Rusty Russell    2008-12-30  76   *  (*) Well, cpu_present_mask is dynamic in the hotplug case.  If not
b3199c025d1646 Rusty Russell    2008-12-30  77   *      hotplug, it's a copy of cpu_possible_mask, hence fixed at boot.
^1da177e4c3f41 Linus Torvalds   2005-04-16  78   *
^1da177e4c3f41 Linus Torvalds   2005-04-16  79   * Subtleties:
^1da177e4c3f41 Linus Torvalds   2005-04-16  80   * 1) UP arch's (NR_CPUS == 1, CONFIG_SMP not defined) hardcode
^1da177e4c3f41 Linus Torvalds   2005-04-16  81   *    assumption that their single CPU is online.  The UP
b3199c025d1646 Rusty Russell    2008-12-30  82   *    cpu_{online,possible,present}_masks are placebos.  Changing them
^1da177e4c3f41 Linus Torvalds   2005-04-16  83   *    will have no useful affect on the following num_*_cpus()
^1da177e4c3f41 Linus Torvalds   2005-04-16  84   *    and cpu_*() macros in the UP case.  This ugliness is a UP
^1da177e4c3f41 Linus Torvalds   2005-04-16  85   *    optimization - don't waste any instructions or memory references
^1da177e4c3f41 Linus Torvalds   2005-04-16  86   *    asking if you're online or how many CPUs there are if there is
^1da177e4c3f41 Linus Torvalds   2005-04-16  87   *    only one CPU.
^1da177e4c3f41 Linus Torvalds   2005-04-16  88   */
^1da177e4c3f41 Linus Torvalds   2005-04-16  89  
4b804c85dc37db Rasmus Villemoes 2016-01-20  90  extern struct cpumask __cpu_possible_mask;
4b804c85dc37db Rasmus Villemoes 2016-01-20  91  extern struct cpumask __cpu_online_mask;
4b804c85dc37db Rasmus Villemoes 2016-01-20  92  extern struct cpumask __cpu_present_mask;
4b804c85dc37db Rasmus Villemoes 2016-01-20  93  extern struct cpumask __cpu_active_mask;
5aec01b834fd6f Rasmus Villemoes 2016-01-20 @94  #define cpu_possible_mask ((const struct cpumask *)&__cpu_possible_mask)
5aec01b834fd6f Rasmus Villemoes 2016-01-20  95  #define cpu_online_mask   ((const struct cpumask *)&__cpu_online_mask)
5aec01b834fd6f Rasmus Villemoes 2016-01-20  96  #define cpu_present_mask  ((const struct cpumask *)&__cpu_present_mask)
5aec01b834fd6f Rasmus Villemoes 2016-01-20  97  #define cpu_active_mask   ((const struct cpumask *)&__cpu_active_mask)
b3199c025d1646 Rusty Russell    2008-12-30  98  

:::::: The code at line 94 was first introduced by commit
:::::: 5aec01b834fd6f8ca49d1aeede665b950d0c148e kernel/cpu.c: eliminate cpu_*_mask

:::::: TO: Rasmus Villemoes <linux@rasmusvillemoes.dk>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.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: 66478 bytes --]

                 reply	other threads:[~2021-06-03 11:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202106031918.PCnp45YB-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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 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.