Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp981178rdb; Fri, 2 Feb 2024 09:37:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IHk2XHNTNgYVcKrsi3DGtJuSRq78IQTU0nSFglws4zibdfvJHYiJ1DdCix7xR1Lf9m3OTYN X-Received: by 2002:a05:6402:12ca:b0:55f:31f7:4279 with SMTP id k10-20020a05640212ca00b0055f31f74279mr275121edx.12.1706895438385; Fri, 02 Feb 2024 09:37:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706895438; cv=pass; d=google.com; s=arc-20160816; b=rBp2OH3jVHtJ6pkvGktKBxY5lGeLzAB9ZYkezi+xfcPV7k/4FYpj0xzLNkiMJH/Wkl 4zwmick9UV9Rwn1AUUbp91nBBCyKWHGKCu4zplz7EpcMu3pL26knq0dcFLADh9WFVqt/ uYyAEywAbDmtiP8oEYr4gdWwwowA+S9MpP6L8TDANMnkh+112L3S+nBj1kekA5VB7CjR uLSToZMXiznSV7wA6GKat2nLXOTOvmYJmfqTYjd5fWogVDDhLUdId+8U0zyTn4bK4y+X C9chqAAK9lrQDWSp9vOcnQoKlLhsbJ9Je9xjEEVz16FZ03JSOItAASYZewzhJB5BwGNw nF8A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NQtsIlD1+LSAFOJOWBBCB1DrK7VGQgaDi1JFT9jx8Bs=; fh=eN+t/5tpx1Tq05PdqfRnb2PVm766CMwNJDqeS9MEX6c=; b=kVl5nIDYJoj3l3KdxepXcdPuSv5e719QKJdW3Iv8wI2PSeDj/ZT8DMnF8fsvz8jSBy xRZw64FnLzaTXa7xAD+zhlt9MTL0HpnQgGKy3vyHCHJDyVW+s/KIk+vJCGNspNT5Ai/a nZX8pAKlxPgtFTYJdpSclQllKcVYmJ+XWNvqX2MlJMFNmNNVUbErn8Mus53dInTsTzZG fDb6ET0pJncO07FtncQj4ZwlVZXmGRErzl1E6mRCNF4vfrETb+Tt5ECHm7GdY8PSlL9z 6taULJTB1vHO2IyHyvoyvUMkuqv8phmlaBTlWZPJcuGDnlz6Z2iogGVVjQRn74Z1M4+1 Jinw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="VffX/ZRJ"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-50235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCX0QnR+jcVut0e5HBSva9zoMN5S0ICF7GIB+/yqfMf+eqZ3mRrypfKCwTYtongEakEpfJs6mECLh75tRXUbw8vGuKVUJsOVdDgY2SiuTw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a16-20020aa7cf10000000b00559b89b2fe5si988573edy.564.2024.02.02.09.37.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 09:37:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="VffX/ZRJ"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-50235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5097A1F2D31E for ; Fri, 2 Feb 2024 17:30:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 550C214A4D7; Fri, 2 Feb 2024 17:30:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="VffX/ZRJ" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) (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 6761E14A4DB; Fri, 2 Feb 2024 17:30:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.55.52.88 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706895033; cv=none; b=ag+0b4kfWZp4cdfRCRKGdnvWm8jrcLTNA8hzADPP7qIXXwVzM2ISIL4vH6I8ROE6r+z5nuoUYtYS6pwmvSPMa0EIb/ipSvbic8hS1qAec9t8eFC0diareQoZLAbLP/cYGkxoswOjZYJzw6CUvey9ZzuHZDhvWnJGvQ79Ok7SuLw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706895033; c=relaxed/simple; bh=xVKQWBX8NhZBQTbsM4raS0q5/TbgyghNBv1ox3T5rSo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=slGRI7KEbQEwlT/liWp/BAFngLRZrvT7ZGiYF2NLmAT4/pOTAMEYD6c3crA0TDFBZQmjz3qNmXbE0/+M1JdI1Q4ivbAUnaHSjVt9AJFfM0eq3yTCU2jzYPNfOOqAuqq8gYd5uwTYWNGnFl2alD7EFd4si4NP821kdQdWEA+zwi4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=VffX/ZRJ; arc=none smtp.client-ip=192.55.52.88 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706895030; x=1738431030; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xVKQWBX8NhZBQTbsM4raS0q5/TbgyghNBv1ox3T5rSo=; b=VffX/ZRJ5FlWbzsp/REWCMkceWNwhzyy4wpUUDjJnRsjykHrQaYG2/fh TU+cR2NrV4Xzb1whQzv7QlNXfe30ADeQn/TPLNBkSqhxzStcaoBIuwNDd k2+lTJkoZGm+MJ63NIOyRT18b+2n1HTmrjDwwul2GcaAFgdN7xlyCMKAT BgnrczRNPXDYkCeF17Bv21YfF0vBldTn00X2+2Zego3lbTC7HDA9oivow yAx/Rn5uwaO4uF1AhlhMQMBL87V3NDGX2id3Tn4Y11mod8/20vxX4G4kA mWBK+5Gx4P8l7NYVNjpAky59vzeWQNbMeKWkWgITcpyC++1Iz27P89S7p g==; X-IronPort-AV: E=McAfee;i="6600,9927,10971"; a="435341921" X-IronPort-AV: E=Sophos;i="6.05,238,1701158400"; d="scan'208";a="435341921" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2024 09:30:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,238,1701158400"; d="scan'208";a="127617" Received: from lkp-server02.sh.intel.com (HELO 59f4f4cd5935) ([10.239.97.151]) by orviesa009.jf.intel.com with ESMTP; 02 Feb 2024 09:30:24 -0800 Received: from kbuild by 59f4f4cd5935 with local (Exim 4.96) (envelope-from ) id 1rVxMq-00046g-2c; Fri, 02 Feb 2024 17:30:21 +0000 Date: Sat, 3 Feb 2024 01:29:51 +0800 From: kernel test robot To: Frank Li , ilpo.jarvinen@linux.intel.com Cc: oe-kbuild-all@lists.linux.dev, Frank.Li@nxp.com, alexandre.belloni@bootlin.com, conor.culhane@silvaco.com, devicetree@vger.kernel.org, gregkh@linuxfoundation.org, imx@lists.linux.dev, jirislaby@kernel.org, joe@perches.com, krzysztof.kozlowski+dt@linaro.org, krzysztof.kozlowski@linaro.org, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, miquel.raynal@bootlin.com, robh@kernel.org, zbigniew.lukwinski@linux.intel.com Subject: Re: [PATCH v5 1/8] i3c: add target mode support Message-ID: <202402030100.hmViPmOK-lkp@intel.com> References: <20240129195321.229867-2-Frank.Li@nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240129195321.229867-2-Frank.Li@nxp.com> Hi Frank, kernel test robot noticed the following build errors: [auto build test ERROR on tty/tty-testing] [also build test ERROR on tty/tty-next tty/tty-linus robh/for-next linus/master v6.8-rc2 next-20240202] [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/Frank-Li/i3c-add-target-mode-support/20240130-035826 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing patch link: https://lore.kernel.org/r/20240129195321.229867-2-Frank.Li%40nxp.com patch subject: [PATCH v5 1/8] i3c: add target mode support config: x86_64-randconfig-104-20240202 (https://download.01.org/0day-ci/archive/20240203/202402030100.hmViPmOK-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240203/202402030100.hmViPmOK-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202402030100.hmViPmOK-lkp@intel.com/ All errors (new ones prefixed by >>): ld: drivers/i3c/target.o: in function `i3c_target_ctrl_destroy': >> drivers/i3c/target.c:182: undefined reference to `i3c_target_cfs_remove_ctrl_group' ld: drivers/i3c/target.o: in function `__i3c_target_func_register_driver': >> drivers/i3c/target.c:406: undefined reference to `i3c_target_cfs_add_func_group' ld: drivers/i3c/target.o: in function `__i3c_target_ctrl_create': >> drivers/i3c/target.c:141: undefined reference to `i3c_target_cfs_add_ctrl_group' ld: drivers/i3c/target.o: in function `i3c_target_ctrl_destroy': >> drivers/i3c/target.c:182: undefined reference to `i3c_target_cfs_remove_ctrl_group' vim +182 drivers/i3c/target.c 104 105 /** 106 * __i3c_target_ctrl_create() - create a new target controller device 107 * @dev: device that is creating the new target controller 108 * @ops: function pointers for performing target controller operations 109 * @owner: the owner of the module that creates the target controller device 110 * 111 * Return: Pointer to struct i3c_target_ctrl 112 */ 113 struct i3c_target_ctrl * 114 __i3c_target_ctrl_create(struct device *dev, const struct i3c_target_ctrl_ops *ops, 115 struct module *owner) 116 { 117 struct i3c_target_ctrl *ctrl; 118 int ret; 119 120 if (WARN_ON(!dev)) 121 return ERR_PTR(-EINVAL); 122 123 ctrl = kzalloc(sizeof(*ctrl), GFP_KERNEL); 124 if (!ctrl) 125 return ERR_PTR(-ENOMEM); 126 127 device_initialize(&ctrl->dev); 128 ctrl->dev.class = i3c_target_ctrl_class; 129 ctrl->dev.parent = dev; 130 ctrl->dev.release = i3c_target_ctrl_release; 131 ctrl->ops = ops; 132 133 ret = dev_set_name(&ctrl->dev, "%s", dev_name(dev)); 134 if (ret) 135 goto put_dev; 136 137 ret = device_add(&ctrl->dev); 138 if (ret) 139 goto put_dev; 140 > 141 ctrl->group = i3c_target_cfs_add_ctrl_group(ctrl); 142 if (!ctrl->group) 143 goto put_dev; 144 145 return ctrl; 146 147 put_dev: 148 put_device(&ctrl->dev); 149 kfree(ctrl); 150 151 return ERR_PTR(ret); 152 } 153 EXPORT_SYMBOL_GPL(__i3c_target_ctrl_create); 154 155 /** 156 * devm_i3c_target_ctrl_destroy() - destroy the target controller device 157 * @dev: device that hat has to be destroy 158 * @ctrl: the target controller device that has to be destroy 159 * 160 * Invoke to create a new target controller device and add it to i3c_target class. While at that, it 161 * also associates the device with the i3c_target using devres. On driver detach, release function 162 * is invoked on the devres data, then devres data is freed. 163 */ 164 void devm_i3c_target_ctrl_destroy(struct device *dev, struct i3c_target_ctrl *ctrl) 165 { 166 int r; 167 168 r = devres_destroy(dev, devm_i3c_target_ctrl_release, devm_i3c_target_ctrl_match, 169 ctrl); 170 dev_WARN_ONCE(dev, r, "couldn't find I3C controller resource\n"); 171 } 172 EXPORT_SYMBOL_GPL(devm_i3c_target_ctrl_destroy); 173 174 /** 175 * i3c_target_ctrl_destroy() - destroy the target controller device 176 * @ctrl: the target controller device that has to be destroyed 177 * 178 * Invoke to destroy the I3C target device 179 */ 180 void i3c_target_ctrl_destroy(struct i3c_target_ctrl *ctrl) 181 { > 182 i3c_target_cfs_remove_ctrl_group(ctrl->group); 183 device_unregister(&ctrl->dev); 184 } 185 EXPORT_SYMBOL_GPL(i3c_target_ctrl_destroy); 186 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki