[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204210402.MWlYLHyS-lkp@intel.com>
Date: Thu, 21 Apr 2022 14:42:30 +0800
From: kernel test robot <lkp@...el.com>
To: Ingo Molnar <mingo@...nel.org>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [mingo-tip:sched/headers 1926/2579]
drivers/mfd/intel_soc_pmic_core.c:70:2: error: implicit declaration of
function 'irq_domain_update_bus_token' is invalid in C99
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: 49e1ec6c70a6eb4b7de9250a455b8b63eb42afbe
commit: 762e2c31017f8004327c678d499aa24693a9d465 [1926/2579] headers/deps: ACPI: Optimize <linux/acpi.h> dependencies, remove <linux/irqdomain.h> inclusion
config: i386-randconfig-a015 (https://download.01.org/0day-ci/archive/20220421/202204210402.MWlYLHyS-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project bac6cd5bf85669e3376610cfc4c4f9ca015e7b9b)
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://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=762e2c31017f8004327c678d499aa24693a9d465
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout 762e2c31017f8004327c678d499aa24693a9d465
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/ fs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> drivers/mfd/intel_soc_pmic_core.c:70:2: error: implicit declaration of function 'irq_domain_update_bus_token' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
irq_domain_update_bus_token(regmap_irq_get_domain(pmic->irq_chip_data),
^
>> drivers/mfd/intel_soc_pmic_core.c:71:9: error: use of undeclared identifier 'DOMAIN_BUS_NEXUS'
DOMAIN_BUS_NEXUS);
^
2 errors generated.
vim +/irq_domain_update_bus_token +70 drivers/mfd/intel_soc_pmic_core.c
a3aa9a93df9fc8 Shobhit Kumar 2015-06-26 29
5165238460068e Zhu, Lejun 2014-06-03 30 static int intel_soc_pmic_i2c_probe(struct i2c_client *i2c,
5165238460068e Zhu, Lejun 2014-06-03 31 const struct i2c_device_id *i2c_id)
5165238460068e Zhu, Lejun 2014-06-03 32 {
5165238460068e Zhu, Lejun 2014-06-03 33 struct device *dev = &i2c->dev;
5165238460068e Zhu, Lejun 2014-06-03 34 struct intel_soc_pmic_config *config;
5165238460068e Zhu, Lejun 2014-06-03 35 struct intel_soc_pmic *pmic;
5165238460068e Zhu, Lejun 2014-06-03 36 int ret;
5165238460068e Zhu, Lejun 2014-06-03 37
5b78223f55a0f5 Hans de Goede 2021-12-06 38 if (soc_intel_is_byt())
b01e9348e10654 Hans de Goede 2017-09-04 39 config = &intel_soc_pmic_config_byt_crc;
5b78223f55a0f5 Hans de Goede 2021-12-06 40 else
b01e9348e10654 Hans de Goede 2017-09-04 41 config = &intel_soc_pmic_config_cht_crc;
5165238460068e Zhu, Lejun 2014-06-03 42
5165238460068e Zhu, Lejun 2014-06-03 43 pmic = devm_kzalloc(dev, sizeof(*pmic), GFP_KERNEL);
0a65fbf64dad89 Kiran Padwal 2015-02-11 44 if (!pmic)
0a65fbf64dad89 Kiran Padwal 2015-02-11 45 return -ENOMEM;
0a65fbf64dad89 Kiran Padwal 2015-02-11 46
5165238460068e Zhu, Lejun 2014-06-03 47 dev_set_drvdata(dev, pmic);
5165238460068e Zhu, Lejun 2014-06-03 48
5165238460068e Zhu, Lejun 2014-06-03 49 pmic->regmap = devm_regmap_init_i2c(i2c, config->regmap_config);
db43b8d04d7a9f Pan Bian 2017-04-23 50 if (IS_ERR(pmic->regmap))
db43b8d04d7a9f Pan Bian 2017-04-23 51 return PTR_ERR(pmic->regmap);
db43b8d04d7a9f Pan Bian 2017-04-23 52
159ee7578a7453 Andy Shevchenko 2017-02-21 53 pmic->irq = i2c->irq;
5165238460068e Zhu, Lejun 2014-06-03 54
5165238460068e Zhu, Lejun 2014-06-03 55 ret = regmap_add_irq_chip(pmic->regmap, pmic->irq,
5165238460068e Zhu, Lejun 2014-06-03 56 config->irq_flags | IRQF_ONESHOT,
5165238460068e Zhu, Lejun 2014-06-03 57 0, config->irq_chip,
5165238460068e Zhu, Lejun 2014-06-03 58 &pmic->irq_chip_data);
5165238460068e Zhu, Lejun 2014-06-03 59 if (ret)
5165238460068e Zhu, Lejun 2014-06-03 60 return ret;
5165238460068e Zhu, Lejun 2014-06-03 61
5165238460068e Zhu, Lejun 2014-06-03 62 ret = enable_irq_wake(pmic->irq);
5165238460068e Zhu, Lejun 2014-06-03 63 if (ret)
5165238460068e Zhu, Lejun 2014-06-03 64 dev_warn(dev, "Can't enable IRQ as wake source: %d\n", ret);
5165238460068e Zhu, Lejun 2014-06-03 65
a3aa9a93df9fc8 Shobhit Kumar 2015-06-26 66 /* Add lookup table for crc-pwm */
a3aa9a93df9fc8 Shobhit Kumar 2015-06-26 67 pwm_add_table(crc_pwm_lookup, ARRAY_SIZE(crc_pwm_lookup));
a3aa9a93df9fc8 Shobhit Kumar 2015-06-26 68
f49f43371b8a68 Hans de Goede 2021-12-25 69 /* To distuingish this domain from the GPIO/charger's irqchip domains */
f49f43371b8a68 Hans de Goede 2021-12-25 @70 irq_domain_update_bus_token(regmap_irq_get_domain(pmic->irq_chip_data),
f49f43371b8a68 Hans de Goede 2021-12-25 @71 DOMAIN_BUS_NEXUS);
f49f43371b8a68 Hans de Goede 2021-12-25 72
5165238460068e Zhu, Lejun 2014-06-03 73 ret = mfd_add_devices(dev, -1, config->cell_dev,
5165238460068e Zhu, Lejun 2014-06-03 74 config->n_cell_devs, NULL, 0,
5165238460068e Zhu, Lejun 2014-06-03 75 regmap_irq_get_domain(pmic->irq_chip_data));
5165238460068e Zhu, Lejun 2014-06-03 76 if (ret)
5165238460068e Zhu, Lejun 2014-06-03 77 goto err_del_irq_chip;
5165238460068e Zhu, Lejun 2014-06-03 78
5165238460068e Zhu, Lejun 2014-06-03 79 return 0;
5165238460068e Zhu, Lejun 2014-06-03 80
5165238460068e Zhu, Lejun 2014-06-03 81 err_del_irq_chip:
5165238460068e Zhu, Lejun 2014-06-03 82 regmap_del_irq_chip(pmic->irq, pmic->irq_chip_data);
5165238460068e Zhu, Lejun 2014-06-03 83 return ret;
5165238460068e Zhu, Lejun 2014-06-03 84 }
5165238460068e Zhu, Lejun 2014-06-03 85
:::::: The code at line 70 was first introduced by commit
:::::: f49f43371b8a680c5972d052598d7c120f1a05d3 mfd: intel_soc_pmic_crc: Set main IRQ domain bus token to DOMAIN_BUS_NEXUS
:::::: TO: Hans de Goede <hdegoede@...hat.com>
:::::: CC: Lee Jones <lee.jones@...aro.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists