From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30D3AC433EF for ; Thu, 21 Apr 2022 06:45:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385194AbiDUGrb (ORCPT ); Thu, 21 Apr 2022 02:47:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385150AbiDUGqh (ORCPT ); Thu, 21 Apr 2022 02:46:37 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2B5315FD5 for ; Wed, 20 Apr 2022 23:42:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650523379; x=1682059379; h=date:from:to:cc:subject:message-id:mime-version; bh=CEezHFZ8jbSAO8++FIRw/wHkdTizh/6PCQxkqG4AIcA=; b=RCjmm4PANfdYwjMCOzaFIsZU/QMGrHXQoknOuGNhSRevIOs1O+VLgDc8 BQh6cuoc6GPfNYXgt70+L5YDLCRGbyEdNs/QpUjejyPXDO8+Rq9ObKEB9 ttmqRxlz/88dQc8dXPPDYTShbLKA4X9Q8rGHMkKbSzKm50R5Ek3re+MOO Omom29oORkTsZ/2RY2AKhCzzwgMhpVAjEGFaHz1woei36Yr5hZdYKfOSn qtjSciMd+2Z1vFIp3MykXWDSAiwjRVZdONImE0LilcTxvRGZz6Nu8ULw8 wCMcDhgckF3+KqyXbR/WX0aEL+eaXwlKHfa7Mk/IMCzklH662QacL1zPz w==; X-IronPort-AV: E=McAfee;i="6400,9594,10323"; a="350704630" X-IronPort-AV: E=Sophos;i="5.90,278,1643702400"; d="scan'208";a="350704630" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2022 23:42:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,278,1643702400"; d="scan'208";a="614757523" Received: from lkp-server01.sh.intel.com (HELO 3abc53900bec) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 20 Apr 2022 23:42:51 -0700 Received: from kbuild by 3abc53900bec with local (Exim 4.95) (envelope-from ) id 1nhQWg-0007zt-Iv; Thu, 21 Apr 2022 06:42:50 +0000 Date: Thu, 21 Apr 2022 14:42:30 +0800 From: kernel test robot To: Ingo Molnar Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.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 Message-ID: <202204210402.MWlYLHyS-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 dependencies, remove 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 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 :::::: CC: Lee Jones -- 0-DAY CI Kernel Test Service https://01.org/lkp