Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3755709rdh; Fri, 29 Sep 2023 01:03:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFc1W6NAAHKcEt4fKgUf0m+H20IAED7AF/T7Vz+4bUlZVEpLS360HEXYrh4J4MkPx5NXb2Q X-Received: by 2002:a05:6a00:2da4:b0:68e:3eab:9e18 with SMTP id fb36-20020a056a002da400b0068e3eab9e18mr3615792pfb.12.1695974596253; Fri, 29 Sep 2023 01:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695974596; cv=none; d=google.com; s=arc-20160816; b=b6LRo0Arg09WwZZ5ZQc4fqVTsRhI7CCmTi3ozamqy6F9gbWLbr2MMf1rxOIsdAWrns RhODruwxBNF/7xy/c0iiImLOlYZ49LumkExXdAVusKwPriyeby9HGtjte3z3h7UPgD7b c+qUGBtpesopLumqh3cYExEW1HJlcvTQ/z7XpDTjAr0IoNCCuSLE8lhexjJlaxhDz6/D gLN+VYhY1YncSK61GBPKmFXaJPX7O2ED2SiviO6cPNjmJ5y29hS43gEyxxcxME+EUMKg CWQXrYK4V2B7TzqQf45bT4QpGfr62SVTJtT0wMPdc2qQoqqQySBhd2M89Rj3jwCzSvx6 4kUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IZY7Y3G20w3U3mYM+XnyJTyHhnJpojVlPrqGoVgZm/g=; fh=SV9Hi5SV4m/4N2+109HmukQWDQenMyMML42XEoS0hvI=; b=RLUqQ/4qBnBRM34U7jL+vYnSbKk88pQ0JeLxMsOQjIhuOlR+opm8vKqPRJRqMlxqA8 GSsop2DZVLjLIx0dvpHiGkwgSLeqOdeZP1AK3vTKE5lKfNHFSzrn68+xpGx0vLmKMYfu BXrTU2aVL2KQZART99ykk9QzZe2GN0XnosaEjhnSU81h5ePs8yKrY6KM3bd9Ad7FnXdq Eimv6DotYxlTRrrlgh1n8RcD+ByYneb3Y1CzuQoWv1H4x1jyRcDAXxPLlPNI5Snj2lwW 0YJW7okmkFtW20zYLVKJXxN87iCsNLLNwHt7+ltrf/Fvx/x2K7uTnHw0GsBcsB3KZVzG 8bEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nE1dpNhh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id f19-20020a056a0022d300b00691016ba9bcsi22236958pfj.14.2023.09.29.01.03.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 01:03:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nE1dpNhh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 1C63684A370F; Thu, 28 Sep 2023 15:59:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231535AbjI1W6r (ORCPT + 99 others); Thu, 28 Sep 2023 18:58:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230246AbjI1W6r (ORCPT ); Thu, 28 Sep 2023 18:58:47 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8299D194; Thu, 28 Sep 2023 15:58:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695941925; x=1727477925; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=UbGttFfuP6lw+hHb/xkwIGlEdNBxv5J2I9w5oq0PHfc=; b=nE1dpNhhi5mFncFgCz3i1AUcPk1BaFKvHTQQ1qAP8kj/pxQJDtvey5fv si4XbWjnQcHcrtKa1ACAzXLGxFkbIKwunbl0CznY3pFrsbBViBPzWY+vz M47ZKIls4l9K6D7n2vsw5ox1o31KcVt8tU4V99q9L8hkEi+popKtPAmwo vHvpd8Yp1QLYP+Xkzs/f9D0ocdBUpXzjemi3zzKjb7/o3QMnDp3lFiXUq YyRjqLPsb2+OJt+hYthZLcBb00EEtZWayJHKtx5s3SieVgM0wEw/p+81D 5d030VTGMjboCEOjRoVRxYDKJNdH9ZkQVRGgesDPg5ieI9lFJgFqvA8Ze w==; X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="362443605" X-IronPort-AV: E=Sophos;i="6.03,185,1694761200"; d="scan'208";a="362443605" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2023 15:58:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="923423965" X-IronPort-AV: E=Sophos;i="6.03,185,1694761200"; d="scan'208";a="923423965" Received: from lkp-server02.sh.intel.com (HELO c3b01524d57c) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 28 Sep 2023 15:58:38 -0700 Received: from kbuild by c3b01524d57c with local (Exim 4.96) (envelope-from ) id 1qlzxs-00026Y-0x; Thu, 28 Sep 2023 22:58:36 +0000 Date: Fri, 29 Sep 2023 06:58:15 +0800 From: kernel test robot To: Konstantin Aladyshev Cc: oe-kbuild-all@lists.linux.dev, minyard@acm.org, joel@jms.id.au, andrew@aj.id.au, avifishman70@gmail.com, tmaimon77@gmail.com, tali.perry1@gmail.com, venture@google.com, yuenn@google.com, benjaminfair@google.com, aladyshev22@gmail.com, jk@codeconstruct.com.au, matt@codeconstruct.com.au, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, openipmi-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, netdev@vger.kernel.org Subject: Re: [PATCH 3/3] mctp: Add MCTP-over-KCS transport binding Message-ID: <202309290613.qxRTI9f7-lkp@intel.com> References: <20230928123009.2913-4-aladyshev22@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230928123009.2913-4-aladyshev22@gmail.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 28 Sep 2023 15:59:14 -0700 (PDT) Hi Konstantin, kernel test robot noticed the following build warnings: [auto build test WARNING on cminyard-ipmi/for-next] [also build test WARNING on linus/master v6.6-rc3 next-20230928] [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/Konstantin-Aladyshev/ipmi-Move-KCS-headers-to-common-include-folder/20230928-203248 base: https://github.com/cminyard/linux-ipmi for-next patch link: https://lore.kernel.org/r/20230928123009.2913-4-aladyshev22%40gmail.com patch subject: [PATCH 3/3] mctp: Add MCTP-over-KCS transport binding config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20230929/202309290613.qxRTI9f7-lkp@intel.com/config) compiler: sparc64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230929/202309290613.qxRTI9f7-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/202309290613.qxRTI9f7-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/device.h:15, from include/linux/dma-mapping.h:8, from include/linux/skbuff.h:28, from include/linux/if_arp.h:22, from drivers/net/mctp/mctp-kcs.c:16: drivers/net/mctp/mctp-kcs.c: In function 'mctp_kcs_validate_data': >> drivers/net/mctp/mctp-kcs.c:121:25: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 121 | "%s: KCS binding header error! len = 0x%02x, but should be 0x%02x", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:144:56: note: in expansion of macro 'dev_fmt' 144 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/net/mctp/mctp-kcs.c:120:17: note: in expansion of macro 'dev_err' 120 | dev_err(mkcs->client.dev->dev, | ^~~~~~~ drivers/net/mctp/mctp-kcs.c:121:89: note: format string is defined here 121 | "%s: KCS binding header error! len = 0x%02x, but should be 0x%02x", | ~~~^ | | | unsigned int | %02lx vim +121 drivers/net/mctp/mctp-kcs.c 95 96 static int mctp_kcs_validate_data(struct mctp_kcs *mkcs, 97 struct mctp_kcs_header *hdr, int len) 98 { 99 struct net_device *ndev = mkcs->netdev; 100 struct mctp_kcs_trailer *tlr; 101 u8 pec; 102 103 if (hdr->netfn_lun != MCTP_KCS_NETFN_LUN) { 104 dev_err(mkcs->client.dev->dev, 105 "%s: KCS binding header error! netfn_lun = 0x%02x, but should be 0x%02x", 106 __func__, hdr->netfn_lun, MCTP_KCS_NETFN_LUN); 107 ndev->stats.rx_dropped++; 108 return -EINVAL; 109 } 110 if (hdr->defining_body != DEFINING_BODY_DMTF_PRE_OS_WORKING_GROUP) { 111 dev_err(mkcs->client.dev->dev, 112 "%s: KCS binding header error! defining_body = 0x%02x, but should be 0x%02x", 113 __func__, hdr->defining_body, 114 DEFINING_BODY_DMTF_PRE_OS_WORKING_GROUP); 115 ndev->stats.rx_dropped++; 116 return -EINVAL; 117 } 118 if (hdr->len != (len - sizeof(struct mctp_kcs_header) - 119 sizeof(struct mctp_kcs_trailer))) { 120 dev_err(mkcs->client.dev->dev, > 121 "%s: KCS binding header error! len = 0x%02x, but should be 0x%02x", 122 __func__, hdr->len, 123 (len - sizeof(struct mctp_kcs_header) - 124 sizeof(struct mctp_kcs_trailer))); 125 ndev->stats.rx_length_errors++; 126 return -EINVAL; 127 } 128 129 pec = generate_pec((u8 *)(hdr + 1), hdr->len); 130 tlr = (struct mctp_kcs_trailer *)((u8 *)(hdr + 1) + hdr->len); 131 if (pec != tlr->pec) { 132 dev_err(mkcs->client.dev->dev, 133 "%s: PEC error! Packet value=0x%02x, calculated value=0x%02x", 134 __func__, tlr->pec, pec); 135 ndev->stats.rx_crc_errors++; 136 return -EINVAL; 137 } 138 return 0; 139 } 140 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki