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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C786CC6FD1C for ; Mon, 20 Mar 2023 21:41:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229668AbjCTVll (ORCPT ); Mon, 20 Mar 2023 17:41:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbjCTVlk (ORCPT ); Mon, 20 Mar 2023 17:41:40 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9A6914222 for ; Mon, 20 Mar 2023 14:41:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679348461; x=1710884461; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=CsGhX/ih9gJmiHUYYaugrOW5J9NCgyatndEOVP/IlHg=; b=VUYFy+7x+flEs2QzLsxfJI8rVnPXod5pAStgIrHp+Cia6eipdUujFHVy SJF10g6M3nsh0firIJ9kJ8mBYwrfnFxN2/GT3RVcawdSxqWFNLp9Lfu5O 2MOW3ZpducKr8d+Dk7atSm7o5IAlL60CI1h7AXVfCwh/WKOEzv3HnIOzO fYzWZkv5ny6peIKMgrJ80alOK/Do4h3eVtj0c4WT1YDGhXqXk//mRpW5z qlyCsPhFBSaUa6a4WQ2hT1Y4XRanJk2bM6Gi3k0Eg4tP7g1kuav10+Hha 3hvxis+Gy1WnjqhTVSy0i9XzJ8NQNGsEmVGDmpxXou3RWJ2wm6Hjjm4H8 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10655"; a="336288593" X-IronPort-AV: E=Sophos;i="5.98,276,1673942400"; d="scan'208";a="336288593" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2023 14:38:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10655"; a="805056687" X-IronPort-AV: E=Sophos;i="5.98,276,1673942400"; d="scan'208";a="805056687" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 20 Mar 2023 14:37:58 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1peNCX-000BKw-2g; Mon, 20 Mar 2023 21:37:57 +0000 Date: Tue, 21 Mar 2023 05:37:41 +0800 From: kernel test robot To: Felix Fietkau , linux-wireless@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, johannes@sipsolutions.net Subject: Re: [PATCH] wifi: mac80211: add support for letting drivers register tc offload support Message-ID: <202303210508.KIjgdELz-lkp@intel.com> References: <20230320133103.40724-1-nbd@nbd.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230320133103.40724-1-nbd@nbd.name> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Felix, I love your patch! Yet something to improve: [auto build test ERROR on wireless-next/main] [also build test ERROR on next-20230320] [cannot apply to wireless/main linus/master v6.3-rc3] [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/Felix-Fietkau/wifi-mac80211-add-support-for-letting-drivers-register-tc-offload-support/20230320-213243 base: https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git main patch link: https://lore.kernel.org/r/20230320133103.40724-1-nbd%40nbd.name patch subject: [PATCH] wifi: mac80211: add support for letting drivers register tc offload support config: hexagon-randconfig-r022-20230319 (https://download.01.org/0day-ci/archive/20230321/202303210508.KIjgdELz-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 67409911353323ca5edf2049ef0df54132fa1ca7) 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/462e7ebc43a4631d478861a9027e7940462c2e4b git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Felix-Fietkau/wifi-mac80211-add-support-for-letting-drivers-register-tc-offload-support/20230320-213243 git checkout 462e7ebc43a4631d478861a9027e7940462c2e4b # 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 net/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303210508.KIjgdELz-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from net/mac80211/trace.c:7: In file included from include/net/cfg80211.h:13: In file included from include/linux/ethtool.h:18: In file included from include/linux/if_ether.h:19: 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 net/mac80211/trace.c:7: In file included from include/net/cfg80211.h:13: In file included from include/linux/ethtool.h:18: In file included from include/linux/if_ether.h:19: 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 net/mac80211/trace.c:7: In file included from include/net/cfg80211.h:13: In file included from include/linux/ethtool.h:18: In file included from include/linux/if_ether.h:19: 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); ~~~~~~~~~~ ^ In file included from net/mac80211/trace.c:11: In file included from net/mac80211/trace.h:3060: In file included from include/trace/define_trace.h:102: In file included from include/trace/trace_events.h:237: >> net/mac80211/trace.h:2502:53: error: no member named 'new_links' in 'struct trace_event_raw_drv_net_setup_tc' LOCAL_PR_ARG, VIF_PR_ARG, __entry->type, __entry->new_links ~~~~~~~ ^ include/trace/stages/stage3_trace_output.h:9:43: note: expanded from macro 'TP_printk' #define TP_printk(fmt, args...) fmt "\n", args ^~~~ include/trace/trace_events.h:45:16: note: expanded from macro 'TRACE_EVENT' PARAMS(print)); \ ^~~~~ include/linux/tracepoint.h:107:25: note: expanded from macro 'PARAMS' #define PARAMS(args...) args ^~~~ include/trace/trace_events.h:203:27: note: expanded from macro 'DECLARE_EVENT_CLASS' trace_event_printf(iter, print); \ ^~~~~ 6 warnings and 1 error generated. vim +2502 net/mac80211/trace.h 2480 2481 TRACE_EVENT(drv_net_setup_tc, 2482 TP_PROTO(struct ieee80211_local *local, 2483 struct ieee80211_sub_if_data *sdata, 2484 u8 type), 2485 2486 TP_ARGS(local, sdata, type), 2487 2488 TP_STRUCT__entry( 2489 LOCAL_ENTRY 2490 VIF_ENTRY 2491 __field(u8, type) 2492 ), 2493 2494 TP_fast_assign( 2495 LOCAL_ASSIGN; 2496 VIF_ASSIGN; 2497 __entry->type = type; 2498 ), 2499 2500 TP_printk( 2501 LOCAL_PR_FMT VIF_PR_FMT " type:%d\n", > 2502 LOCAL_PR_ARG, VIF_PR_ARG, __entry->type, __entry->new_links 2503 ) 2504 ); 2505 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests