Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1655703rdd; Thu, 11 Jan 2024 05:50:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2yi697xhHjsl6T8dAv7/a7/wK1ceeAW5j22xMm4MGL68O1mjVfl5JR8ZFQhcw+LSoq59i X-Received: by 2002:a19:ae15:0:b0:50e:67c5:9854 with SMTP id f21-20020a19ae15000000b0050e67c59854mr629183lfc.123.1704981042896; Thu, 11 Jan 2024 05:50:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704981042; cv=none; d=google.com; s=arc-20160816; b=v1+Q2iHP28VZjBza4vK1oV+G6Kxsa5duDeLQx9uXsywReUbbks56wvxAxTUTek1Zwk qBj/qmfrb4v8p8PgeGF5qCqave7w2xRCiIl/kZoPctL9oRO/D6rTEPvRN6rfsqF8Y53D jPfxD2LqAMXdLQi7yZtwqMVVcd7qnkNBokS+wxsunuhb2gzUCPCgRftLhqbadCVPjfrf jcrO8qSBjYsbtNL7yh4LzADvC5P0eFcKFtBtnkRH1L3g7/VOahduA4R1iSCHjJo7g5vZ C7d1S1Y6wKulR20lxo7XVQwrYUigPA9mXUBfGmXMg7SEFAQGsSVbftgK3cbInFPMV9EO EkHg== ARC-Message-Signature: i=1; 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=jL962hxtihvalnY75Hk6EL2eieWCN+KXKlwZpu8KZvI=; fh=ob7NfBqvSMEM3SCjgGvT6xRgDuPCgNuZAvk0cnXg61Y=; b=IimvqIQNKSy9AuwRIVR35USv2yxqBzArni+FoJyGz0wY6XDTCiz+4oxne9fX40utlm y1hkw0NzlTUNTcgNOBk9gXtoYDPEpElDpBH0Q753LB+4CNJ5hdr0ta0U2dVb3A2I0fhz W2FLm/jjdvH8uyvNjaywE7pLVMyT5DsM1RsgpEBfUhP+VI2r3KLmi7sx3jCnEdk8aLIo hbvoIrffLKzalxkxCt3Qk5a0mvGNxVW4R0WC/tjDMkAp6y5CRM9tKYTztzbD+/saZbve smVnffVRN1X4ifceAqiakM93aIPcqadq8cuAuRRMujPXzyfcyDcl18dpKzaws5pDVtKu zfag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XlCmgUxy; spf=pass (google.com: domain of linux-kernel+bounces-23680-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23680-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d24-20020a17090648d800b00a2791197268si515172ejt.505.2024.01.11.05.50.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 05:50:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23680-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XlCmgUxy; spf=pass (google.com: domain of linux-kernel+bounces-23680-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23680-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 444DE1F23455 for ; Thu, 11 Jan 2024 13:50:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D00CB3B18A; Thu, 11 Jan 2024 13:50:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="XlCmgUxy" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 6432632C8E; Thu, 11 Jan 2024 13:50:17 +0000 (UTC) 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=1704981017; x=1736517017; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=df3bhwFei4ovFhoesxHUexUNJ8++z5Jxwlx+x83xoIQ=; b=XlCmgUxyV6MhvXdzP36tl35Wb5Tt1MyOJfE5mDi5qccbhFVEEmYiZNlE QZe67pmFuF7BWWsTKdsIyV447fn/xZObIKvE6CIvHttm4XTZOUqJG0M/6 WwF2VAp5xEqrMu02/Uipu00nC5dNbR1zcSrmqxdZezzWR6+4lP242rXIh VFxp2Z18CveAILnGtvvXWngxpZvoAuyMqA1UkHHh4LMliEsKDD2CzblmW recfvAMxozGy5VOFdZ9QSBIGQkg+AohsMkbfBOGJLln7fP4O4ohxXtKbR AQzLKy5VcSr2qIV8SLJXM8OOflLqOUQ3RgPkTjx6uRLbmE377a1hCdNFR Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10950"; a="5929644" X-IronPort-AV: E=Sophos;i="6.04,186,1695711600"; d="scan'208";a="5929644" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2024 05:50:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10950"; a="926018931" X-IronPort-AV: E=Sophos;i="6.04,186,1695711600"; d="scan'208";a="926018931" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by fmsmga001.fm.intel.com with ESMTP; 11 Jan 2024 05:50:11 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rNvRh-0008Jd-2N; Thu, 11 Jan 2024 13:50:09 +0000 Date: Thu, 11 Jan 2024 21:49:22 +0800 From: kernel test robot To: Frank Li , robh@kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, alexandre.belloni@bootlin.com, conor.culhane@silvaco.com, gregkh@linuxfoundation.org, imx@lists.linux.dev, jirislaby@kernel.org, joe@perches.com, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, miquel.raynal@bootlin.com, zbigniew.lukwinski@linux.intel.com, devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, krzysztof.kozlowski@linaro.org Subject: Re: [PATCH v2 4/7] i3c: target: add svc target controller support Message-ID: <202401112149.TbWJpRfM-lkp@intel.com> References: <20240110175221.2335480-5-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: <20240110175221.2335480-5-Frank.Li@nxp.com> Hi Frank, kernel test robot noticed the following build warnings: [auto build test WARNING on tty/tty-testing] [also build test WARNING on tty/tty-next tty/tty-linus robh/for-next linus/master v6.7 next-20240111] [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/20240111-015711 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing patch link: https://lore.kernel.org/r/20240110175221.2335480-5-Frank.Li%40nxp.com patch subject: [PATCH v2 4/7] i3c: target: add svc target controller support config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20240111/202401112149.TbWJpRfM-lkp@intel.com/config) compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240111/202401112149.TbWJpRfM-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/202401112149.TbWJpRfM-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/i3c/target/svc-i3c-target.c:211:40: warning: no previous prototype for function 'svc_i3c_get_features' [-Wmissing-prototypes] 211 | const struct i3c_target_ctrl_features *svc_i3c_get_features(struct i3c_target_ctrl *ctrl) | ^ drivers/i3c/target/svc-i3c-target.c:211:7: note: declare 'static' if the function is not intended to be used outside of this translation unit 211 | const struct i3c_target_ctrl_features *svc_i3c_get_features(struct i3c_target_ctrl *ctrl) | ^ | static >> drivers/i3c/target/svc-i3c-target.c:268:63: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions] 268 | static int svc_i3c_target_queue(struct i3c_request *req, gfp_t) | ^ >> drivers/i3c/target/svc-i3c-target.c:666:5: warning: no previous prototype for function 'svc_i3c_fifo_status' [-Wmissing-prototypes] 666 | int svc_i3c_fifo_status(struct i3c_target_ctrl *ctrl, bool tx) | ^ drivers/i3c/target/svc-i3c-target.c:666:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 666 | int svc_i3c_fifo_status(struct i3c_target_ctrl *ctrl, bool tx) | ^ | static 3 warnings generated. vim +/svc_i3c_get_features +211 drivers/i3c/target/svc-i3c-target.c 210 > 211 const struct i3c_target_ctrl_features *svc_i3c_get_features(struct i3c_target_ctrl *ctrl) 212 { 213 struct svc_i3c_target *svc; 214 215 svc = dev_get_drvdata(&ctrl->dev); 216 217 if (!svc) 218 return NULL; 219 220 return &svc->features; 221 } 222 223 static void svc_i3c_queue_complete(struct svc_i3c_target *svc, struct i3c_request *complete) 224 { 225 unsigned long flags; 226 227 spin_lock_irqsave(&svc->cq_lock, flags); 228 list_add_tail(&complete->list, &svc->cq); 229 spin_unlock_irqrestore(&svc->cq_lock, flags); 230 queue_work(svc->workqueue, &svc->work); 231 } 232 233 static void svc_i3c_fill_txfifo(struct svc_i3c_target *svc) 234 { 235 struct i3c_request *req, *complete = NULL; 236 unsigned long flags; 237 int val; 238 239 spin_lock_irqsave(&svc->txq_lock, flags); 240 while ((!!(req = list_first_entry_or_null(&svc->txq, struct i3c_request, list))) && 241 !((readl_relaxed(svc->regs + I3C_SDATACTRL) & I3C_SDATACTRL_TXFULL_MASK))) { 242 while (!(readl_relaxed(svc->regs + I3C_SDATACTRL) 243 & I3C_SDATACTRL_TXFULL_MASK)) { 244 val = *(u8 *)(req->buf + req->actual); 245 246 if (req->actual + 1 == req->length) 247 writel_relaxed(val, svc->regs + I3C_SWDATAE); 248 else 249 writel_relaxed(val, svc->regs + I3C_SWDATAB); 250 251 req->actual++; 252 253 if (req->actual == req->length) { 254 list_del(&req->list); 255 complete = req; 256 spin_unlock_irqrestore(&svc->txq_lock, flags); 257 258 svc_i3c_queue_complete(svc, complete); 259 260 spin_lock_irqsave(&svc->txq_lock, flags); 261 break; 262 } 263 } 264 } 265 spin_unlock_irqrestore(&svc->txq_lock, flags); 266 } 267 > 268 static int svc_i3c_target_queue(struct i3c_request *req, gfp_t) 269 { 270 struct svc_i3c_target *svc; 271 struct list_head *q; 272 unsigned long flags; 273 spinlock_t *lk; 274 275 svc = dev_get_drvdata(&req->ctrl->dev); 276 if (!svc) 277 return -EINVAL; 278 279 if (req->tx) { 280 q = &svc->txq; 281 lk = &svc->txq_lock; 282 } else { 283 q = &svc->rxq; 284 lk = &svc->rxq_lock; 285 } 286 287 spin_lock_irqsave(lk, flags); 288 list_add_tail(&req->list, q); 289 spin_unlock_irqrestore(lk, flags); 290 291 if (req->tx) 292 svc_i3c_fill_txfifo(svc); 293 294 if (req->tx) 295 writel_relaxed(I3C_SINT_TXSEND, svc->regs + I3C_SINTSET); 296 else 297 writel_relaxed(I3C_SINT_RXPEND, svc->regs + I3C_SINTSET); 298 299 return 0; 300 } 301 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki