Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp765432rwr; Thu, 4 May 2023 09:16:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6W7huJllr+mU3IPV9D7Rw6heb1iL2ndy4ypTygb1NNjT/Qso4elzNy2n8CUhfe5a+MlOPr X-Received: by 2002:a05:6a21:7895:b0:f0:5a5b:7bea with SMTP id bf21-20020a056a21789500b000f05a5b7beamr3167115pzc.61.1683216987820; Thu, 04 May 2023 09:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683216987; cv=none; d=google.com; s=arc-20160816; b=1BGFZZegkZJekf6hxxmUdIigoF4uIjd+5ULljHS8SW0Yrdk5C08jtcJvXX4JOL0r2Q 4qv3WtdrKhDXQvj0DKwiwytVcUKoi5gjFcXlyjzxeadnvssvMElGGAqGysaQq6oqDWeQ l8tv+xQUGtO+IkieTYrONs0XxhaVqJf1X/G6+l9YQ6LVi3WmV36yOUI5urMWocALmD1t z9ClPyTUB4XBaUJjDo6i7zu/n39x4kh3kSIdo69Qc4Otbbn1FgAl4Yf45IUNP1I2hdzf J8XwrF/HJsrCzI1BKJi6NdKqZ2VfBwdtCEdpDLgEP7di8HIs7JNvq5i83etPweOkQFiL doUA== 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=P0Il5spFHn8NoUhAqKLHt3D0gM+gIKTyeoDc58vbrzg=; b=sfg2XAOBIQw2o+dHXoV3JYmvsZQAo7q7d89BdhcZ1MWgKE7W6gSvKB+F8mnn8ZkYeV NbVfrcOTJH+ue0CrKzBH9C8oXNIuRUyCdbpmioxgtBckNCsp9TQZqN/41L9NX7FQMNhI j+RaZYukqxDbbMfJrY8uZGthW1VcZH9kDaepoPLbtTtyhypRkvzw2CM+7ns397RZrt/d 21Rwff9h6whf7mE9CWZeAZ8XySYJCeLimHWCMmeD2VloCcqZfcE/9hOsM83aPsB5gqnU 2HPKVBscBMmdrKrqdJjA9zbNL9pEkyzUlfDXpuzA5mmohMpcntUVBs53MOqSIzJ7dY5F c6hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nJr7YyuC; 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 b2-20020aa78ec2000000b0063d289b8d47si35129540pfr.126.2023.05.04.09.16.13; Thu, 04 May 2023 09:16:27 -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=nJr7YyuC; 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 S231185AbjEDPry (ORCPT + 99 others); Thu, 4 May 2023 11:47:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230147AbjEDPrw (ORCPT ); Thu, 4 May 2023 11:47:52 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A608E1BF7; Thu, 4 May 2023 08:47:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683215270; x=1714751270; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=+W/UCTBIfYK9iU0TR7/tMzBfgHk4eby0Qe2D0HTr7Rc=; b=nJr7YyuC2Ez1D903Tr5UOTsQL59dMgR1IvGZfLQg3T0sM+VFz3K5KIPs MfMC422sADwtBCiAwy13HD1oEiTOlSxSHpSt1KiFuPq6Jis7pm/WeQTgO BpGrFIAS5Ky6s24kDjG19Wzw3MwGgHfdApskZ7gga4ojYtsghZDr/ZEUf /EYfHXobL2CKdVWgSHQ4EewM6JARD/JMnmP50qGMV/Nfb4I6vXuZ6dvYU vRYHMNs5BJjrft3K2/kQa90Q6MdEkJ+BZWoEOzhD7ttSeu1sDPpAPfQz0 ptNeGcgeIP9VE1Y+RwvfOsxqsU7e3AYfh7c08dIvI3u15ngy68whDVSU2 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10700"; a="328594515" X-IronPort-AV: E=Sophos;i="5.99,249,1677571200"; d="scan'208";a="328594515" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2023 08:47:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10700"; a="1027007589" X-IronPort-AV: E=Sophos;i="5.99,249,1677571200"; d="scan'208";a="1027007589" Received: from lkp-server01.sh.intel.com (HELO 64cf2984a3fe) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 04 May 2023 08:47:45 -0700 Received: from kbuild by 64cf2984a3fe with local (Exim 4.96) (envelope-from ) id 1pubBI-00001Y-1Q; Thu, 04 May 2023 15:47:44 +0000 Date: Thu, 4 May 2023 23:46:55 +0800 From: kernel test robot To: Marco Felsch , andreas@fatal.se, jun.li@nxp.com, Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Bjorn Andersson , Heikki Krogerus , Guenter Roeck , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Marco Felsch Subject: Re: [PATCH v2 2/4] usb: typec: mux: gpio-sbu-mux: add support for ss data lane muxing Message-ID: <202305042306.TmTuYCAJ-lkp@intel.com> References: <20230504-b4-v6-3-topic-boards-imx8mp-evk-dual-role-usb-v2-2-3889b1b2050c@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230504-b4-v6-3-topic-boards-imx8mp-evk-dual-role-usb-v2-2-3889b1b2050c@pengutronix.de> X-Spam-Status: No, score=-4.6 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_PASS,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 Marco, kernel test robot noticed the following build warnings: [auto build test WARNING on 457391b0380335d5e9a5babdec90ac53928b23b4] url: https://github.com/intel-lab-lkp/linux/commits/Marco-Felsch/dt-bindings-usb-gpio-sbu-mux-add-support-for-ss-data-lanes-mux/20230504-214927 base: 457391b0380335d5e9a5babdec90ac53928b23b4 patch link: https://lore.kernel.org/r/20230504-b4-v6-3-topic-boards-imx8mp-evk-dual-role-usb-v2-2-3889b1b2050c%40pengutronix.de patch subject: [PATCH v2 2/4] usb: typec: mux: gpio-sbu-mux: add support for ss data lane muxing config: riscv-randconfig-r042-20230501 (https://download.01.org/0day-ci/archive/20230504/202305042306.TmTuYCAJ-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project b1465cd49efcbc114a75220b153f5a055ce7911f) 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 riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/8cbffd4f358b26347855cb2dcae31dd8c012226f git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Marco-Felsch/dt-bindings-usb-gpio-sbu-mux-add-support-for-ss-data-lanes-mux/20230504-214927 git checkout 8cbffd4f358b26347855cb2dcae31dd8c012226f # 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=riscv olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/usb/typec/mux/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202305042306.TmTuYCAJ-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/usb/typec/mux/gpio-sbu-mux.c:119:18: warning: cast to smaller integer type 'enum gpio_sbu_mux_type' from 'const void *' [-Wvoid-pointer-to-enum-cast] sbu_mux->type = (enum gpio_sbu_mux_type)device_get_match_data(&pdev->dev); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. vim +119 drivers/usb/typec/mux/gpio-sbu-mux.c 107 108 static int gpio_sbu_mux_probe(struct platform_device *pdev) 109 { 110 struct typec_switch_desc sw_desc = { }; 111 struct typec_mux_desc mux_desc = { }; 112 struct device *dev = &pdev->dev; 113 struct gpio_sbu_mux *sbu_mux; 114 115 sbu_mux = devm_kzalloc(dev, sizeof(*sbu_mux), GFP_KERNEL); 116 if (!sbu_mux) 117 return -ENOMEM; 118 > 119 sbu_mux->type = (enum gpio_sbu_mux_type)device_get_match_data(&pdev->dev); 120 121 mutex_init(&sbu_mux->lock); 122 123 sbu_mux->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW); 124 if (IS_ERR(sbu_mux->enable_gpio)) 125 return dev_err_probe(dev, PTR_ERR(sbu_mux->enable_gpio), 126 "unable to acquire enable gpio\n"); 127 128 sbu_mux->select_gpio = devm_gpiod_get(dev, "select", GPIOD_OUT_LOW); 129 if (IS_ERR(sbu_mux->select_gpio)) 130 return dev_err_probe(dev, PTR_ERR(sbu_mux->select_gpio), 131 "unable to acquire select gpio\n"); 132 133 sw_desc.drvdata = sbu_mux; 134 sw_desc.fwnode = dev_fwnode(dev); 135 sw_desc.set = gpio_sbu_switch_set; 136 137 sbu_mux->sw = typec_switch_register(dev, &sw_desc); 138 if (IS_ERR(sbu_mux->sw)) 139 return dev_err_probe(dev, PTR_ERR(sbu_mux->sw), 140 "failed to register typec switch\n"); 141 142 mux_desc.drvdata = sbu_mux; 143 mux_desc.fwnode = dev_fwnode(dev); 144 mux_desc.set = gpio_sbu_mux_set; 145 146 sbu_mux->mux = typec_mux_register(dev, &mux_desc); 147 if (IS_ERR(sbu_mux->mux)) { 148 typec_switch_unregister(sbu_mux->sw); 149 return dev_err_probe(dev, PTR_ERR(sbu_mux->mux), 150 "failed to register typec mux\n"); 151 } 152 153 platform_set_drvdata(pdev, sbu_mux); 154 155 return 0; 156 } 157 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests