From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 435A912E1CD; Sat, 5 Oct 2024 10:01:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728122470; cv=none; b=nr6/8yK13Rd6QByL8qWZmbpwCvAUXJK5q8mWzhKNuKWU7ojMX3ZoTHiSgc1173AGf490t76Df3Q4tTDJguUWCEcxuzbVAzNRELKkksBXVlq6b4fxjZepGGpWtX0Drts3MLR3ZyIEHxxm4QcIIuN3FSH1D2UPDhd7o1O9gOqQqqg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728122470; c=relaxed/simple; bh=AS66JIPtXx2sZQ/smwiZJMTI3t0JMMag9/KeDzC1/38=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cb4qEtH2IuV1pdqMe6itXOkeG5ulbMts/rqa+9DrVZc2oYAb9HXkCphStg5bDviIp/h2xV+ranAcJTr/bK3wvutd2b8+zUAGqzAzKs0iSq6lqwgSoo6tedv66MLXrDzvDH5CouR6LXI8HBHp+FcLwg4lc8O0fzWjb2NrWECeHdE= 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=eTREWfp8; arc=none smtp.client-ip=198.175.65.16 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="eTREWfp8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728122470; x=1759658470; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=AS66JIPtXx2sZQ/smwiZJMTI3t0JMMag9/KeDzC1/38=; b=eTREWfp8ffoJalNeTcPi7N+Vtc7naPckGIlksC8ce0GUaOu8VeDsEbS3 c7Dt3Zr3TdR+hvEKXzZK7L7FA5NGGLacqc1pvW+dCPrcvO//skOnOktil 7pe61WG/4o7qmjMkqptcdR0Y0RTYHZvs+uFqMdMPfMI0UfjwOPVM185dX vbXDVFJ+x8gDzvNzGylNIdlAwP/U8vIvzkWG4jicGcqW4tmFmKjTgclhu ugB5LxPwtYDT9Vmh2ng72J2tt/wpwOtxyk0fk/eC9uvrmTVgFS2akSIPv n4uxqNf4XUAhG1H3q0tTuNpA29lwSOg88fJNjWbb21nWrfz1PK9NYftJT Q==; X-CSE-ConnectionGUID: y8Ae4vbfTV2owCj1WHS8kg== X-CSE-MsgGUID: KA9Mv/Q2RHWi801Q0n5O0A== X-IronPort-AV: E=McAfee;i="6700,10204,11215"; a="27426130" X-IronPort-AV: E=Sophos;i="6.11,180,1725346800"; d="scan'208";a="27426130" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2024 03:01:10 -0700 X-CSE-ConnectionGUID: qc9AevAoQe6hbVVwa7kNtw== X-CSE-MsgGUID: gqkgz86BSNeOu8NTBwAbZw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,180,1725346800"; d="scan'208";a="105707403" Received: from lkp-server01.sh.intel.com (HELO a48cf1aa22e8) ([10.239.97.150]) by fmviesa001.fm.intel.com with ESMTP; 05 Oct 2024 03:01:05 -0700 Received: from kbuild by a48cf1aa22e8 with local (Exim 4.96) (envelope-from ) id 1sx1ax-0002ps-0H; Sat, 05 Oct 2024 10:01:03 +0000 Date: Sat, 5 Oct 2024 18:00:52 +0800 From: kernel test robot To: Ryan Chen , brendan.higgins@linux.dev, benh@kernel.crashing.org, joel@jms.id.au, andi.shyti@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andrew@codeconstruct.com.au, p.zabel@pengutronix.de, andriy.shevchenko@linux.intel.com, linux-i2c@vger.kernel.org, openbmc@lists.ozlabs.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev Subject: Re: [PATCH v14 2/3] i2c: aspeed: support AST2600 i2c new register mode driver Message-ID: <202410051759.bRIS387l-lkp@intel.com> References: <20241002070213.1165263-3-ryan_chen@aspeedtech.com> Precedence: bulk X-Mailing-List: linux-i2c@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: <20241002070213.1165263-3-ryan_chen@aspeedtech.com> Hi Ryan, kernel test robot noticed the following build errors: [auto build test ERROR on v6.11] [cannot apply to andi-shyti/i2c/i2c-host v6.12-rc1 linus/master next-20241004] [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/Ryan-Chen/dt-bindings-i2c-aspeed-support-for-AST2600-i2cv2/20241002-150410 base: v6.11 patch link: https://lore.kernel.org/r/20241002070213.1165263-3-ryan_chen%40aspeedtech.com patch subject: [PATCH v14 2/3] i2c: aspeed: support AST2600 i2c new register mode driver config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20241005/202410051759.bRIS387l-lkp@intel.com/config) compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241005/202410051759.bRIS387l-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/202410051759.bRIS387l-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/i2c/busses/i2c-ast2600.c:437:6: error: call to undeclared function 'get_unaligned_le16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 437 | get_unaligned_le16(&msg->buf[i2c_bus->master_xfer_cnt + i]); | ^ >> drivers/i2c/busses/i2c-ast2600.c:441:6: error: call to undeclared function 'get_unaligned_le24'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 441 | get_unaligned_le24(&msg->buf[i2c_bus->master_xfer_cnt + i]); | ^ >> drivers/i2c/busses/i2c-ast2600.c:445:6: error: call to undeclared function 'get_unaligned_le32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 445 | get_unaligned_le32(&msg->buf[i2c_bus->master_xfer_cnt + i]); | ^ 3 errors generated. vim +/get_unaligned_le16 +437 drivers/i2c/busses/i2c-ast2600.c 405 406 static int ast2600_i2c_setup_buff_tx(u32 cmd, struct ast2600_i2c_bus *i2c_bus) 407 { 408 struct i2c_msg *msg = &i2c_bus->msgs[i2c_bus->msgs_index]; 409 u32 wbuf_dword; 410 int xfer_len; 411 int i; 412 413 cmd |= AST2600_I2CM_PKT_EN; 414 xfer_len = msg->len - i2c_bus->master_xfer_cnt; 415 if (xfer_len > i2c_bus->buf_size) 416 xfer_len = i2c_bus->buf_size; 417 else if (i2c_bus->msgs_index + 1 == i2c_bus->msgs_count) 418 cmd |= AST2600_I2CM_STOP_CMD; 419 420 if (cmd & AST2600_I2CM_START_CMD) 421 cmd |= AST2600_I2CM_PKT_ADDR(msg->addr); 422 423 if (xfer_len) { 424 cmd |= AST2600_I2CM_TX_BUFF_EN | AST2600_I2CM_TX_CMD; 425 /* 426 * The controller's buffer register supports dword writes only. 427 * Therefore, write dwords to the buffer register in a 4-byte aligned, 428 * and write the remaining unaligned data at the end. 429 */ 430 for (i = 0; i < xfer_len; i += 4) { 431 switch (min(xfer_len - i, 4) % 4) { 432 case 1: 433 wbuf_dword = msg->buf[i2c_bus->master_xfer_cnt + i]; 434 break; 435 case 2: 436 wbuf_dword = > 437 get_unaligned_le16(&msg->buf[i2c_bus->master_xfer_cnt + i]); 438 break; 439 case 3: 440 wbuf_dword = > 441 get_unaligned_le24(&msg->buf[i2c_bus->master_xfer_cnt + i]); 442 break; 443 default: 444 wbuf_dword = > 445 get_unaligned_le32(&msg->buf[i2c_bus->master_xfer_cnt + i]); 446 break; 447 } 448 writel(wbuf_dword, i2c_bus->buf_base + i); 449 } 450 writel(AST2600_I2CC_SET_TX_BUF_LEN(xfer_len), 451 i2c_bus->reg_base + AST2600_I2CC_BUFF_CTRL); 452 } 453 454 writel(cmd, i2c_bus->reg_base + AST2600_I2CM_CMD_STS); 455 456 return 0; 457 } 458 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki