Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2774514iof; Wed, 8 Jun 2022 11:44:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiUgzywfVPYMbBl5EWXegik+7JTLCJbgp6PSH0yw9kCWOYKozql0FzZIZ+g9fuNG6PU+ur X-Received: by 2002:aa7:d59a:0:b0:42d:d14e:598 with SMTP id r26-20020aa7d59a000000b0042dd14e0598mr40836724edq.215.1654713875939; Wed, 08 Jun 2022 11:44:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654713875; cv=none; d=google.com; s=arc-20160816; b=hH5vDaNksRjPNlh9Ugm93n4rGqrDGsllCJrRVpHBMzmitLDQ750nilDkisxrjTeoMv M9iLpIoJ0OScETC4vZDjH5KKFSopGTNfPb4kEbLQXLaSxsLbYqaDeFP7Kscia1xRG6TP IDZVnycPHUTTORq6WeB7zEieg8Rs2q6iKbue3sa+1jXRC8pAB4TA9vRDZUZXbcHg3LkP w6lpYR4z8mMbU++JpYbfFAvyVFPADDQ6LWK9eNNcfb62NIiwBXfVgXGL3nRqAnjmIY21 cCQLBapH9RP0pZZPMtkS1qatrhYPIOvs/yDcQlKyo0xQNjiybdyrtFu57hc3+tUOOcQU 2t5Q== 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=MesgnXMnel2kfgeBTB7/OwPNi0YWzuQsa4dyojSRYW4=; b=rQBFatW5LHeNtp88DKFgATEfy18LyR0bk0fh/IC0YDbA4+g4j+g7C8/dozfFJXaMdl rX/SFd3WvbXRo6S2I1rI3pmRjqKnc0OhCUngufXidD1hoD+VDdzpm+P2mMZUjThTo9hg q5X7OeQ0e5438gOziQjodO3yBd3bWmn1rRAddkO1fEquMHnDx7VhnJgTtD9xwtHdGtQU kc8S6Y9mrYZWTmMcxAXhIxeYhrT9dwnbFcamqTNQZAhhCQl+nN0IuB8Wxz6uQ44x8zOX BUf1Gq4YApNt0s4XUiZdSthzWPm+V+h2j1CGqg0LDNDY65xwxvliERJ7LuRwfBx9+lzP Gk/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KUHQCJ6e; 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 m16-20020a056402431000b0042b58545474si2298907edc.1.2022.06.08.11.44.09; Wed, 08 Jun 2022 11:44:35 -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=KUHQCJ6e; 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 S236029AbiFHSRL (ORCPT + 99 others); Wed, 8 Jun 2022 14:17:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235043AbiFHSO7 (ORCPT ); Wed, 8 Jun 2022 14:14:59 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BDC2F66; Wed, 8 Jun 2022 11:14:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654712098; x=1686248098; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=USR+6rgHbgZJo4Au9EyLSSIMNVZXWNHuMgZbXeF60T8=; b=KUHQCJ6eHGyySzXySrw0ntHzsNh+MhR1XzY2Q/vdWMyEAKpWX3ab2Gyi fRKjHajKK+S6duf+QoPBU43SSAEasQfMBUEUs3MtdBJn/oNkhbbilTNLS oMYASXq7/14qpzv0Co/WmawnCVtGISE9x1b9FW7FDyBZG6acYHCpyTEcD 1ngE4QZrP6qe+UBctcrtTOqAvI9ckRGeGnavKldbViry7i3dsViBkoQmN pTPGvu+w6R4dKRdyTKw+eWtdvvnawD8t/AmVPXx/+C1uJjkPVC7R4t6/N EQwBQaTUrC/CGcpKQmW6PESmuxUedmRC6NR3B2A7C4yE/bdXBi5mvXIp+ Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10372"; a="260138413" X-IronPort-AV: E=Sophos;i="5.91,286,1647327600"; d="scan'208";a="260138413" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2022 11:14:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,286,1647327600"; d="scan'208";a="683478114" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 08 Jun 2022 11:14:48 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1nz0CY-000Et1-O8; Wed, 08 Jun 2022 18:14:42 +0000 Date: Thu, 9 Jun 2022 02:14:34 +0800 From: kernel test robot To: Prashant Malani , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, heikki.krogerus@linux.intel.com, Andrzej Hajda , Neil Armstrong , David Airlie , "open list:DRM DRIVERS" , Laurent Pinchart , Krzysztof Kozlowski , Sam Ravnborg , Jernej Skrabec , Tzung-Bi Shih , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Thomas Zimmermann , =?iso-8859-1?Q?N=EDcolas_F=2E_R=2E_A=2E?= Prado , Jonas Karlman , swboyd@chromium.org, Pin-Yen Lin , Rob Herring , Maxime Ripard , Hsin-Yi Wang , Xin Ji , AngeloGioacchino Del Regno , Greg Kroah-Hartman , Robert Foss , Prashant Malani , =?iso-8859-1?Q?Jos=E9_Exp=F3sito?= Subject: Re: [PATCH 6/7] drm/bridge: anx7625: Register Type-C mode switches Message-ID: <202206090139.lV7qgO5F-lkp@intel.com> References: <20220607190131.1647511-7-pmalani@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220607190131.1647511-7-pmalani@chromium.org> X-Spam-Status: No, score=-3.3 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 Prashant, I love your patch! Perhaps something to improve: [auto build test WARNING on drm/drm-next] [also build test WARNING on usb/usb-testing v5.19-rc1 next-20220608] [cannot apply to balbi-usb/testing/next peter-chen-usb/for-usb-next] [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/intel-lab-lkp/linux/commits/Prashant-Malani/usb-typec-Introduce-typec-switch-binding/20220608-042545 base: git://anongit.freedesktop.org/drm/drm drm-next config: i386-randconfig-a006 (https://download.01.org/0day-ci/archive/20220609/202206090139.lV7qgO5F-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project b92436efcb7813fc481b30f2593a4907568d917a) 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/2ac4609c73d7bb4d1a585dae84559967ced3bad6 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Prashant-Malani/usb-typec-Introduce-typec-switch-binding/20220608-042545 git checkout 2ac4609c73d7bb4d1a585dae84559967ced3bad6 # 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=i386 SHELL=/bin/bash drivers/gpu/drm/bridge/analogix/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from drivers/gpu/drm/bridge/analogix/anx7625.c:18: >> include/linux/usb/typec_mux.h:83:19: warning: no previous prototype for function 'fwnode_typec_mux_get' [-Wmissing-prototypes] struct typec_mux *fwnode_typec_mux_get(struct fwnode_handle *fwnode, ^ include/linux/usb/typec_mux.h:83:1: note: declare 'static' if the function is not intended to be used outside of this translation unit struct typec_mux *fwnode_typec_mux_get(struct fwnode_handle *fwnode, ^ static >> include/linux/usb/typec_mux.h:89:6: warning: no previous prototype for function 'typec_mux_put' [-Wmissing-prototypes] void typec_mux_put(struct typec_mux *mux) {} ^ include/linux/usb/typec_mux.h:89:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void typec_mux_put(struct typec_mux *mux) {} ^ static >> include/linux/usb/typec_mux.h:91:5: warning: no previous prototype for function 'typec_mux_set' [-Wmissing-prototypes] int typec_mux_set(struct typec_mux *mux, struct typec_mux_state *state) ^ include/linux/usb/typec_mux.h:91:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int typec_mux_set(struct typec_mux *mux, struct typec_mux_state *state) ^ static >> include/linux/usb/typec_mux.h:103:1: warning: no previous prototype for function 'typec_mux_register' [-Wmissing-prototypes] typec_mux_register(struct device *parent, const struct typec_mux_desc *desc) ^ include/linux/usb/typec_mux.h:102:1: note: declare 'static' if the function is not intended to be used outside of this translation unit struct typec_mux * ^ static >> include/linux/usb/typec_mux.h:107:6: warning: no previous prototype for function 'typec_mux_unregister' [-Wmissing-prototypes] void typec_mux_unregister(struct typec_mux *mux) {} ^ include/linux/usb/typec_mux.h:107:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void typec_mux_unregister(struct typec_mux *mux) {} ^ static >> include/linux/usb/typec_mux.h:109:6: warning: no previous prototype for function 'typec_mux_set_drvdata' [-Wmissing-prototypes] void typec_mux_set_drvdata(struct typec_mux *mux, void *data) {} ^ include/linux/usb/typec_mux.h:109:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void typec_mux_set_drvdata(struct typec_mux *mux, void *data) {} ^ static >> include/linux/usb/typec_mux.h:110:7: warning: no previous prototype for function 'typec_mux_get_drvdata' [-Wmissing-prototypes] void *typec_mux_get_drvdata(struct typec_mux *mux) ^ include/linux/usb/typec_mux.h:110:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void *typec_mux_get_drvdata(struct typec_mux *mux) ^ static drivers/gpu/drm/bridge/analogix/anx7625.c:2617:23: error: incompatible pointer types assigning to 'struct typec_mux_dev *' from 'struct typec_mux *' [-Werror,-Wincompatible-pointer-types] port_data->typec_mux = typec_mux_register(dev, &mux_desc); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/bridge/analogix/anx7625.c:2631:24: error: incompatible pointer types passing 'struct typec_mux_dev *' to parameter of type 'struct typec_mux *' [-Werror,-Wincompatible-pointer-types] typec_mux_unregister(ctx->typec_ports[i].typec_mux); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/usb/typec_mux.h:107:45: note: passing argument to parameter 'mux' here void typec_mux_unregister(struct typec_mux *mux) {} ^ 7 warnings and 2 errors generated. vim +/fwnode_typec_mux_get +83 include/linux/usb/typec_mux.h 0835afe6b807ae Prashant Malani 2022-06-07 82 0835afe6b807ae Prashant Malani 2022-06-07 @83 struct typec_mux *fwnode_typec_mux_get(struct fwnode_handle *fwnode, 0835afe6b807ae Prashant Malani 2022-06-07 84 const struct typec_altmode_desc *desc) 0835afe6b807ae Prashant Malani 2022-06-07 85 { 0835afe6b807ae Prashant Malani 2022-06-07 86 return ERR_PTR(-EOPNOTSUPP); 0835afe6b807ae Prashant Malani 2022-06-07 87 } 0835afe6b807ae Prashant Malani 2022-06-07 88 0835afe6b807ae Prashant Malani 2022-06-07 @89 void typec_mux_put(struct typec_mux *mux) {} 0835afe6b807ae Prashant Malani 2022-06-07 90 0835afe6b807ae Prashant Malani 2022-06-07 @91 int typec_mux_set(struct typec_mux *mux, struct typec_mux_state *state) 0835afe6b807ae Prashant Malani 2022-06-07 92 { 0835afe6b807ae Prashant Malani 2022-06-07 93 return -EOPNOTSUPP; 0835afe6b807ae Prashant Malani 2022-06-07 94 } 0835afe6b807ae Prashant Malani 2022-06-07 95 0835afe6b807ae Prashant Malani 2022-06-07 96 static inline struct typec_mux * 0835afe6b807ae Prashant Malani 2022-06-07 97 typec_mux_get(struct device *dev, const struct typec_altmode_desc *desc) 0835afe6b807ae Prashant Malani 2022-06-07 98 { 0835afe6b807ae Prashant Malani 2022-06-07 99 return ERR_PTR(-EOPNOTSUPP); 0835afe6b807ae Prashant Malani 2022-06-07 100 } 0835afe6b807ae Prashant Malani 2022-06-07 101 0835afe6b807ae Prashant Malani 2022-06-07 102 struct typec_mux * 0835afe6b807ae Prashant Malani 2022-06-07 @103 typec_mux_register(struct device *parent, const struct typec_mux_desc *desc) 0835afe6b807ae Prashant Malani 2022-06-07 104 { 0835afe6b807ae Prashant Malani 2022-06-07 105 return ERR_PTR(-EOPNOTSUPP); 0835afe6b807ae Prashant Malani 2022-06-07 106 } 0835afe6b807ae Prashant Malani 2022-06-07 @107 void typec_mux_unregister(struct typec_mux *mux) {} 0835afe6b807ae Prashant Malani 2022-06-07 108 0835afe6b807ae Prashant Malani 2022-06-07 @109 void typec_mux_set_drvdata(struct typec_mux *mux, void *data) {} 0835afe6b807ae Prashant Malani 2022-06-07 @110 void *typec_mux_get_drvdata(struct typec_mux *mux) 0835afe6b807ae Prashant Malani 2022-06-07 111 { 0835afe6b807ae Prashant Malani 2022-06-07 112 return ERR_PTR(-EOPNOTSUPP); 0835afe6b807ae Prashant Malani 2022-06-07 113 } 0835afe6b807ae Prashant Malani 2022-06-07 114 -- 0-DAY CI Kernel Test Service https://01.org/lkp