From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DD544E7AD54 for ; Tue, 3 Oct 2023 14:00:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CdvXYNgAVfDsnZG2P4rnrcOleD8L0vEHvtkpqY3Xk0c=; b=jb4JujzlghSV/n 2XHpT7Rb52AKLBSFM/3ZWG4vRSzCUXT6WjVDO3CVyKBns8H4ExBWUMJYqS+YYv+na4xcA6AIGKPet L+WpFj1EgnHSPLDyq73cVDQ8h7R1QU2DjJtqp0Bh7mZrwQ7AUNRpgDeZ700Q3WVwEEay+WGbEUAVt ggi1V4gik5ak05JpbbIKVxV8GjG6ZA5WZykmYc4qKxo6n1lJFSBijUcNWGCgyAuPxACPjGkPQRI6J Yd9dLMvsxhsqEK+CT4Y451/ZowidOVmY9oI3lFaSfj2iPP5usAjeQf+jyBEno+g0MndxOerL8MCeP AwMZlH/jg3ZeIYT4vSpw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qnfxI-00EksD-0a; Tue, 03 Oct 2023 14:00:56 +0000 Received: from mgamail.intel.com ([192.55.52.151]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qnfxE-00Ekrn-2t for linux-i3c@lists.infradead.org; Tue, 03 Oct 2023 14:00:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696341652; x=1727877652; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=s30GRJRYo+hm6YhVGNnw6HtgOobxap3zx2uU/nc+4gs=; b=Q32qK9L7C/WVa8GF6TEqRo96KPt9io2IB1Maq+0L7Eod0SHDoYKeFzCq bzDgPsyYlUCJ4Y8iCMwzlrS3xVhOBQ3QF0tpwI5u79YwVLhXT/fwJ//Zw djPWnxzp7fUS8so00vIxYqZ+Xz9q/bXmR7dWmbX2vM7S6j4DoXZo6Bu0b L7E9WYgGk1sSf4TaV+H2QonY53zsHV0QYBFUpdW5EUJyWe3mGQXt+5LMz EVM8Yb2gokNyM5MmIL8sQlGaJAk84Zwq0Xu15xAjAg3Ks8QZVXAkx3RvG tFvOgKxOBD8E+bt+/sOUCtCP2NRLt/60JTNkUTyW9flTawdkIv1XjT/4A g==; X-IronPort-AV: E=McAfee;i="6600,9927,10852"; a="363143841" X-IronPort-AV: E=Sophos;i="6.03,197,1694761200"; d="scan'208";a="363143841" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2023 07:00:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10852"; a="1082019676" X-IronPort-AV: E=Sophos;i="6.03,197,1694761200"; d="scan'208";a="1082019676" Received: from lkp-server02.sh.intel.com (HELO c3b01524d57c) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 03 Oct 2023 07:00:13 -0700 Received: from kbuild by c3b01524d57c with local (Exim 4.96) (envelope-from ) id 1qnfwZ-0007AW-0c; Tue, 03 Oct 2023 14:00:11 +0000 Date: Tue, 3 Oct 2023 21:59:32 +0800 From: kernel test robot To: Matt Johnston , linux-i3c@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Jakub Kicinski , Paolo Abeni , Eric Dumazet , Jeremy Kerr , Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley Subject: Re: [PATCH net-next v3 3/3] mctp i3c: MCTP I3C driver Message-ID: <202310032142.NaWYwlZc-lkp@intel.com> References: <20231003063624.126723-4-matt@codeconstruct.com.au> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231003063624.126723-4-matt@codeconstruct.com.au> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231003_070052_984149_8510168B X-CRM114-Status: GOOD ( 13.82 ) X-BeenThere: linux-i3c@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-i3c" Errors-To: linux-i3c-bounces+linux-i3c=archiver.kernel.org@lists.infradead.org Hi Matt, kernel test robot noticed the following build errors: [auto build test ERROR on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/Matt-Johnston/dt-bindings-i3c-Add-mctp-controller-property/20231003-144037 base: net-next/main patch link: https://lore.kernel.org/r/20231003063624.126723-4-matt%40codeconstruct.com.au patch subject: [PATCH net-next v3 3/3] mctp i3c: MCTP I3C driver config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20231003/202310032142.NaWYwlZc-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231003/202310032142.NaWYwlZc-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/202310032142.NaWYwlZc-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/net/mctp/mctp-i3c.c: In function 'mctp_i3c_read': >> drivers/net/mctp/mctp-i3c.c:121:9: error: implicit declaration of function 'put_unaligned_be48' [-Werror=implicit-function-declaration] 121 | put_unaligned_be48(mi->pid, ihdr->source); | ^~~~~~~~~~~~~~~~~~ drivers/net/mctp/mctp-i3c.c: In function 'mctp_i3c_xmit': >> drivers/net/mctp/mctp-i3c.c:380:15: error: implicit declaration of function 'get_unaligned_be48'; did you mean 'get_unalign_ctl'? [-Werror=implicit-function-declaration] 380 | pid = get_unaligned_be48(ihdr->dest); | ^~~~~~~~~~~~~~~~~~ | get_unalign_ctl cc1: some warnings being treated as errors vim +/put_unaligned_be48 +121 drivers/net/mctp/mctp-i3c.c 98 99 static int mctp_i3c_read(struct mctp_i3c_device *mi) 100 { 101 struct i3c_priv_xfer xfer = { .rnw = 1, .len = mi->mrl }; 102 struct net_device_stats *stats = &mi->mbus->ndev->stats; 103 struct mctp_i3c_internal_hdr *ihdr = NULL; 104 struct sk_buff *skb = NULL; 105 struct mctp_skb_cb *cb; 106 int net_status, rc; 107 u8 pec, addr; 108 109 skb = netdev_alloc_skb(mi->mbus->ndev, 110 mi->mrl + sizeof(struct mctp_i3c_internal_hdr)); 111 if (!skb) { 112 stats->rx_dropped++; 113 rc = -ENOMEM; 114 goto err; 115 } 116 117 skb->protocol = htons(ETH_P_MCTP); 118 /* Create a header for internal use */ 119 skb_reset_mac_header(skb); 120 ihdr = skb_put(skb, sizeof(struct mctp_i3c_internal_hdr)); > 121 put_unaligned_be48(mi->pid, ihdr->source); 122 put_unaligned_be48(mi->mbus->pid, ihdr->dest); 123 skb_pull(skb, sizeof(struct mctp_i3c_internal_hdr)); 124 125 xfer.data.in = skb_put(skb, mi->mrl); 126 127 rc = i3c_device_do_priv_xfers(mi->i3c, &xfer, 1); 128 if (rc < 0) 129 goto err; 130 131 if (WARN_ON_ONCE(xfer.len > mi->mrl)) { 132 /* Bad i3c bus driver */ 133 rc = -EIO; 134 goto err; 135 } 136 if (xfer.len < MCTP_I3C_MINLEN) { 137 stats->rx_length_errors++; 138 rc = -EIO; 139 goto err; 140 } 141 142 /* check PEC, including address byte */ 143 addr = mi->addr << 1 | 1; 144 pec = i2c_smbus_pec(0, &addr, 1); 145 pec = i2c_smbus_pec(pec, xfer.data.in, xfer.len - 1); 146 if (pec != ((u8 *)xfer.data.in)[xfer.len - 1]) { 147 stats->rx_crc_errors++; 148 rc = -EINVAL; 149 goto err; 150 } 151 152 /* Remove PEC */ 153 skb_trim(skb, xfer.len - 1); 154 155 cb = __mctp_cb(skb); 156 cb->halen = PID_SIZE; 157 put_unaligned_be48(mi->pid, cb->haddr); 158 159 net_status = netif_rx(skb); 160 161 if (net_status == NET_RX_SUCCESS) { 162 stats->rx_packets++; 163 stats->rx_bytes += xfer.len - 1; 164 } else { 165 stats->rx_dropped++; 166 } 167 168 return 0; 169 err: 170 kfree_skb(skb); 171 return rc; 172 } 173 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki -- linux-i3c mailing list linux-i3c@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-i3c