Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3541945ybg; Mon, 28 Oct 2019 14:38:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqy46VVs5n8+RjaD/zGsEkydcs7iLAXmJfwO97e8MpsWocryzx5NQyfuIB6C/DzUaU6El20s X-Received: by 2002:a05:6402:1157:: with SMTP id g23mr22500534edw.260.1572298721125; Mon, 28 Oct 2019 14:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572298721; cv=none; d=google.com; s=arc-20160816; b=UvPiflk76y83mdth0GYsUR1B4yStOTfMeM4UMvBIIHSf3ZJDGZzSZhzpuEtpslv8O9 Mj/R3QDbtg2/s3EhbrriTcbQitaGvMhpOAsY7Kc3m1juB6qa3Uq7odcoin58JFkIYxjU iloXu4z7/G5jJOAP0MZ92wkI82a6IRleJ1ynOxr4K7VJQkDvoAc/jvFbvgShieCUMn4S KMlPl4aYjXGd1zOJDF/vsA1CE4f2e0YSj/uegDLUasKfPBErO09R+sBhxjBQtyoUfc+L j5RSOsp/bNkI8c67EV+l6bIJl9dmvZTPSHZRNmsWDd0ikEf1QNHZZbh8hXKNeBMzosht ySBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MhP2O21S/sZmyM471o3kARMJU3XaQGQI+2J52ZwbpZU=; b=sfSqKcY0jYVMBX9h9kMF04wyC/TviHBVHUzx4YUw5ndPXifA24+20EQJMky1u83LHl FHkkQJmvwVS0h1xFjZIMaCLC/c32fq137nVY8IcOoQTMoxw6sASH3Fv+0JaPnWp2COnE QwXKgV/pfvbAAqQDNqoHKFQxwp0F5JpYziNkaIKoRhu8B6ytJXD4zArOWo6YSB8lKMBJ mwrYySBY3/4KHzSO7yCOUyZy/hTMNuGHeHEsd3ZX8kjM1wcV9KjinPwFjX1YHn7EF4gQ ElLyTxKEpiDzNUnBHX0rw0YC30NRAGNqPkV1+Q+d+EfusFxqh+EuvBq+BIWMdszPywGy Fvtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 18si3088211ejz.321.2019.10.28.14.38.17; Mon, 28 Oct 2019 14:38:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404147AbfJ1RXC (ORCPT + 99 others); Mon, 28 Oct 2019 13:23:02 -0400 Received: from mga06.intel.com ([134.134.136.31]:29992 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730212AbfJ1RXB (ORCPT ); Mon, 28 Oct 2019 13:23:01 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Oct 2019 10:23:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,240,1569308400"; d="scan'208";a="193326794" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 28 Oct 2019 10:22:58 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1iP8jJ-0001Ik-UR; Tue, 29 Oct 2019 01:22:57 +0800 Date: Tue, 29 Oct 2019 01:21:56 +0800 From: kbuild test robot To: Lars Poeschel Cc: kbuild-all@lists.01.org, Lars Poeschel , Thomas Gleixner , Greg Kroah-Hartman , Allison Randal , Kate Stewart , Steve Winslow , open list , "open list:NFC SUBSYSTEM" , Johan Hovold , Claudiu Beznea , David Miller Subject: Re: [PATCH v10 5/7] nfc: pn533: add UART phy driver Message-ID: <201910290150.Mhd8u8Ot%lkp@intel.com> References: <20191025142521.22695-6-poeschel@lemonage.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191025142521.22695-6-poeschel@lemonage.de> X-Patchwork-Hint: ignore User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lars, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.4-rc5 next-20191028] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Lars-Poeschel/nfc-pn533-add-uart-phy-driver/20191028-222313 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 0365fb6baeb1ebefbbdad9e3f48bab9b3ccb8df3 reproduce: # apt-get install sparse # sparse version: v0.6.1-dirty make ARCH=x86_64 allmodconfig make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> drivers/nfc/pn533/uart.c:174:35: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] frame_len @@ got resunsigned short [usertype] frame_len @@ >> drivers/nfc/pn533/uart.c:174:35: sparse: expected unsigned short [usertype] frame_len >> drivers/nfc/pn533/uart.c:174:35: sparse: got restricted __be16 [usertype] datalen vim +174 drivers/nfc/pn533/uart.c 133 134 /* 135 * scans the buffer if it contains a pn532 frame. It is not checked if the 136 * frame is really valid. This is later done with pn533_rx_frame_is_valid. 137 * This is useful for malformed or errornous transmitted frames. Adjusts the 138 * bufferposition where the frame starts, since pn533_recv_frame expects a 139 * well formed frame. 140 */ 141 static int pn532_uart_rx_is_frame(struct sk_buff *skb) 142 { 143 struct pn533_std_frame *std; 144 struct pn533_ext_frame *ext; 145 u16 frame_len; 146 int i; 147 148 for (i = 0; i + PN533_STD_FRAME_ACK_SIZE <= skb->len; i++) { 149 std = (struct pn533_std_frame *)&skb->data[i]; 150 /* search start code */ 151 if (std->start_frame != cpu_to_be16(PN533_STD_FRAME_SOF)) 152 continue; 153 154 /* frame type */ 155 switch (std->datalen) { 156 case PN533_FRAME_DATALEN_ACK: 157 if (std->datalen_checksum == 0xff) { 158 skb_pull(skb, i); 159 return 1; 160 } 161 162 break; 163 case PN533_FRAME_DATALEN_ERROR: 164 if ((std->datalen_checksum == 0xff) && 165 (skb->len >= 166 PN533_STD_ERROR_FRAME_SIZE)) { 167 skb_pull(skb, i); 168 return 1; 169 } 170 171 break; 172 case PN533_FRAME_DATALEN_EXTENDED: 173 ext = (struct pn533_ext_frame *)&skb->data[i]; > 174 frame_len = ext->datalen; 175 if (skb->len >= frame_len + 176 sizeof(struct pn533_ext_frame) + 177 2 /* CKS + Postamble */) { 178 skb_pull(skb, i); 179 return 1; 180 } 181 182 break; 183 default: /* normal information frame */ 184 frame_len = std->datalen; 185 if (skb->len >= frame_len + 186 sizeof(struct pn533_std_frame) + 187 2 /* CKS + Postamble */) { 188 skb_pull(skb, i); 189 return 1; 190 } 191 192 break; 193 } 194 } 195 196 return 0; 197 } 198 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation