From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 510252CA2 for ; Thu, 22 Sep 2022 19:02:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663873326; x=1695409326; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=K91cFaaVpeaE0ZmJxi/NGwqsumkKWIZFucMXaH09Bk4=; b=hmpz841mHtE6/s0h+QqBS6Hq6J3AUvT8L0ztPd1nC0gQ9pNh4Y1frBl+ 2pkn09QQJagZwru7fu7XRQsfovbhorZD42R1p5Hc1CbzU+TNPrY6YrpF6 lzHV3r7Y9qE4M8BHkOD102g24hs8KrfI5wnSm+2H4bWdVTOCbIRUx+Wwn KwNPAa/QCJp1faUjV674/VjeTAPtwgZItGmjcCY6nPRswkejRU75sTk5Z 7h2AUnrarjLzhVm/M+w/pCyVbuGJE6KmvvOvU8ochW5PB/6UbHsMQ3pXP gfg8jxiz8OgTE90/8WhxU9wDKPND6O5Wi7FglVigOrnNasGFWBADyJjna Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10478"; a="283484177" X-IronPort-AV: E=Sophos;i="5.93,337,1654585200"; d="scan'208";a="283484177" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2022 11:49:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,337,1654585200"; d="scan'208";a="650651297" Received: from lkp-server01.sh.intel.com (HELO c0a60f19fe7e) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 22 Sep 2022 11:49:36 -0700 Received: from kbuild by c0a60f19fe7e with local (Exim 4.96) (envelope-from ) id 1obRGR-0004sY-28; Thu, 22 Sep 2022 18:49:35 +0000 Date: Fri, 23 Sep 2022 02:48:37 +0800 From: kernel test robot To: Binbin Zhou , Wolfram Sang , Mika Westerberg , linux-i2c@vger.kernel.org Cc: kbuild-all@lists.01.org, loongarch@lists.linux.dev, linux-acpi@vger.kernel.org, WANG Xuerui , Jianmin Lv , Binbin Zhou , Huacai Chen Subject: Re: [PATCH 1/5] i2c: core: Pick i2c bus number from ACPI if present Message-ID: <202209230216.faCwluIB-lkp@intel.com> References: Precedence: bulk X-Mailing-List: loongarch@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi Binbin, Thank you for the patch! Yet something to improve: [auto build test ERROR on wsa/i2c/for-next] [also build test ERROR on linus/master v6.0-rc6 next-20220921] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Binbin-Zhou/i2c-ls2x-Add-support-for-the-Loongson-2K-LS7A-I2C/20220922-194252 base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next config: arc-randconfig-r043-20220922 (https://download.01.org/0day-ci/archive/20220923/202209230216.faCwluIB-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/749fc796eb66dc42c209c6a5808c6b2a5e47fbb6 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Binbin-Zhou/i2c-ls2x-Add-support-for-the-Loongson-2K-LS7A-I2C/20220922-194252 git checkout 749fc796eb66dc42c209c6a5808c6b2a5e47fbb6 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/i2c/i2c-core-base.c: In function 'i2c_add_adapter': >> drivers/i2c/i2c-core-base.c:1568:26: error: implicit declaration of function 'acpi_evaluate_integer'; did you mean 'acpi_evaluate_object'? [-Werror=implicit-function-declaration] 1568 | status = acpi_evaluate_integer(ACPI_HANDLE(dev->parent), | ^~~~~~~~~~~~~~~~~~~~~ | acpi_evaluate_object cc1: some warnings being treated as errors vim +1568 drivers/i2c/i2c-core-base.c 1540 1541 /** 1542 * i2c_add_adapter - declare i2c adapter, use dynamic bus number 1543 * @adapter: the adapter to add 1544 * Context: can sleep 1545 * 1546 * This routine is used to declare an I2C adapter when its bus number 1547 * doesn't matter or when its bus number is specified by an dt alias. 1548 * Examples of bases when the bus number doesn't matter: I2C adapters 1549 * dynamically added by USB links or PCI plugin cards. 1550 * 1551 * When this returns zero, a new bus number was allocated and stored 1552 * in adap->nr, and the specified adapter became available for clients. 1553 * Otherwise, a negative errno value is returned. 1554 */ 1555 int i2c_add_adapter(struct i2c_adapter *adapter) 1556 { 1557 struct device *dev = &adapter->dev; 1558 acpi_status status; 1559 unsigned long long id; 1560 1561 if (dev->of_node) { 1562 id = of_alias_get_id(dev->of_node, "i2c"); 1563 if (id >= 0) { 1564 adapter->nr = id; 1565 return __i2c_add_numbered_adapter(adapter); 1566 } 1567 } else if (dev->parent->fwnode) { > 1568 status = acpi_evaluate_integer(ACPI_HANDLE(dev->parent), 1569 "_UID", NULL, &id); 1570 if (ACPI_SUCCESS(status) && (id >= 0)) { 1571 adapter->nr = id; 1572 return __i2c_add_numbered_adapter(adapter); 1573 } 1574 } 1575 1576 mutex_lock(&core_lock); 1577 id = idr_alloc(&i2c_adapter_idr, adapter, 1578 __i2c_first_dynamic_bus_num, 0, GFP_KERNEL); 1579 mutex_unlock(&core_lock); 1580 if (WARN(id < 0, "couldn't get idr")) 1581 return id; 1582 1583 adapter->nr = id; 1584 1585 return i2c_register_adapter(adapter); 1586 } 1587 EXPORT_SYMBOL(i2c_add_adapter); 1588 -- 0-DAY CI Kernel Test Service https://01.org/lkp