Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1578197pxb; Tue, 8 Feb 2022 22:57:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYCTfJQ+L3/v/GOth3lrEBjgKF5abqGCayXWe3+o7Z58OrlZYQ2DfhELBqitfwnc3Jrgrh X-Received: by 2002:a17:902:ea0c:: with SMTP id s12mr833022plg.169.1644389823776; Tue, 08 Feb 2022 22:57:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644389823; cv=none; d=google.com; s=arc-20160816; b=0yZx8+LUE2O/3wFtOvqRSbE1SshDmdkTn99p2BlySl2MsciaRgkCttVd39OW2UsFZ5 kFaMd5IOE+l+hYvxgju8pH2OX3uWR5goZqd8JYyQZH6vPfnrXRrghOleqUMwGaaCqX2B 8sR8dWdb9v3WfaAnrPcf+MlWsimMkmUfwzIWSP4SMgcV3VzoQeNdQZ2MpwAkXvS4V7pZ vbWhvJJCgfkOp5h3vOEdQwLcKrI8yROrk6VpwKhLuEo2WJ4Dh0p21pMd409aYIXbXS5y OrvNvWreIKj0dbqtxwL5E2VKAx6zSgPzSRyXHeAJimFoKPIlD4gDXpaD/JkWVO5DkTvF qKCA== 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=r+SYSbTDWmFxwwPLyCL2ZJ79YDG6S6GRksQ+2Npl2C8=; b=ejm/cZmCqiD1RTJrGoPaXhfkGfCNmrN3PNYf9amen/nYc4PI4fUQFcYptxsNtl23c+ 1aqCM5g6CS/mTfXtCSJXq19zwdJS7TmkZhcOHZwgmkV6EY2gYyYOweuYzLRnX3sKviC8 WgNNEDVPicqkK8IA5asV5slF+ORcpj+C1kLP0mwhtTiw3tSGGD7wRws73e23Znx2bpbc d+naEtf9LdC/qwxfj/2TIWj8w4ZxXCA1oTtd/dmhOpbyPHDcKlX15jP77UEqfOtEw296 7bYlWmXgNyCM451yD5lBfYazAIybO4hYw6jaN5YxtaR3jRmQ34dG4jRO2zJz79c3K2kc 7/UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lKvqUYGx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j5si14464447pll.141.2022.02.08.22.56.51; Tue, 08 Feb 2022 22:57:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lKvqUYGx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1352254AbiBHQl5 (ORCPT + 99 others); Tue, 8 Feb 2022 11:41:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232725AbiBHQlz (ORCPT ); Tue, 8 Feb 2022 11:41:55 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9C47C061576; Tue, 8 Feb 2022 08:41:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644338514; x=1675874514; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=N5a5FotoyVjq0TaWifYoMNeqBAy4e57dcE6SNhAW5dQ=; b=lKvqUYGxS0iYlYQz9za1Y5jsuzi13dI/FP3AnlODKPFLskbuSlGMrK/V 8gE6F8m6cCE9C3IAiuuyQPC3dh8wWE1oiVI7G/FEcT01lj4WrXKQetgsH Jc1FgjmQCK6erP4s9tMt4OakgM/esavvjoikypUinIPD+vgoCvzmY04Ad hKdu53lWZyHyLznVbMAGB0lNoop6pGpl8QmLTiB5XrpI+ln+rcGNYr5Mu 7QFk8nW/BwU4Dl4YQlyaZd85X02LYix3Y1Sh8NHnOqg8/Lq6C9wnoJBvh Tcm57kICRQvhoE7T8OSGZfUUdyWlMKadjvs4DBD76ZFtQU6G3fGTfNQAx w==; X-IronPort-AV: E=McAfee;i="6200,9189,10252"; a="232555566" X-IronPort-AV: E=Sophos;i="5.88,353,1635231600"; d="scan'208";a="232555566" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2022 08:41:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,353,1635231600"; d="scan'208";a="499623247" Received: from lkp-server01.sh.intel.com (HELO d95dc2dabeb1) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 08 Feb 2022 08:41:51 -0800 Received: from kbuild by d95dc2dabeb1 with local (Exim 4.92) (envelope-from ) id 1nHTYt-0000Rz-4W; Tue, 08 Feb 2022 16:41:51 +0000 Date: Wed, 9 Feb 2022 00:41:07 +0800 From: kernel test robot To: Potin Lai , Guenter Roeck , Heikki Krogerus , Greg Kroah-Hartman Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Patrick Williams , Potin Lai Subject: Re: [PATCH v2 1/2] usb: typec: tcpm: add interface for passing supported_pd_rev from tcpc_dev Message-ID: <202202090006.YLbevIuT-lkp@intel.com> References: <20220208112226.9108-2-potin.lai@quantatw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220208112226.9108-2-potin.lai@quantatw.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.1 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 Potin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on usb/usb-testing] [also build test WARNING on v5.17-rc3 next-20220208] [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/Potin-Lai/usb-typec-tcpm-add-interface-for-passing-supported_pd_rev-from-tcpc_dev/20220208-202246 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing config: hexagon-randconfig-r034-20220208 (https://download.01.org/0day-ci/archive/20220209/202202090006.YLbevIuT-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project e8bff9ae54a55b4dbfeb6ba55f723abbd81bf494) 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/0day-ci/linux/commit/322696594704fa918e63d1c80fa6d346a02e9a28 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Potin-Lai/usb-typec-tcpm-add-interface-for-passing-supported_pd_rev-from-tcpc_dev/20220208-202246 git checkout 322696594704fa918e63d1c80fa6d346a02e9a28 # 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=hexagon SHELL=/bin/bash drivers/usb/typec/tcpm/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/usb/typec/tcpm/tcpm.c:581:9: warning: comparison of distinct pointer types ('typeof (rev) *' (aka 'unsigned int *') and 'typeof (2) *' (aka 'int *')) [-Wcompare-distinct-pointer-types] return min(rev, PD_MAX_REV); ^~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:45:19: note: expanded from macro 'min' #define min(x, y) __careful_cmp(x, y, <) ^~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ 1 warning generated. vim +581 drivers/usb/typec/tcpm/tcpm.c 573 574 static u32 tcpm_pd_supported_rev(struct tcpm_port *port) 575 { 576 u32 rev = PD_MAX_REV; 577 578 if (port->tcpc->supported_pd_rev) 579 rev = port->tcpc->supported_pd_rev(port->tcpc); 580 > 581 return min(rev, PD_MAX_REV); 582 } 583 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org