Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1502941rdb; Tue, 30 Jan 2024 23:54:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFLrX12mDZhJOIqGAx1kAwfI2NuhsYLjrnXf6Rvn0oeAAFBM9SHaJ7KMy7ypVbWK/nhmdBn X-Received: by 2002:a05:6402:946:b0:55f:5e7b:7c66 with SMTP id h6-20020a056402094600b0055f5e7b7c66mr463736edz.25.1706687697998; Tue, 30 Jan 2024 23:54:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706687697; cv=pass; d=google.com; s=arc-20160816; b=uDqdR1thP1Q0QApkxfsc1GEKsIxugkhmR5zdvNf+t80a1dqBrrQKU41lx67OkY7Il8 31BP4QP0MxkgEQ1IhktEl9vKfn/BkCSHWRe33rB2Cs3E6THNq+Tr/umEI3/f400a7MsR +gwWHeP18VW0LIpR0G/KLNPq1wEXrl3T7jfzaJA0sBz1vS/KmxhnJ++V6xTWX8wehFHK I3QGPm3ktnamszu2ER5oDKd1+vO783B3AW2A8jxlfI0d1ltT8zac56S3Af0OF5irmbvr cvDGigH/qpCs0gm+PX1l6Ljv+hK9iXxIXdCBXHLGOy6w/K3miikn7e8J3KCaKDH8gu62 udjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YicfcdlGkUyRgnmvlhBH6ixt/8agGNg7IDdwrjQCPs8=; fh=QALOR7aXzZdEn+9lwDJ+B1DMtQQRjAXRt/IUWtV8xbU=; b=WVRV8QXuiYkJaPwHjFliX6lWEDbc4pXPRPfSgzc6G1IFbFd7lhQbR4F7c5mUoDIbkz bYtqFKeAZaHGPsmUgpNRhO12s81QlN2xKYEgKcaYyfhv2vo4N5yamIMrGE+pd84G+fkd AtO+oio9NBzFTq4i28nR4dW/DGwjO0180whGuCl2opbQ3OvkVkDREPN+TjyzDtFb5dfJ k/b0tdGpp+xFjggViM2tJ4OcET0mKIlYsyEEu2qx+xYsOfUdP1YWb7afNss527kxjw+i d2KXcR4QkTYfefSBP9FUjgAdVbSSrZGoNmNEJdA8yCaIRszvUTAngfasc0Q5c9t6j7VK z94w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kSxLEciK; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-45956-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45956-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCVPz8k6pP7DZPH0DOkY6E2B049bq7Be7AmZe+wQxyOiTUhWALlG3MC/hwqWEtmXHntDnc4XxxzoR8dGJaIDEi6j0dytHlOhAeYrUjcxEw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ew11-20020a056402538b00b0055c92372da6si5593460edb.483.2024.01.30.23.54.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 23:54:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45956-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kSxLEciK; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-45956-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45956-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 62EF71F233F8 for ; Wed, 31 Jan 2024 07:54:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F4C458108; Wed, 31 Jan 2024 07:54:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kSxLEciK" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3162E5DF14; Wed, 31 Jan 2024 07:54:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706687658; cv=none; b=F9vKtZ4/xPDRUQQukP0eOidApgUQFEJkozNN3oBmhpNqS5gSmeFOSQtOh35H5PWz+jbxgVpd3dMZAk4fSHFOtGECFfbww3BG0cpaVW3ZjQbgN9L+0XteThAyspODgtV4fUJi2cG3R806xTp/al9Y31nSUMN5zplhI5wZ3Ebp330= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706687658; c=relaxed/simple; bh=GOKhSGDf9nnAPUh5jgHWvj3w8Uf0a1AL0J9P0D/+5sY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SHQRBIGun9QCC+RG3sqB7qPECNdUcxR8MtZ465l47ZrEp+qFQM04/gbAQC4N27gWS089MoHi1wFaLQ8hYWnv2mmu/YOcmSfQ2/uXwwXoAYX+hUuftZo1ODaLG80kvODEsV9HOtVZTRBFSIiK7Oicr43tt1F2ioEbAC08P9rj5ro= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=kSxLEciK; arc=none smtp.client-ip=198.175.65.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706687656; x=1738223656; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=GOKhSGDf9nnAPUh5jgHWvj3w8Uf0a1AL0J9P0D/+5sY=; b=kSxLEciKljyXmlqsjMEuHSzbYJSvnsw4FWxXWYF/5wF8IQir7MbhLoRB t7RNiEebt23URCRdAUpSnwVw21aq/0YK/XxZ1yF6R+GzCV0eQDFd0QYl1 Bm8hWL0M195cXh5bv62ySe/NdotGYZw8aI/SGwAaNrbBcEdpgnRDc5Asw rywiscx8jQQCH/jVbE/QE3I+pBC2k2BvKWlS6wQENT3zy+q1odtqQ1Cxd P6mPdTxvuiNqg9EWHXer26WX+C2RlMFeylVG+1PD8q9LFHKhlZ7pDmJ6E TBNaJfKGPKQ4wRUbmCKztrGY45YFxqK6e7FOmpInZ1OqjCcpgSDl2n7wF A==; X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="3376819" X-IronPort-AV: E=Sophos;i="6.05,231,1701158400"; d="scan'208";a="3376819" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jan 2024 23:54:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="911707274" X-IronPort-AV: E=Sophos;i="6.05,231,1701158400"; d="scan'208";a="911707274" Received: from lkp-server02.sh.intel.com (HELO 59f4f4cd5935) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 30 Jan 2024 23:54:11 -0800 Received: from kbuild by 59f4f4cd5935 with local (Exim 4.96) (envelope-from ) id 1rV5Pj-0001Iq-00; Wed, 31 Jan 2024 07:53:53 +0000 Date: Wed, 31 Jan 2024 15:53:01 +0800 From: kernel test robot To: Mario Limonciello , amd-gfx@lists.freedesktop.org, Alex Deucher , Harry Wentland , "Rafael J . Wysocki" , Hans de Goede Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, "open list:ACPI" , open list , "open list:DRM DRIVERS" , Melissa Wen , Mark Pearson , Mario Limonciello Subject: Re: [PATCH v2 2/4] drm: Add drm_get_acpi_edid() helper Message-ID: <202401311541.bDe2glWR-lkp@intel.com> References: <20240130192608.11666-3-mario.limonciello@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240130192608.11666-3-mario.limonciello@amd.com> Hi Mario, kernel test robot noticed the following build errors: [auto build test ERROR on rafael-pm/linux-next] [also build test ERROR on rafael-pm/acpi-bus linus/master v6.8-rc2 next-20240131] [cannot apply to drm-misc/drm-misc-next rafael-pm/devprop] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Mario-Limonciello/ACPI-video-Handle-fetching-EDID-that-is-longer-than-256-bytes/20240131-032909 base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next patch link: https://lore.kernel.org/r/20240130192608.11666-3-mario.limonciello%40amd.com patch subject: [PATCH v2 2/4] drm: Add drm_get_acpi_edid() helper config: i386-buildonly-randconfig-002-20240131 (https://download.01.org/0day-ci/archive/20240131/202401311541.bDe2glWR-lkp@intel.com/config) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240131/202401311541.bDe2glWR-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202401311541.bDe2glWR-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/platform/x86/dell/dell-wmi-ddv.c:647:12: error: call to undeclared function 'acpi_device_uid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 647 | uid_str = acpi_device_uid(acpi_dev); | ^ >> drivers/platform/x86/dell/dell-wmi-ddv.c:647:10: error: incompatible integer to pointer conversion assigning to 'const char *' from 'int' [-Wint-conversion] 647 | uid_str = acpi_device_uid(acpi_dev); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/platform/x86/dell/dell-wmi-ddv.c:660:35: error: call to undeclared function 'to_acpi_device'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 660 | ret = dell_wmi_ddv_battery_index(to_acpi_device(dev->parent), &index); | ^ >> drivers/platform/x86/dell/dell-wmi-ddv.c:660:35: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct acpi_device *' [-Wint-conversion] 660 | ret = dell_wmi_ddv_battery_index(to_acpi_device(dev->parent), &index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/platform/x86/dell/dell-wmi-ddv.c:643:59: note: passing argument to parameter 'acpi_dev' here 643 | static int dell_wmi_ddv_battery_index(struct acpi_device *acpi_dev, u32 *index) | ^ drivers/platform/x86/dell/dell-wmi-ddv.c:679:35: error: call to undeclared function 'to_acpi_device'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 679 | ret = dell_wmi_ddv_battery_index(to_acpi_device(dev->parent), &index); | ^ drivers/platform/x86/dell/dell-wmi-ddv.c:679:35: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct acpi_device *' [-Wint-conversion] 679 | ret = dell_wmi_ddv_battery_index(to_acpi_device(dev->parent), &index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/platform/x86/dell/dell-wmi-ddv.c:643:59: note: passing argument to parameter 'acpi_dev' here 643 | static int dell_wmi_ddv_battery_index(struct acpi_device *acpi_dev, u32 *index) | ^ drivers/platform/x86/dell/dell-wmi-ddv.c:705:35: error: call to undeclared function 'to_acpi_device'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 705 | ret = dell_wmi_ddv_battery_index(to_acpi_device(battery->dev.parent), &index); | ^ drivers/platform/x86/dell/dell-wmi-ddv.c:705:35: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct acpi_device *' [-Wint-conversion] 705 | ret = dell_wmi_ddv_battery_index(to_acpi_device(battery->dev.parent), &index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/platform/x86/dell/dell-wmi-ddv.c:643:59: note: passing argument to parameter 'acpi_dev' here 643 | static int dell_wmi_ddv_battery_index(struct acpi_device *acpi_dev, u32 *index) | ^ 8 errors generated. Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for ACPI_WMI Depends on [n]: X86_PLATFORM_DEVICES [=y] && ACPI [=n] Selected by [m]: - DRM [=m] && HAS_IOMEM [=y] && (AGP [=n] || AGP [=n]=n) && !EMULATED_CMPXCHG && HAS_DMA [=y] && X86 [=y] vim +660 drivers/platform/x86/dell/dell-wmi-ddv.c 3b7eeff93d2912 Armin Wolf 2023-02-09 642 a77272c1604186 Armin Wolf 2022-09-27 643 static int dell_wmi_ddv_battery_index(struct acpi_device *acpi_dev, u32 *index) a77272c1604186 Armin Wolf 2022-09-27 644 { a77272c1604186 Armin Wolf 2022-09-27 645 const char *uid_str; a77272c1604186 Armin Wolf 2022-09-27 646 a77272c1604186 Armin Wolf 2022-09-27 @647 uid_str = acpi_device_uid(acpi_dev); a77272c1604186 Armin Wolf 2022-09-27 648 if (!uid_str) a77272c1604186 Armin Wolf 2022-09-27 649 return -ENODEV; a77272c1604186 Armin Wolf 2022-09-27 650 a77272c1604186 Armin Wolf 2022-09-27 651 return kstrtou32(uid_str, 10, index); a77272c1604186 Armin Wolf 2022-09-27 652 } a77272c1604186 Armin Wolf 2022-09-27 653 a77272c1604186 Armin Wolf 2022-09-27 654 static ssize_t temp_show(struct device *dev, struct device_attribute *attr, char *buf) a77272c1604186 Armin Wolf 2022-09-27 655 { a77272c1604186 Armin Wolf 2022-09-27 656 struct dell_wmi_ddv_data *data = container_of(attr, struct dell_wmi_ddv_data, temp_attr); a77272c1604186 Armin Wolf 2022-09-27 657 u32 index, value; a77272c1604186 Armin Wolf 2022-09-27 658 int ret; a77272c1604186 Armin Wolf 2022-09-27 659 a77272c1604186 Armin Wolf 2022-09-27 @660 ret = dell_wmi_ddv_battery_index(to_acpi_device(dev->parent), &index); a77272c1604186 Armin Wolf 2022-09-27 661 if (ret < 0) a77272c1604186 Armin Wolf 2022-09-27 662 return ret; a77272c1604186 Armin Wolf 2022-09-27 663 a77272c1604186 Armin Wolf 2022-09-27 664 ret = dell_wmi_ddv_query_integer(data->wdev, DELL_DDV_BATTERY_TEMPERATURE, index, &value); a77272c1604186 Armin Wolf 2022-09-27 665 if (ret < 0) a77272c1604186 Armin Wolf 2022-09-27 666 return ret; a77272c1604186 Armin Wolf 2022-09-27 667 0331b1b0ba6537 Armin Wolf 2023-02-18 668 /* Use 2731 instead of 2731.5 to avoid unnecessary rounding */ 0331b1b0ba6537 Armin Wolf 2023-02-18 669 return sysfs_emit(buf, "%d\n", value - 2731); a77272c1604186 Armin Wolf 2022-09-27 670 } a77272c1604186 Armin Wolf 2022-09-27 671 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki