Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1102039pxb; Wed, 16 Feb 2022 11:02:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXJVtQNd8N7zClV+bajngosw8Or4OPY7YXNrrKgpt8le6m3ofRACi/OtPw1e015a66e+oK X-Received: by 2002:a63:114:0:b0:34d:efd0:762a with SMTP id 20-20020a630114000000b0034defd0762amr3426752pgb.71.1645038146035; Wed, 16 Feb 2022 11:02:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645038146; cv=none; d=google.com; s=arc-20160816; b=zU7Xxf5X/00qTEMRQyAg+OaztTEveiD0569tEW5E9T0u/YzEbfWPChfLdfLxSEbolH aX6zIwH1YnCdxHwBAVaJDUTEq4hPte+ynMc275ZOFixLM6Ub8U8uS2X47BZ3QVFq13Mr 9segV17zEX2+yJu9MmGdHYDnXKovPAl5yMEWOXtj/75IpeEOsIghPv4yOBJURxLSGYHK UM/FCvt+sEW+gEamGf3af6twECMERXWmGyTbvzB8IE0nnscVnShh+PWZRljq9fSyLuV5 lNHBzPyoDp5Nj40AArmBaPy67LaxgdDEeIFAHF8fMIpGxA5+nctuXYNEMTU0bWkk1qin qDVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=iDgFQBJ47MsKLeLR0SawN6RvkmE7WKqgKUqUPkldRLI=; b=nckP+gcQEBnm3roN2prdWRjXw13FwqdS9MgFqwpAlgQC6c3lUp+FT+Geq8C8skILRy +LF6kwllQCIuWsm9hkgZLUI3JYXvtzmzeqHQ1OMa+dZlca2jq6KAZ14aAz2ElDp2SvuC QW9yW+4sxu9SX1xGFKxdrhWoSxrxrx5dio+2Su0dvC7Q0dcp7GHt9m5Z0Z16qN5UWvFi dqbTIHtcjkBwN9UtdDdcL7CAEFJs7j7Kyqm7oG9ZXTq/MYvZWPBGNB/brwpgHckn6gdB 6u4awk3cBiaLKKdUV6xrnW8q5G2IlNNtkGfNb/LPzdZou/QfM+0xEHNchN9Fii5m2lCS WYtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VWYC1AKm; 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 s14si41854561pfu.318.2022.02.16.11.02.08; Wed, 16 Feb 2022 11:02:26 -0800 (PST) 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=VWYC1AKm; 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 S237582AbiBPSYE (ORCPT + 99 others); Wed, 16 Feb 2022 13:24:04 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:56074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236822AbiBPSYD (ORCPT ); Wed, 16 Feb 2022 13:24:03 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 953E21F4675; Wed, 16 Feb 2022 10:23:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645035830; x=1676571830; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=1ihSLN9mFszCQxNpqXLpE2iJlvxCxngLICSSjcAirB4=; b=VWYC1AKm1Qwa0HHp1/eKTS4bMFjXJ9hrAvcJLDrhrJpWxw5hWueTsOkE iPp4jFJzjewT/5ALSu7UEnJPRB/okGMiXfUSNYneOlAGGoMz3mkkqx1F7 KjlwswbsdNC2+cfCJB4zexA32oR8Tz03P2SZ/uTNFazN4bd91b1vYY/Kx +nsajdnlkTHV7cFLxPpSO+BkTLu4o+j/ycRE0WI3FLAXTPLt4wAWbiMn8 /h/kV6GzGaEP9cffXSDIsofZxvJhmyKeQONoj8hHffX1JO/aEezTQPRWe 9V5vpo8Nn3rQsYbJ0RFZpD9qDpQ3qhOxD0YO1O7ehRs7EkV+HBaUOQJWF w==; X-IronPort-AV: E=McAfee;i="6200,9189,10260"; a="234227415" X-IronPort-AV: E=Sophos;i="5.88,374,1635231600"; d="scan'208";a="234227415" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2022 10:23:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,374,1635231600"; d="scan'208";a="540255419" Received: from lkp-server01.sh.intel.com (HELO d95dc2dabeb1) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 16 Feb 2022 10:23:46 -0800 Received: from kbuild by d95dc2dabeb1 with local (Exim 4.92) (envelope-from ) id 1nKOxu-000B1p-Ad; Wed, 16 Feb 2022 18:23:46 +0000 Date: Thu, 17 Feb 2022 02:22:45 +0800 From: kernel test robot To: 3090101217@zju.edu.cn, laurent.pinchart@ideasonboard.com, balbi@kernel.org, gregkh@linuxfoundation.org, corbet@lwn.net, mchehab+huawei@kernel.org, rdunlap@infradead.org, bilbao@vt.edu, pawell@cadence.com Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Jing Leng Subject: Re: [PATCH] usb: gadget: uvc: add framebased stream support Message-ID: <202202170211.van9U4Ha-lkp@intel.com> References: <20220216081651.9089-1-3090101217@zju.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220216081651.9089-1-3090101217@zju.edu.cn> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on usb/usb-testing] [also build test WARNING on linus/master v5.17-rc4 next-20220216] [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] url: https://github.com/0day-ci/linux/commits/3090101217-zju-edu-cn/usb-gadget-uvc-add-framebased-stream-support/20220216-162037 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing config: arm-randconfig-r023-20220216 (https://download.01.org/0day-ci/archive/20220217/202202170211.van9U4Ha-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0e628a783b935c70c80815db6c061ec84f884af5) 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 # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/0day-ci/linux/commit/475fba6b60329d9270b699550907a5e077cd84b6 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review 3090101217-zju-edu-cn/usb-gadget-uvc-add-framebased-stream-support/20220216-162037 git checkout 475fba6b60329d9270b699550907a5e077cd84b6 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash block// drivers/usb/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/usb/gadget/function/uvc_configfs.c:1091:3: warning: field within 'struct uvcg_frame::(unnamed at drivers/usb/gadget/function/uvc_configfs.c:1068:2)' is less aligned than 'union uvcg_frame::(anonymous at drivers/usb/gadget/function/uvc_configfs.c:1091:3)' and is usually due to 'struct uvcg_frame::(unnamed at drivers/usb/gadget/function/uvc_configfs.c:1068:2)' being packed, which can lead to unaligned accesses [-Wunaligned-access] union { ^ 1 warning generated. vim +1091 drivers/usb/gadget/function/uvc_configfs.c 1060 1061 /* ----------------------------------------------------------------------------- 1062 * streaming/// 1063 */ 1064 1065 struct uvcg_frame { 1066 struct config_item item; 1067 enum uvcg_format_type fmt_type; 1068 struct { 1069 u8 b_length; 1070 u8 b_descriptor_type; 1071 u8 b_descriptor_subtype; 1072 u8 b_frame_index; 1073 u8 bm_capabilities; 1074 u16 w_width; 1075 u16 w_height; 1076 u32 dw_min_bit_rate; 1077 u32 dw_max_bit_rate; 1078 1079 /* 1080 * The layout of last three members of framebased frame 1081 * is different from uncompressed frame. 1082 * Last three members of uncompressed frame are: 1083 * u32 dw_max_video_frame_buffer_size; 1084 * u32 dw_default_frame_interval; 1085 * u8 b_frame_interval_type; 1086 * Last three members of framebased frame are: 1087 * u32 dw_default_frame_interval; 1088 * u8 b_frame_interval_type; 1089 * u32 dw_bytes_perline; 1090 */ > 1091 union { 1092 u32 dw_max_video_frame_buffer_size; 1093 u32 dw_bytes_perline; 1094 }; 1095 u32 dw_default_frame_interval; 1096 u8 b_frame_interval_type; 1097 } __attribute__((packed)) frame; 1098 u32 *dw_frame_interval; 1099 }; 1100 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org