Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp762396lqe; Sun, 7 Apr 2024 02:39:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFMPCvJ+YCAJ3FHYBp5WRXlkTjeBDwKNzy0R1Wka1GVxAFDiwlV11RpMao6WvVGJr/KuNwsdHzA4UrH75GDGpy9BwbktNTlXRkMVaCbA== X-Google-Smtp-Source: AGHT+IE6dxwwdRhp5PVh9TUBPSewGqUYHfYB7/udpolAgRLHM19koKNcZeUsZLa+fCRaEePUPWdI X-Received: by 2002:a05:6a00:1acb:b0:6ec:fcfc:de6a with SMTP id f11-20020a056a001acb00b006ecfcfcde6amr7204664pfv.32.1712482761096; Sun, 07 Apr 2024 02:39:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712482761; cv=pass; d=google.com; s=arc-20160816; b=RsS27iybH8nD4cxQkrms2Sj+n1wNOq4Wxl4mz3ctJVo7DmHPAUbDpLcNE7datbpFEc 9vWFkDJB0MS5I+XGaK+0kgUi82/ZEXBZYtcyHnOyoovwPHED2sViH2Lkb/+AF173W243 h2/7vMRqyzLvHPjXhR7y2xnPh2DttWmAmHGdujwNvO+vT8FfmyoTAfZzX2bSGTAv30va yTotahVMUe/Vjx35Baj2SJW7ADX+4OPtLRM+BarR/8bsqpuBd/b1ChPbq0GGqRU9vBfv ATPcaGGFFe9fuyE6ijX/KIvrsG9WTqndIYtRtXwoFLIEWNrUH2Sfr8r/1pTUnD9y9bmx 4SDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=6wNVkp3mtQKkgZ/XCspDnpPKlLpVL06rMMysHMcic6s=; fh=IAXoC+lIm4gWBZW783m4yTPnLHBHONFvjaKne5EKRs8=; b=uTH8Xm4MP6wm61EiABqte6uvDFdvU09qr1/aMBtqt4wlT1gKTk5SXK8MdSuMz5bdLr 3kYF9F6heOUQQzC3fYdRc4lkwzEl8USSu88RmacrwIVaGMfAzmGepVP90gI2hMdUOuKK 8boKbAjEw9naq4DYm9w+fXbYV9aGjBLT0xps1ZW8wYh/KDk2EpOO6sfdmq9xiz6p9T8X YnevzMohOGsIy8noRvGC9gNsX6h9cOclxooi77tgzaRKF7ymF7Ia9Hb2JGNFbpfFgfbA KnVeHbEJhGJIwJuka07+USweBCcUyi8Wq+Pj4uSDV8YJplgy9bh/cjMFN0yYsCfjvbKf V06g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QG89tVRI; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-134197-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134197-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g4-20020aa78744000000b006e697b5ffdfsi4361490pfo.210.2024.04.07.02.39.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 02:39:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134197-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QG89tVRI; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-134197-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134197-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4A8412812C0 for ; Sun, 7 Apr 2024 06:34:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6622747F; Sun, 7 Apr 2024 06:33:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="QG89tVRI" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 B387E6AB9; Sun, 7 Apr 2024 06:33:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712471635; cv=none; b=nEwnZkYtexECWr1lZ2GFDbXctnVZGhI0tH8edm4fX5EFTY3YwLnEV1dTubCdfw8k/kUpfppcNsJcjTYD0Ag3lE+QKGCTVr4GHnrGvrQWk8NLrS3Ni5qRm+Orf7lofR2ec2nJAYkO+ZjbqfvktWv2rQRfkL7hrikVOx7V6Zk2J84= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712471635; c=relaxed/simple; bh=ueiNX1HaLfToIZUTUWgeWXk4WWITjkG0gU8uwB57+vc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=uuoPhHDBwFPg1hRsFMhhdtJc5vANz2U3vLDv5YoGqRUAsMWcD7A5YEztjaVMTV/W0aJtyeLjCTquAgNuX6n/9AKdb4V3YCdcalW0OAvxcC28P1oa0F7ZEuGjkNrB0nLnKYqwPz5QjXR+iIVE0o39FGjKUhTtgMFj8Jej1tLtj4E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=QG89tVRI; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712471633; x=1744007633; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ueiNX1HaLfToIZUTUWgeWXk4WWITjkG0gU8uwB57+vc=; b=QG89tVRI06LWwk9rMNWgfiyapdgfcvA+vLs/rkE48ognm6ekH3Nvjp4c Qp1dNg2jCbr7cv1ny2ugkmK4p17JbbQ6DhzOuHfWVwnesz6Wl2tHKMKS3 /c9CAB2y4G1bag9oTIYal3mZ3fI3QQqw192ksZo84yF7aemuOuEB8t3Wa RHxr7mMaM9ELBo0EBhRCFPIvanH7fJpIhIzj8cG6KygVOwCkc+Tzw0/Y0 yMVgA9i9T1+OlminvK2Ja/XEuWMbRvbWH//WoJnbEcvq+DBRzVqi0P/vP Bt3BDtZBagIw24ZNuiHKT0+tNUqgXYcZ+Ho7dHiwUYJhKVfn144uCFOOC w==; X-CSE-ConnectionGUID: Q7aEcHdsQFuYml1xVGm8nw== X-CSE-MsgGUID: sIAeDWqPQa2PsZZ17vdmPw== X-IronPort-AV: E=McAfee;i="6600,9927,11036"; a="18333299" X-IronPort-AV: E=Sophos;i="6.07,184,1708416000"; d="scan'208";a="18333299" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2024 23:33:52 -0700 X-CSE-ConnectionGUID: lyYkMamuTCC0iuuE5kEu/A== X-CSE-MsgGUID: ZaB5BIjbTOemTxDr/pIGew== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,184,1708416000"; d="scan'208";a="19684324" Received: from emscott-mobl.amr.corp.intel.com (HELO skuppusw-mobl3.amr.corp.intel.com) ([10.209.36.196]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2024 23:33:52 -0700 From: Kuppuswamy Sathyanarayanan To: "Rafael J . Wysocki" , linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Len Brown , Andy Shevchenko Subject: [PATCH v1] ACPI: Declare acpi_blacklisted() only if CONFIG_X86 is enabled Date: Sat, 6 Apr 2024 23:33:41 -0700 Message-Id: <20240407063341.3710801-1-sathyanarayanan.kuppuswamy@linux.intel.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The function acpi_blacklisted() is defined only when CONFIG_X86 is enabled. So to keep it consistent, protect its declaration with CONFIG_X86. Signed-off-by: Kuppuswamy Sathyanarayanan --- include/linux/acpi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 34829f2c517a..3ad6bed9eb4f 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -421,7 +421,9 @@ extern char *wmi_get_acpi_device_uid(const char *guid); extern char acpi_video_backlight_string[]; extern long acpi_is_video_device(acpi_handle handle); +#ifdef CONFIG_X86 extern int acpi_blacklisted(void); +#endif extern void acpi_osi_setup(char *str); extern bool acpi_osi_is_win8(void); -- 2.34.1