From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 84652303A2D; Wed, 22 Oct 2025 21:59:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761170366; cv=none; b=HrfCbK/k0dZbX+lDQMgLwp/E2sSs84xHNiu7q5z/32pxlRmWm6Sos3zr67ODAEzKBt96KDFnykvHz39P5woanRMIQGAqtiP13FGRAiVT0hKcKrAXMLAnvynrqs2ZvuYRDVcOpuP+MUHChInNz96JgKzIrr3GQlka0rGW70PNBhA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761170366; c=relaxed/simple; bh=YFd27wXix1IAPhDgICO/LKl4LrK5zPB9xb0D7M0YWlA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rFT2eJaxhFcWFMjFM6MDeOlVmTJY1tqY8aAlyz6U+JA/EPiKeupfX5GohhLPKihSBafdRxjqR4dsbu+Yu7nohNE/1L4tKtWG+ZwoS2Z3IpM3fdRcy6wWoRRUYStaPCXSG3G7IGIYAisn0ZbfCT9m5HxMX/7NcHVH9c3Rxq5D008= 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=UsTWniNa; arc=none smtp.client-ip=192.198.163.10 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="UsTWniNa" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1761170365; x=1792706365; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=YFd27wXix1IAPhDgICO/LKl4LrK5zPB9xb0D7M0YWlA=; b=UsTWniNaxZ26CAs694Mqy7v0lpvGqLtfU9JTUgsn5lKDhPsvaVWh898+ Jbd96g6erKKqGZPujQ8LSz7eEsTeZSNPruO2nAx8I/CuoMVp9VMVDxVkf 650i6fUnJ/hH/O4+Mmhv9FLwu8HzxfYIXT0MbmkE0kEk5uoIPgpTw6ANo QGuRoT+bIYLxcHuMWEEzscasrT2uha5VmYtdKhm1BrBBPMz9zKwJQJLEh Ixvhjpyp1HzpUuGqL5w25H9jQrOY43eCoE3eJf999sON5YLPr7gbX16Ud i7jSxVmTTLpivv+PRJpylMZoxGbnR5Wn6uJGvzDgViw0xPJuJ/wbutqG/ g==; X-CSE-ConnectionGUID: ppwHXru+SvK35Yao5YeIrg== X-CSE-MsgGUID: YBXsQYO8TNKeLnKCrdL6ZQ== X-IronPort-AV: E=McAfee;i="6800,10657,11586"; a="74678304" X-IronPort-AV: E=Sophos;i="6.19,248,1754982000"; d="scan'208";a="74678304" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2025 14:59:24 -0700 X-CSE-ConnectionGUID: AllZI4W6S6Cnl2uyz4ZxwQ== X-CSE-MsgGUID: QEx1E6IIRSOFqgSfZybAJw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,248,1754982000"; d="scan'208";a="189258251" Received: from lkp-server02.sh.intel.com (HELO 66d7546c76b2) ([10.239.97.151]) by fmviesa004.fm.intel.com with ESMTP; 22 Oct 2025 14:59:20 -0700 Received: from kbuild by 66d7546c76b2 with local (Exim 4.96) (envelope-from ) id 1vBgrV-000Ckj-2p; Wed, 22 Oct 2025 21:59:17 +0000 Date: Thu, 23 Oct 2025 05:59:03 +0800 From: kernel test robot To: Yingchao Deng , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Jonathan Corbet , Alexander Shishkin , Maxime Coquelin , Alexandre Torgue Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Yingchao Deng , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, quic_yingdeng@quicinc.com, Tingwei Zhang , Yuanfang Zhang , Jinlong Mao Subject: Re: [PATCH v3] stm: class: Add MIPI OST protocol support Message-ID: <202510230738.OD0OO0n6-lkp@intel.com> References: <20251022071834.1658684-1-yingchao.deng@oss.qualcomm.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: <20251022071834.1658684-1-yingchao.deng@oss.qualcomm.com> Hi Yingchao, kernel test robot noticed the following build warnings: [auto build test WARNING on atorgue-stm32/stm32-next] [also build test WARNING on linus/master v6.18-rc2 next-20251022] [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/Yingchao-Deng/stm-class-Add-MIPI-OST-protocol-support/20251022-152642 base: https://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32.git stm32-next patch link: https://lore.kernel.org/r/20251022071834.1658684-1-yingchao.deng%40oss.qualcomm.com patch subject: [PATCH v3] stm: class: Add MIPI OST protocol support config: x86_64-randconfig-071-20251023 (https://download.01.org/0day-ci/archive/20251023/202510230738.OD0OO0n6-lkp@intel.com/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251023/202510230738.OD0OO0n6-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/202510230738.OD0OO0n6-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/hwtracing/stm/p_ost.c:172:6: warning: unused variable 'i' [-Wunused-variable] 172 | int i; | ^ 1 warning generated. vim +/i +172 drivers/hwtracing/stm/p_ost.c 154 155 static ssize_t 156 notrace ost_write(struct stm_data *data, struct stm_output *output, 157 unsigned int chan, const char *buf, size_t count, 158 struct stm_source_data *source) 159 { 160 unsigned int c = output->channel + chan; 161 unsigned int m = output->master; 162 const unsigned char nil = 0; 163 u32 header = DATA_HEADER; 164 struct trc_hdr { 165 u16 version; 166 u16 magic; 167 u32 cpu; 168 u64 timestamp; 169 u64 tgid; 170 } hdr; 171 ssize_t sz; > 172 int i; 173 struct ost_output *op = output->pdrv_private; 174 175 /* 176 * Identify the source by entity type. 177 * If entity type is not set, return error value. 178 */ 179 if (op->node.entity_type) 180 header |= ost_entity_value[op->node.entity_type]; 181 else 182 return -EINVAL; 183 184 /* 185 * STP framing rules for OST frames: 186 * * the first packet of the OST frame is marked; 187 * * the last packet is a FLAG with timestamped tag. 188 */ 189 /* Message layout: HEADER / DATA / TAIL */ 190 /* HEADER */ 191 sz = data->packet(data, m, c, STP_PACKET_DATA, STP_PACKET_MARKED, 192 4, (u8 *)&header); 193 if (sz <= 0) 194 return sz; 195 196 /* DATA */ 197 hdr.version = STM_MAKE_VERSION(0, 3); 198 hdr.magic = STM_HEADER_MAGIC; 199 hdr.cpu = raw_smp_processor_id(); 200 hdr.timestamp = sched_clock(); 201 hdr.tgid = task_tgid_nr(current); 202 sz = stm_data_write(data, m, c, false, &hdr, sizeof(hdr)); 203 if (sz <= 0) 204 return sz; 205 206 sz = stm_data_write(data, m, c, false, buf, count); 207 208 /* TAIL */ 209 if (sz > 0) 210 data->packet(data, m, c, STP_PACKET_FLAG, 211 STP_PACKET_TIMESTAMPED, 0, &nil); 212 213 return sz; 214 } 215 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki