All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: ACPI: Add stub for acpi_has_method() for !CONFIG_ACPI
@ 2026-10-05  5:32 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2026-10-05  5:32 UTC (permalink / raw)
  Cc: oe-kbuild-all

Hi Bowen,

kernel test robot noticed the following build errors:



url:    https://github.com/intel-lab-lkp/linux/commits/Bowen-Yu/ACPI-Add-stub-for-acpi_has_method-for-CONFIG_ACPI/20260929-201347
base:   
patch link:    https://lore.kernel.org/r/202610050754.HpDCeeIT-lkp%40intel.com
config: microblaze-randconfig-r2200-20261005 (https://download.01.org/0day-ci/archive/20261005/202610050754.HpDCeeIT-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 9.5.0
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261005/202610050754.HpDCeeIT-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610050754.HpDCeeIT-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from init/main.c:31:
>> include/linux/acpi.h:1033:20: error: redefinition of 'acpi_has_method'
    1033 | static inline bool acpi_has_method(acpi_handle handle, char *name)
         |                    ^~~~~~~~~~~~~~~
   In file included from include/linux/acpi.h:28,
                    from init/main.c:31:
   include/acpi/acpi_bus.h:957:20: note: previous definition of 'acpi_has_method' was here
     957 | static inline bool acpi_has_method(acpi_handle handle, char *name)
         |                    ^~~~~~~~~~~~~~~


vim +/acpi_has_method +1033 include/linux/acpi.h

  1032	
> 1033	static inline bool acpi_has_method(acpi_handle handle, char *name)
  1034	{
  1035		return false;
  1036	}
  1037	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ACPI: Add stub for acpi_has_method() for !CONFIG_ACPI
@ 2026-10-05  9:43 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2026-10-05  9:43 UTC (permalink / raw)
  Cc: oe-kbuild-all

Hi Bowen,

kernel test robot noticed the following build warnings:



url:    https://github.com/intel-lab-lkp/linux/commits/Bowen-Yu/ACPI-Add-stub-for-acpi_has_method-for-CONFIG_ACPI/20260929-201347
base:   
patch link:    https://lore.kernel.org/r/202610051145.MTPINzw1-lkp%40intel.com
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20261005/202610051145.MTPINzw1-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261005/202610051145.MTPINzw1-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610051145.MTPINzw1-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from sound/hda/controllers/intel.c:38:
   include/linux/acpi.h:1033:20: error: redefinition of 'acpi_has_method'
    1033 | static inline bool acpi_has_method(acpi_handle handle, char *name)
         |                    ^~~~~~~~~~~~~~~
   In file included from include/linux/acpi.h:28:
   include/acpi/acpi_bus.h:957:20: note: previous definition of 'acpi_has_method' with type 'bool(void *, char *)' {aka '_Bool(void *, char *)'}
     957 | static inline bool acpi_has_method(acpi_handle handle, char *name)
         |                    ^~~~~~~~~~~~~~~
   In file included from include/asm-generic/div64.h:27,
                    from ./arch/parisc/include/generated/asm/div64.h:1,
                    from include/linux/math.h:6,
                    from include/linux/delay.h:12,
                    from sound/hda/controllers/intel.c:23:
   include/linux/compiler.h:200:82: error: expression in static assertion is not an integer
     200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                                                  ^
   include/linux/compiler.h:205:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     205 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   include/linux/moduleparam.h:544:20: note: in expansion of macro 'ARRAY_SIZE'
     544 |         = { .max = ARRAY_SIZE(array), .num = nump,                      \
         |                    ^~~~~~~~~~
   include/linux/moduleparam.h:528:9: note: in expansion of macro 'module_param_array_named'
     528 |         module_param_array_named(name, name, type, nump, perm)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   sound/hda/controllers/intel.c:127:1: note: in expansion of macro 'module_param_array'
     127 | module_param_array(index, int, NULL, 0444);
         | ^~~~~~~~~~~~~~~~~~
>> sound/hda/controllers/intel.c:106:12: warning: 'index' defined but not used [-Wunused-variable]
     106 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
         |            ^~~~~


vim +/index +106 sound/hda/controllers/intel.c

^1da177e4c3f415 sound/pci/hda/hda_intel.c Linus Torvalds    2005-04-16  105  
5aba4f8ec72b2b8 sound/pci/hda/hda_intel.c Takashi Iwai      2008-01-07 @106  static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
5aba4f8ec72b2b8 sound/pci/hda/hda_intel.c Takashi Iwai      2008-01-07  107  static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;
a67ff6a54095e27 sound/pci/hda/hda_intel.c Rusty Russell     2011-12-15  108  static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;
5aba4f8ec72b2b8 sound/pci/hda/hda_intel.c Takashi Iwai      2008-01-07  109  static char *model[SNDRV_CARDS];
1dac6695c683c66 sound/pci/hda/hda_intel.c Takashi Iwai      2012-09-13  110  static int position_fix[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -1};
5c0d7bc103dd1ae sound/pci/hda/hda_intel.c Takashi Iwai      2008-06-10  111  static int bdl_pos_adj[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -1};
5aba4f8ec72b2b8 sound/pci/hda/hda_intel.c Takashi Iwai      2008-01-07  112  static int probe_mask[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -1};
d4d9cd0338892e7 sound/pci/hda/hda_intel.c Takashi Iwai      2008-12-19  113  static int probe_only[SNDRV_CARDS];
26a6cb6cca225f6 sound/pci/hda/hda_intel.c David Henningsson 2012-10-09  114  static int jackpoll_ms[SNDRV_CARDS];
41438f1314b0f6f sound/pci/hda/hda_intel.c Takashi Iwai      2017-01-12  115  static int single_cmd = -1;
71623855e20c3fe sound/pci/hda/hda_intel.c Takashi Iwai      2009-09-28  116  static int enable_msi = -1;
4ea6fbc8eb23c3a sound/pci/hda/hda_intel.c Takashi Iwai      2009-06-17  117  #ifdef CONFIG_SND_HDA_PATCH_LOADER
4ea6fbc8eb23c3a sound/pci/hda/hda_intel.c Takashi Iwai      2009-06-17  118  static char *patch[SNDRV_CARDS];
4ea6fbc8eb23c3a sound/pci/hda/hda_intel.c Takashi Iwai      2009-06-17  119  #endif
2dca0bba70ce3c2 sound/pci/hda/hda_intel.c Jaroslav Kysela   2009-11-13  120  #ifdef CONFIG_SND_HDA_INPUT_BEEP
0920c9b4c4d8960 sound/pci/hda/hda_intel.c Takashi Iwai      2012-07-03  121  static bool beep_mode[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] =
2dca0bba70ce3c2 sound/pci/hda/hda_intel.c Jaroslav Kysela   2009-11-13  122  					CONFIG_SND_HDA_INPUT_BEEP_MODE};
2dca0bba70ce3c2 sound/pci/hda/hda_intel.c Jaroslav Kysela   2009-11-13  123  #endif
7fba6aea4472f01 sound/pci/hda/hda_intel.c Takashi Iwai      2020-01-09  124  static bool dmic_detect = 1;
d045bceff5a904b sound/pci/hda/hda_intel.c Jaroslav Kysela   2023-02-02  125  static bool ctl_dev_id = IS_ENABLED(CONFIG_SND_HDA_CTL_DEV_ID) ? 1 : 0;
^1da177e4c3f415 sound/pci/hda/hda_intel.c Linus Torvalds    2005-04-16  126  

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ACPI: Add stub for acpi_has_method() for !CONFIG_ACPI
@ 2026-10-05 15:11 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2026-10-05 15:11 UTC (permalink / raw)
  Cc: oe-kbuild-all

Hi Bowen,

kernel test robot noticed the following build warnings:



url:    https://github.com/intel-lab-lkp/linux/commits/Bowen-Yu/ACPI-Add-stub-for-acpi_has_method-for-CONFIG_ACPI/20260929-201347
base:   
patch link:    https://lore.kernel.org/r/202610051732.mHvl7l40-lkp%40intel.com
config: mips-randconfig-r2307-20261005 (https://download.01.org/0day-ci/archive/20261005/202610051732.mHvl7l40-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 195c81658995a4b7531c30a12c5aef6cf2bbd671)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261005/202610051732.mHvl7l40-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610051732.mHvl7l40-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/irqchip/irq-goldfish-pic.c:12:
   In file included from include/linux/irqchip.h:14:
   include/linux/acpi.h:1033:20: error: redefinition of 'acpi_has_method'
    1033 | static inline bool acpi_has_method(acpi_handle handle, char *name)
         |                    ^
   include/acpi/acpi_bus.h:957:20: note: previous definition is here
     957 | static inline bool acpi_has_method(acpi_handle handle, char *name)
         |                    ^
>> drivers/irqchip/irq-goldfish-pic.c:101:29: warning: shift count >= width of type [-Wshift-count-overflow]
     101 |         irq_setup_generic_chip(gc, IRQ_MSK(GFPIC_NR_IRQS), 0,
         |                                    ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/irq.h:1227:41: note: expanded from macro 'IRQ_MSK'
    1227 | #define IRQ_MSK(n) (u32)((n) < 32 ? ((1 << (n)) - 1) : UINT_MAX)
         |                                         ^  ~~~
   drivers/irqchip/irq-goldfish-pic.c:120:31: warning: shift count >= width of type [-Wshift-count-overflow]
     120 |         irq_destroy_generic_chip(gc, IRQ_MSK(GFPIC_NR_IRQS),
         |                                      ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/irq.h:1227:41: note: expanded from macro 'IRQ_MSK'
    1227 | #define IRQ_MSK(n) (u32)((n) < 32 ? ((1 << (n)) - 1) : UINT_MAX)
         |                                         ^  ~~~
   2 warnings and 1 error generated.


vim +101 drivers/irqchip/irq-goldfish-pic.c

4235ff50cf98dd Miodrag Dinic     2017-12-29   54  
4235ff50cf98dd Miodrag Dinic     2017-12-29   55  static int __init goldfish_pic_of_init(struct device_node *of_node,
4235ff50cf98dd Miodrag Dinic     2017-12-29   56  				       struct device_node *parent)
4235ff50cf98dd Miodrag Dinic     2017-12-29   57  {
4235ff50cf98dd Miodrag Dinic     2017-12-29   58  	struct goldfish_pic_data *gfpic;
4235ff50cf98dd Miodrag Dinic     2017-12-29   59  	struct irq_chip_generic *gc;
4235ff50cf98dd Miodrag Dinic     2017-12-29   60  	struct irq_chip_type *ct;
4235ff50cf98dd Miodrag Dinic     2017-12-29   61  	unsigned int parent_irq;
4235ff50cf98dd Miodrag Dinic     2017-12-29   62  	int ret = 0;
4235ff50cf98dd Miodrag Dinic     2017-12-29   63  
bf4afc53b77aea Linus Torvalds    2026-02-21   64  	gfpic = kzalloc_obj(*gfpic);
4235ff50cf98dd Miodrag Dinic     2017-12-29   65  	if (!gfpic) {
4235ff50cf98dd Miodrag Dinic     2017-12-29   66  		ret = -ENOMEM;
4235ff50cf98dd Miodrag Dinic     2017-12-29   67  		goto out_err;
4235ff50cf98dd Miodrag Dinic     2017-12-29   68  	}
4235ff50cf98dd Miodrag Dinic     2017-12-29   69  
4235ff50cf98dd Miodrag Dinic     2017-12-29   70  	parent_irq = irq_of_parse_and_map(of_node, 0);
4235ff50cf98dd Miodrag Dinic     2017-12-29   71  	if (!parent_irq) {
4235ff50cf98dd Miodrag Dinic     2017-12-29   72  		pr_err("Failed to map parent IRQ!\n");
4235ff50cf98dd Miodrag Dinic     2017-12-29   73  		ret = -EINVAL;
4235ff50cf98dd Miodrag Dinic     2017-12-29   74  		goto out_free;
4235ff50cf98dd Miodrag Dinic     2017-12-29   75  	}
4235ff50cf98dd Miodrag Dinic     2017-12-29   76  
4235ff50cf98dd Miodrag Dinic     2017-12-29   77  	gfpic->base = of_iomap(of_node, 0);
4235ff50cf98dd Miodrag Dinic     2017-12-29   78  	if (!gfpic->base) {
4235ff50cf98dd Miodrag Dinic     2017-12-29   79  		pr_err("Failed to map base address!\n");
4235ff50cf98dd Miodrag Dinic     2017-12-29   80  		ret = -ENOMEM;
4235ff50cf98dd Miodrag Dinic     2017-12-29   81  		goto out_unmap_irq;
4235ff50cf98dd Miodrag Dinic     2017-12-29   82  	}
4235ff50cf98dd Miodrag Dinic     2017-12-29   83  
4235ff50cf98dd Miodrag Dinic     2017-12-29   84  	/* Mask interrupts. */
4235ff50cf98dd Miodrag Dinic     2017-12-29   85  	writel(1, gfpic->base + GFPIC_REG_IRQ_DISABLE_ALL);
4235ff50cf98dd Miodrag Dinic     2017-12-29   86  
4235ff50cf98dd Miodrag Dinic     2017-12-29   87  	gc = irq_alloc_generic_chip("GFPIC", 1, GFPIC_IRQ_BASE, gfpic->base,
4235ff50cf98dd Miodrag Dinic     2017-12-29   88  				    handle_level_irq);
4235ff50cf98dd Miodrag Dinic     2017-12-29   89  	if (!gc) {
4235ff50cf98dd Miodrag Dinic     2017-12-29   90  		pr_err("Failed to allocate chip structures!\n");
4235ff50cf98dd Miodrag Dinic     2017-12-29   91  		ret = -ENOMEM;
4235ff50cf98dd Miodrag Dinic     2017-12-29   92  		goto out_iounmap;
4235ff50cf98dd Miodrag Dinic     2017-12-29   93  	}
4235ff50cf98dd Miodrag Dinic     2017-12-29   94  
4235ff50cf98dd Miodrag Dinic     2017-12-29   95  	ct = gc->chip_types;
4235ff50cf98dd Miodrag Dinic     2017-12-29   96  	ct->regs.enable = GFPIC_REG_IRQ_ENABLE;
4235ff50cf98dd Miodrag Dinic     2017-12-29   97  	ct->regs.disable = GFPIC_REG_IRQ_DISABLE;
4235ff50cf98dd Miodrag Dinic     2017-12-29   98  	ct->chip.irq_unmask = irq_gc_unmask_enable_reg;
4235ff50cf98dd Miodrag Dinic     2017-12-29   99  	ct->chip.irq_mask = irq_gc_mask_disable_reg;
4235ff50cf98dd Miodrag Dinic     2017-12-29  100  
4235ff50cf98dd Miodrag Dinic     2017-12-29 @101  	irq_setup_generic_chip(gc, IRQ_MSK(GFPIC_NR_IRQS), 0,
4235ff50cf98dd Miodrag Dinic     2017-12-29  102  			       IRQ_NOPROBE | IRQ_LEVEL, 0);
4235ff50cf98dd Miodrag Dinic     2017-12-29  103  
affdc0d1bdfa54 Jiri Slaby (SUSE  2025-03-19  104) 	gfpic->irq_domain = irq_domain_create_legacy(of_fwnode_handle(of_node), GFPIC_NR_IRQS,
affdc0d1bdfa54 Jiri Slaby (SUSE  2025-03-19  105) 						     GFPIC_IRQ_BASE, 0, &goldfish_irq_domain_ops,
4235ff50cf98dd Miodrag Dinic     2017-12-29  106  						     NULL);
4235ff50cf98dd Miodrag Dinic     2017-12-29  107  	if (!gfpic->irq_domain) {
4235ff50cf98dd Miodrag Dinic     2017-12-29  108  		pr_err("Failed to add irqdomain!\n");
4235ff50cf98dd Miodrag Dinic     2017-12-29  109  		ret = -ENOMEM;
4235ff50cf98dd Miodrag Dinic     2017-12-29  110  		goto out_destroy_generic_chip;
4235ff50cf98dd Miodrag Dinic     2017-12-29  111  	}
4235ff50cf98dd Miodrag Dinic     2017-12-29  112  
4235ff50cf98dd Miodrag Dinic     2017-12-29  113  	irq_set_chained_handler_and_data(parent_irq,
4235ff50cf98dd Miodrag Dinic     2017-12-29  114  					 goldfish_pic_cascade, gfpic);
4235ff50cf98dd Miodrag Dinic     2017-12-29  115  
4235ff50cf98dd Miodrag Dinic     2017-12-29  116  	pr_info("Successfully registered.\n");
4235ff50cf98dd Miodrag Dinic     2017-12-29  117  	return 0;
4235ff50cf98dd Miodrag Dinic     2017-12-29  118  
4235ff50cf98dd Miodrag Dinic     2017-12-29  119  out_destroy_generic_chip:
4235ff50cf98dd Miodrag Dinic     2017-12-29  120  	irq_destroy_generic_chip(gc, IRQ_MSK(GFPIC_NR_IRQS),
4235ff50cf98dd Miodrag Dinic     2017-12-29  121  				 IRQ_NOPROBE | IRQ_LEVEL, 0);
4235ff50cf98dd Miodrag Dinic     2017-12-29  122  out_iounmap:
4235ff50cf98dd Miodrag Dinic     2017-12-29  123  	iounmap(gfpic->base);
4235ff50cf98dd Miodrag Dinic     2017-12-29  124  out_unmap_irq:
4235ff50cf98dd Miodrag Dinic     2017-12-29  125  	irq_dispose_mapping(parent_irq);
4235ff50cf98dd Miodrag Dinic     2017-12-29  126  out_free:
4235ff50cf98dd Miodrag Dinic     2017-12-29  127  	kfree(gfpic);
4235ff50cf98dd Miodrag Dinic     2017-12-29  128  out_err:
4235ff50cf98dd Miodrag Dinic     2017-12-29  129  	pr_err("Failed to initialize! (errno = %d)\n", ret);
4235ff50cf98dd Miodrag Dinic     2017-12-29  130  	return ret;
4235ff50cf98dd Miodrag Dinic     2017-12-29  131  }
4235ff50cf98dd Miodrag Dinic     2017-12-29  132  

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-05 15:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-05  5:32 ACPI: Add stub for acpi_has_method() for !CONFIG_ACPI kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-10-05  9:43 kernel test robot
2026-10-05 15:11 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.