Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7099787rwr; Wed, 10 May 2023 04:02:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Ux8VplEDLQ42BUNW4thefqfZt0qRpKLrlb/8i5geuuIAsBZcZGFZdFSAEY+y0TCXzPsmP X-Received: by 2002:a17:903:247:b0:1ab:16cd:51a3 with SMTP id j7-20020a170903024700b001ab16cd51a3mr22607379plh.10.1683716521482; Wed, 10 May 2023 04:02:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683716521; cv=none; d=google.com; s=arc-20160816; b=QLveRFA1v92UJuRckcQQM/2s87v1dpOcpCzVoJr2TuXODqz0TBYVrgmkNqtJ2ArB3M QFnzhJZmswpiVuHaxqJVulkZcXsbVP7uXuF0BgSlHchqJ4qrYjbWTgUFhLcm4mNDXSCF hb+uPjc03F1I/0DLpxFBl2WNyRx527bKrXhAoNbUQOcx2SvDLXvmEfK5uby/lbJERWwW zwg/Y1tLGS+9xYXotIz5sknH7nCECfbNL3Yk8CBc1vxN7xe6qRkExraZR8FL/8vHQGPA 629C8T6O8GtK6CUq20u8Z8gi5b+1R79QVqOxe0TkNOrD6RkdF7qydrpBh04J519gvQFz tcjw== 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=pVS6og6WqCDXfJ14iCIPVm84tsceJ8dLFSZxtFOo82Q=; b=x6KU7i7F4UBVhTzSg3Ytcu5130LNy8rbja3/hFYglvbMf7yXJq9ujSn8vcae/1cW+7 I2fLQRYZj5gDr0Df4AGikZ3C52j50TGOWyy6hmtj+BruYWH7ldh22iG8Cibz0dQPpWQO CTV2vXHtOk/7eBhc0f+7zH7XNQNxWraNmcis9XAzLNKN9hf/tmnQf1kFS21mrcs2OHs6 pTSa6S5WOozO4DxYKJ++NU2WuwQWBqTHqOvtYVO1w4yYFwu5JYdvzvSrGCekf0weecVL Nx8qOwPK9ZjA22VH4Kd2Z9zVM9L/mzhfDjjx2EOVzGzaYXJ12mPXvlLguL4B3mn51p1B PSAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Yv7CtttA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k7-20020a170902c40700b001ac5dd95bc5si3880489plk.476.2023.05.10.04.01.47; Wed, 10 May 2023 04:02:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Yv7CtttA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236706AbjEJK5B (ORCPT + 99 others); Wed, 10 May 2023 06:57:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236768AbjEJK43 (ORCPT ); Wed, 10 May 2023 06:56:29 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7150776BA; Wed, 10 May 2023 03:55:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683716132; x=1715252132; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=9ZiZp8HlqgvDguHB3TpoFlQNPzyWbhxSYgCDOAIgjQY=; b=Yv7CtttAPbE93pO802ZfQQXvg6y8/RtwtbqiEECX62ZhmlQbxCxsKgRk roaeSJXh+d88B0GGfcPmaYnHnBE/ApPejM7bd4lGO4aVZyyzNYMM9WLPR KOdSTA6Tqt4ve9WnU/8fZR7gbf5WXlTUvT/6tTsVw9VEZfZo5zpcCoBcm UxyDKrHwJ5l+RugHLvKXTXTGnqKwpjZXntHLc0px18ZM5mMiVNgkXLjQG m+GcE2RMBJHRabkrlSHG634/3P49oTmgm3BkpKvY0hKHA2c46kjKKMltV RJl1wKFJIoh7RzC4WAA4MA+AeaqFpDuMlDUKQVlVvdFXvutgumbb7U7Va A==; X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="413481762" X-IronPort-AV: E=Sophos;i="5.99,264,1677571200"; d="scan'208";a="413481762" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2023 03:55:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="764247324" X-IronPort-AV: E=Sophos;i="5.99,264,1677571200"; d="scan'208";a="764247324" Received: from lkp-server01.sh.intel.com (HELO dea6d5a4f140) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 10 May 2023 03:55:27 -0700 Received: from kbuild by dea6d5a4f140 with local (Exim 4.96) (envelope-from ) id 1pwhTj-0003Aj-0Z; Wed, 10 May 2023 10:55:27 +0000 Date: Wed, 10 May 2023 18:54:37 +0800 From: kernel test robot To: "Ji-Ze Hong (Peter Hong)" , wg@grandegger.com, mkl@pengutronix.de, michal.swiatkowski@linux.intel.com, Steen.Hegelund@microchip.com, mailhol.vincent@wanadoo.fr Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, frank.jungclaus@esd.eu, linux-kernel@vger.kernel.org, linux-can@vger.kernel.org, netdev@vger.kernel.org, hpeter+linux_kernel@gmail.com, "Ji-Ze Hong (Peter Hong)" Subject: Re: [PATCH V7] can: usb: f81604: add Fintek F81604 support Message-ID: <202305101816.meuESNdN-lkp@intel.com> References: <20230509073821.25289-1-peter_hong@fintek.com.tw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230509073821.25289-1-peter_hong@fintek.com.tw> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ji-Ze, kernel test robot noticed the following build warnings: [auto build test WARNING on mkl-can-next/testing] [also build test WARNING on linus/master v6.4-rc1 next-20230510] [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/Ji-Ze-Hong-Peter-Hong/can-usb-f81604-add-Fintek-F81604-support/20230509-154045 base: https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git testing patch link: https://lore.kernel.org/r/20230509073821.25289-1-peter_hong%40fintek.com.tw patch subject: [PATCH V7] can: usb: f81604: add Fintek F81604 support config: hexagon-allyesconfig (https://download.01.org/0day-ci/archive/20230510/202305101816.meuESNdN-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project b0fb98227c90adf2536c9ad644a74d5e92961111) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/9549380f8d5eea359f8c83f48e10a0becfd13541 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Ji-Ze-Hong-Peter-Hong/can-usb-f81604-add-Fintek-F81604-support/20230509-154045 git checkout 9549380f8d5eea359f8c83f48e10a0becfd13541 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/hwmon/ drivers/net/can/usb/ drivers/watchdog/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202305101816.meuESNdN-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/net/can/usb/f81604.c:7: In file included from include/linux/netdevice.h:38: In file included from include/net/net_namespace.h:43: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from drivers/net/can/usb/f81604.c:7: In file included from include/linux/netdevice.h:38: In file included from include/net/net_namespace.h:43: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from drivers/net/can/usb/f81604.c:7: In file included from include/linux/netdevice.h:38: In file included from include/net/net_namespace.h:43: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ >> drivers/net/can/usb/f81604.c:441:28: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] urb->actual_length, sizeof(*frame)); ^~~~~~~~~~~~~~ 7 warnings generated. vim +441 drivers/net/can/usb/f81604.c 411 412 static void f81604_read_bulk_callback(struct urb *urb) 413 { 414 struct f81604_can_frame *frame = urb->transfer_buffer; 415 struct net_device *netdev = urb->context; 416 int ret; 417 418 if (!netif_device_present(netdev)) 419 return; 420 421 if (urb->status) 422 netdev_info(netdev, "%s: URB aborted %pe\n", __func__, 423 ERR_PTR(urb->status)); 424 425 switch (urb->status) { 426 case 0: /* success */ 427 break; 428 429 case -ENOENT: 430 case -EPIPE: 431 case -EPROTO: 432 case -ESHUTDOWN: 433 return; 434 435 default: 436 goto resubmit_urb; 437 } 438 439 if (urb->actual_length != sizeof(*frame)) { 440 netdev_warn(netdev, "URB length %u not equal to %lu\n", > 441 urb->actual_length, sizeof(*frame)); 442 goto resubmit_urb; 443 } 444 445 f81604_process_rx_packet(netdev, frame); 446 447 resubmit_urb: 448 ret = usb_submit_urb(urb, GFP_ATOMIC); 449 if (ret == -ENODEV) 450 netif_device_detach(netdev); 451 else if (ret) 452 netdev_err(netdev, 453 "%s: failed to resubmit read bulk urb: %pe\n", 454 __func__, ERR_PTR(ret)); 455 } 456 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests