Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp472022iob; Fri, 13 May 2022 05:54:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7W+sMgrDBtBgxERbpNMYsV2JCDSEj/ESl/z0Lry3YNwF90smzs/crtHPZgQJAqHsoJbCk X-Received: by 2002:a7b:c841:0:b0:394:890e:9195 with SMTP id c1-20020a7bc841000000b00394890e9195mr14986000wml.59.1652446454768; Fri, 13 May 2022 05:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652446454; cv=none; d=google.com; s=arc-20160816; b=0En9zH6JUgyjmfTUSb8JeVwTgUToZi7zjUlyd8SkekEkWuj88I0YH9hDiAzmLfC2Nr Te99lTyLF+24RzEVlC4Yn8ag5yf1ZjMm20fNHvH9DmiqiMQ9XzMw27tZnHpOnZNW+MHd trBiELnh6G2TfEU8os1ymXOi+6a/hNa73IE8UdTVqDbicDNZLCKFz6g2EwXXZ/RTkh9D lvWs0vF3zCgr/EAL7m51/GCnTmDMW6iKjUPEAYxuLSNFannxOGSU4DuvfTFP3rhvxYB3 aLh0KCk4y2MYzLDd6YROLd0iVT7hfos1BcB2YZgplNbWUrOs4wzYvsd3HLVqAYvlLdec 4ykQ== 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=Wfzws63O4MusuEIVfQ8wkyM7IGRQxN/Ngt26aMVjcbU=; b=OA77/nahrriyleBKCidJS3UI/lZV1iDSCfPSpjnPXdJ6vcxBTnBVIvgcWpOl70uFRj dl3j7OiAa7XgvsQvJ94uLvvqZ5lwdyQeDj9l7CNGPvk3q5IqlzCMseUMn8yfBiB71dA+ z+xrzDQINt2aEvzqOvYtBVgltx8/8VBINxnSr18dDzU4n+rh/vLvqUjcXexRsV+oXOIC iVsJLaA5Md61Pq79YyjdtfTepW5weMTZjYmbdfoziK/QAfDlYDGhOvw05NteWIA129Fv POfDWhGDGQ8g5zqFR52xly2l1c1GTS5USxRP9HnahO3mM7V2hxBGS9fJgjd89U+IA2Hd DqIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=c8gsRy5v; 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 y1-20020a056000168100b0020916c700f3si2872333wrd.682.2022.05.13.05.53.46; Fri, 13 May 2022 05:54:14 -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=c8gsRy5v; 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 S1352708AbiELKd2 (ORCPT + 99 others); Thu, 12 May 2022 06:33:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352688AbiELKdV (ORCPT ); Thu, 12 May 2022 06:33:21 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 315F722384E; Thu, 12 May 2022 03:33:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652351597; x=1683887597; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=j2jLl94ZVv6+GyAHgqDQMoLNb5is4/daKLdqORUvrdg=; b=c8gsRy5vrkVgf5ltd4jkh27OZFBQbAjROQCHP1hb46tNjRnfIA1ouAFz sIBlWfB43/C/oc5kT6TRCMomhblfCkLJzMTCtbTcSsQ4FWwzpy6YX1rVo YphJ6sDG8AkBECaC6mJiu7oK6isTxjWjMb1+9hFeaXUbkUWhjO6u9kakB 1Vj0AT1bi876t577ACjpv4boZtolbHugcKX5IbPmMi1r5ztoY5dmcitxL I9JJLhwgiPgomiG4SwQHLiFcQ278Bbfe9XkNfX4fjfpag1EIZa6O717N8 ZPuf3dR+DTErGSUn/Ailsd91AXdBtAeDswP53y7NRwCLnJKA+btXZRUMO A==; X-IronPort-AV: E=McAfee;i="6400,9594,10344"; a="269637629" X-IronPort-AV: E=Sophos;i="5.91,219,1647327600"; d="scan'208";a="269637629" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2022 03:33:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,219,1647327600"; d="scan'208";a="711867159" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 12 May 2022 03:33:11 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1np686-000KIM-T5; Thu, 12 May 2022 10:33:10 +0000 Date: Thu, 12 May 2022 18:32:25 +0800 From: kernel test robot To: Markuss Broks , linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Markuss Broks , Konrad Dybcio , Marijn Suijten , AngeloGioacchino Del Regno , Song Qiang , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Liam Girdwood , Mark Brown , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v2 2/5] proximity: vl53l0x: Prefer already initialized interrupt flags Message-ID: <202205121820.qRBa5PNP-lkp@intel.com> References: <20220511214718.50879-3-markuss.broks@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220511214718.50879-3-markuss.broks@gmail.com> X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Markuss, I love your patch! Yet something to improve: [auto build test ERROR on jic23-iio/togreg] [also build test ERROR on robh/for-next linux/master linus/master v5.18-rc6 next-20220511] [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/Markuss-Broks/Add-support-for-ToF-sensor-on-Yoshino-platform/20220512-054917 base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg config: s390-randconfig-r032-20220509 (https://download.01.org/0day-ci/archive/20220512/202205121820.qRBa5PNP-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 18dd123c56754edf62c7042dcf23185c3727610f) 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 s390 cross compiling tool for clang build # apt-get install binutils-s390x-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/b4103f031e2c0265ae4f15f107341bcfc83008f0 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Markuss-Broks/Add-support-for-ToF-sensor-on-Yoshino-platform/20220512-054917 git checkout b4103f031e2c0265ae4f15f107341bcfc83008f0 # 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=s390 SHELL=/bin/bash drivers/iio/proximity/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/iio/proximity/vl53l0x-i2c.c:60:18: error: call to undeclared function 'irq_get_trigger_type'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] int irq_flags = irq_get_trigger_type(client->irq); ^ 1 error generated. vim +/irq_get_trigger_type +60 drivers/iio/proximity/vl53l0x-i2c.c 56 57 static int vl53l0x_configure_irq(struct i2c_client *client, 58 struct iio_dev *indio_dev) 59 { > 60 int irq_flags = irq_get_trigger_type(client->irq); 61 struct vl53l0x_data *data = iio_priv(indio_dev); 62 int ret; 63 64 if (!irq_flags) 65 irq_flags = IRQF_TRIGGER_FALLING; 66 67 ret = devm_request_irq(&client->dev, client->irq, vl53l0x_handle_irq, 68 irq_flags, indio_dev->name, indio_dev); 69 if (ret) { 70 dev_err(&client->dev, "devm_request_irq error: %d\n", ret); 71 return ret; 72 } 73 74 ret = i2c_smbus_write_byte_data(data->client, 75 VL_REG_SYSTEM_INTERRUPT_CONFIG_GPIO, 76 VL_REG_SYSTEM_INTERRUPT_GPIO_NEW_SAMPLE_READY); 77 if (ret < 0) 78 dev_err(&client->dev, "failed to configure IRQ: %d\n", ret); 79 80 return ret; 81 } 82 -- 0-DAY CI Kernel Test Service https://01.org/lkp