Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp824224pxb; Wed, 16 Feb 2022 05:20:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKAGyfMbA7jBUp29nWpRpYJgImXUA1IPWL3gDysLVbCB+gDrnTEU64fc8RjnsHCa28VOvg X-Received: by 2002:a17:906:cec5:b0:6d0:433:543f with SMTP id si5-20020a170906cec500b006d00433543fmr1430596ejb.672.1645017608381; Wed, 16 Feb 2022 05:20:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645017608; cv=none; d=google.com; s=arc-20160816; b=PL7iztfh5r8LJu9whg1CV1H+il2mi/EsfS3jpXmmV5kuIqw+TB7XUllWSKHgHbLngA AaLHp0D/63hgnG6IhNdjSmOtzwvTTWaM0vzZ26AJ+IvrpD82jzS883X3rFNlnWOlDDO2 EJmEz3IRLqaG8XD2TdxKT6L5ixVC1Glq0IRnMTip6DWciZC1HO77Z6GHLIcQXVEwHE+b ptlSP5IYh+URTYmZV8CaT7BKEA5p4hgIwmIAzUT/1NSVaeGAFAv52fDaEOAFfzSdW+7Y 0tRFIEaFzqdv5TW8sReaLoUgI1WYPZ091lDpUjQvDy+U72KyzaYncrDfwP5nhcoE/If8 tDzA== 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=02V5O5uXwVJnB9JtbKigcPos5Cdl5NmpXqSFujiMUTg=; b=HwmbJ8AtF2nIQKVESB9EjOBfRZhV4ihJpoCtZWBR3xH/5GkXHB6e2b3CvPaEYk3aTQ DbrVWcy3/a+jlpR+xn4sv7zQoxx97guAGXHqs4DLOXEIkI6XrvCzO9TRSogjQ2H/ipno aqOB7RBwPBXM83orlUJefPn3WNWmRvguTmc5moqSaZEmpDmfI+oR2XD2cT8VmX/Ft67S Y3A06utHuNgPYoglbJcqzSW+9lt6NN2D77FCe9pYPA87Ul40aaad9T86ptscrJaPGBxz d0qcZrVZR1UJGOhX4YZw2umAi2YRouqSvmgpIUD3fP98ht7ueGsPQEq6cPPZzM073AuZ +Kmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BHqPZMrA; 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 v14si1872550edx.98.2022.02.16.05.19.45; Wed, 16 Feb 2022 05:20:08 -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=BHqPZMrA; 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 S233310AbiBPMgx (ORCPT + 99 others); Wed, 16 Feb 2022 07:36:53 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:55138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231156AbiBPMgv (ORCPT ); Wed, 16 Feb 2022 07:36:51 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B06913EA5 for ; Wed, 16 Feb 2022 04:36:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645014999; x=1676550999; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=4VVNkngBUvjf2UbRLWf5djKaS/NI5B4cK7i5F8dSJ4A=; b=BHqPZMrAZo8Zpn41tUjsyzOXE9w/izmtP5xXJOnn9AwjPXaf7Kh9gmrF JgSU3/dV4BcpbmLoKwHDLwlsoAGq2imBocUzcfU2FadQ1Y6pcCzJjgtV1 8N8i5IS+PERWlwo2MKENW439+42Qq2XSPxi9gkouHD2LpCHHbwa3VEhdG dom2MantvM9XrLGIv/DMsNqDWD9OENESsjxCklNT+nrA9CWlOz3bBcWpm e9NYuVzA9IHG4xsQvQNnxSXh2VqC3SVOnFE1aFniTHXJ8ShNmvLXt7f2z /CesbIuUHEK4vOeKc9yrGwGG6BKJklkDlfy60jHx+Mdkl2LmzY2Y/SPFC w==; X-IronPort-AV: E=McAfee;i="6200,9189,10259"; a="234131856" X-IronPort-AV: E=Sophos;i="5.88,373,1635231600"; d="scan'208";a="234131856" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2022 04:36:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,373,1635231600"; d="scan'208";a="498967815" Received: from lkp-server01.sh.intel.com (HELO d95dc2dabeb1) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 16 Feb 2022 04:36:37 -0800 Received: from kbuild by d95dc2dabeb1 with local (Exim 4.92) (envelope-from ) id 1nKJXw-000Anc-9o; Wed, 16 Feb 2022 12:36:36 +0000 Date: Wed, 16 Feb 2022 20:35:38 +0800 From: kernel test robot To: Tong Zhang , Benson Leung , Guenter Roeck , linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Tong Zhang Subject: Re: [PATCH] platform/chrome: cros_ec: honor acpi=off Message-ID: <202202162047.eCFMqb2x-lkp@intel.com> References: <20220216062601.779690-1-ztong0001@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220216062601.779690-1-ztong0001@gmail.com> 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 Tong, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on chrome-platform/for-next] [also build test WARNING on 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/Tong-Zhang/platform-chrome-cros_ec-honor-acpi-off/20220216-142709 base: https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next config: x86_64-randconfig-a012 (https://download.01.org/0day-ci/archive/20220216/202202162047.eCFMqb2x-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 # https://github.com/0day-ci/linux/commit/66345a4aecd6e4acba257476c6e44559fccca143 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Tong-Zhang/platform-chrome-cros_ec-honor-acpi-off/20220216-142709 git checkout 66345a4aecd6e4acba257476c6e44559fccca143 # 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=x86_64 SHELL=/bin/bash drivers/platform/chrome/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/platform/chrome/cros_ec_lpc.c:553:6: warning: address of function 'acpi_disable' will always evaluate to 'true' [-Wpointer-bool-conversion] if (acpi_disable) ~~ ^~~~~~~~~~~~ drivers/platform/chrome/cros_ec_lpc.c:553:6: note: prefix with the address-of operator to silence this warning if (acpi_disable) ^ & 1 warning generated. vim +553 drivers/platform/chrome/cros_ec_lpc.c 547 548 static int __init cros_ec_lpc_init(void) 549 { 550 int ret; 551 acpi_status status; 552 > 553 if (acpi_disable) 554 return -ENODEV; 555 556 status = acpi_get_devices(ACPI_DRV_NAME, cros_ec_lpc_parse_device, 557 &cros_ec_lpc_acpi_device_found, NULL); 558 if (ACPI_FAILURE(status)) 559 pr_warn(DRV_NAME ": Looking for %s failed\n", ACPI_DRV_NAME); 560 561 if (!cros_ec_lpc_acpi_device_found && 562 !dmi_check_system(cros_ec_lpc_dmi_table)) { 563 pr_err(DRV_NAME ": unsupported system.\n"); 564 return -ENODEV; 565 } 566 567 cros_ec_lpc_mec_init(EC_HOST_CMD_REGION0, 568 EC_LPC_ADDR_MEMMAP + EC_MEMMAP_SIZE); 569 570 /* Register the driver */ 571 ret = platform_driver_register(&cros_ec_lpc_driver); 572 if (ret) { 573 pr_err(DRV_NAME ": can't register driver: %d\n", ret); 574 cros_ec_lpc_mec_destroy(); 575 return ret; 576 } 577 578 if (!cros_ec_lpc_acpi_device_found) { 579 /* Register the device, and it'll get hooked up automatically */ 580 ret = platform_device_register(&cros_ec_lpc_device); 581 if (ret) { 582 pr_err(DRV_NAME ": can't register device: %d\n", ret); 583 platform_driver_unregister(&cros_ec_lpc_driver); 584 cros_ec_lpc_mec_destroy(); 585 } 586 } 587 588 return ret; 589 } 590 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org