Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1127243lqa; Sun, 28 Apr 2024 21:04:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUjfBiK1IDaHEmpUOPxz+8v9pqtJUKMBrDoFo2myFS4Amm24fzTkoDIchKXyutq5pWwdurvbb4lxPryEeQviiaS1lDtHGmmk3AvdnAQFw== X-Google-Smtp-Source: AGHT+IGDQ1GYy3EZ2/4o955J9jU62sJeFvdL/Khobz+QfOZZsUPkGfOlANY3VyQKrY6KXbXgMWLr X-Received: by 2002:a05:622a:d2:b0:43a:c1a3:e0b0 with SMTP id p18-20020a05622a00d200b0043ac1a3e0b0mr4760774qtw.53.1714363497370; Sun, 28 Apr 2024 21:04:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714363497; cv=pass; d=google.com; s=arc-20160816; b=0wuFtA/gkC4Tt36Ari/sAJqcG4B0ik2MUva7YiMULAnqkAUkvsmbTFvYyP7uUeAUac CKBz81irUGx4EexO0OMVktArTnszctX9X1MBrkfNC1pFliFindxPuqf+XC5ADoBTWbto dq3+PiSKMZzcjMrHDvOAsshWbU41SuBumGsklLAnbbUB7zOD1f5HhsPvUIB1hEBR2XDx JoHJjMzXem56UT4+crxNBFyaI3/n6uTt1oEVl9kq3HQsoUWxXiq32QSwvOU0Tt3aot8I 6DRmjuoDyvFkOz9X1ZR/Z6HrhzouZ+QHdCsR2lB6xrOKYK1JkIHuld+vP0G9jIMuegA9 tCbw== 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=+bqlae3YsqmxtUKZmfMqxkgi7xNAdk7O0Bb8oNu4bn4=; fh=IAXoC+lIm4gWBZW783m4yTPnLHBHONFvjaKne5EKRs8=; b=aVz2R86azgvyUW6oxaM7qj/IJsPMGf9xSRMzhATt1jSB7Urt2ybSxLiT0FMa9l40js yCKs08GssbmJf7cE+p61ZdQv0iiq0T6ohjXombdwzTX0bQFkvCPYk7/6XyumSwb7ve1M D0qVbuqe5Fx8aPUuRWH2risWKM945F6rbtiEpsMguK/wTIpQ7+XsZZ/sCL+t2e91PxAg J687txZCvVGRNHQS3ZVSqwPgsRWf/x27b3hImkZbDYcz6bORF3Zc4RlSCoW9U0pmtNXc MpGnYEAL6yAN8ne5FlCPSbx0vX+FNjxjQtZsdSlCdTdWZFemRKiDbXiXiVh+E4ElS5H/ MzgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=K+PalhWm; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-161718-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161718-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p15-20020a05622a13cf00b0043aef3b0943si1339868qtk.272.2024.04.28.21.04.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 21:04:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161718-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=K+PalhWm; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-161718-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161718-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 208F91C2144A for ; Mon, 29 Apr 2024 04:04:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 48819946C; Mon, 29 Apr 2024 04:04:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="K+PalhWm" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.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 9DA918F7A; Mon, 29 Apr 2024 04:04:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714363490; cv=none; b=D+WU3bDi2daxR9HC9xS6fXbeZnhmbxJN//EzrNtG/kFV1zpYGrq4I1HWXsZkX7OHdM5EXL/RIdbAtfF8op6IhZqYeQYKkkcTXUcTnQS/CQc8WCISiRex5h1mT4vJ8aRAN8JzpZXDPn7zEdpypeijmoF9PfOtwQSqjl//5YlxUx0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714363490; c=relaxed/simple; bh=iZm0usd8atUAN8OAiOAVACJyVWUpT+dQO9Unn+MZ+fI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=LP+EB5ReyugI9rNmei9CcOmnoq9y32U3BM/WErajAZ+4bGdAiPr+EDwtlGh3qSIaMy0xEx6f7zLDqmHpO0tDoonykmIZfHYJNGUtySw+54i1jpIqkvB3It+irrDTkw65yE59CUhhOMjqz7fXTGX+LsmcE3Vc2cx/Ve5+nOEQhUY= 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=K+PalhWm; arc=none smtp.client-ip=192.198.163.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=1714363489; x=1745899489; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=iZm0usd8atUAN8OAiOAVACJyVWUpT+dQO9Unn+MZ+fI=; b=K+PalhWme/5h3T9FhseMQmTtBEpgCtfiqDdDSLZVdik9IHvz2nvg067J BVgUbirg1j5uVyEQgTp2H4iwOMx/GEcF/uUCWyik6VNo6s9hBuzLwAgmK SdZCwSyYMva0TTpTIc4KzJ4vU/EOQYgpxArjjAEp5qWl/fgk7vAoT2E35 SqTIOJQCGiSQmXtfXYHvc4pBVz44/0egWwb6v1VCh3NQ6sCDk9G8GFleB a+N7gDa82dACD3MocyjCgxfQ7VcZ+fwLBRAIGK2terbLLvq7w7iflDk/O cSHY48DbAJfNy7OlLlrDjfxMEdozwTilhdMaGy1Rfm/A/yo15FnPqnEBH w==; X-CSE-ConnectionGUID: Fec77ktfQWekzgtolE1dJQ== X-CSE-MsgGUID: KpTrUnZYSUukcL7Zl693kQ== X-IronPort-AV: E=McAfee;i="6600,9927,11057"; a="20629045" X-IronPort-AV: E=Sophos;i="6.07,238,1708416000"; d="scan'208";a="20629045" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2024 21:04:48 -0700 X-CSE-ConnectionGUID: I/R3vOiNSPqt7Vk/Cr+dxw== X-CSE-MsgGUID: ZIUStbLiQf2ce+1tFur4UQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,238,1708416000"; d="scan'208";a="30442671" Received: from kscheema-mobl.amr.corp.intel.com (HELO skuppusw-mobl3.amr.corp.intel.com) ([10.251.17.13]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2024 21:04:48 -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 v2] ACPI: Move acpi_blacklisted() declaration to asm/acpi.h Date: Sun, 28 Apr 2024 21:04:41 -0700 Message-Id: <20240429040441.748479-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 and is only used by X86 arch code. To align with its usage and definition conditions, move its declaration to asm/acpi.h Signed-off-by: Kuppuswamy Sathyanarayanan --- Changes since v1: - v1 link: https://lore.kernel.org/lkml/ZhQS6uYmpsxFD3gn@smile.fi.intel.com/T/ - Changed the title to "ACPI: Move acpi_blacklisted() declaration to asm/acpi.h" - Removed the declaration from include/linux/acpi.h arch/x86/include/asm/acpi.h | 2 ++ include/linux/acpi.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/acpi.h b/arch/x86/include/asm/acpi.h index f896eed4516c..5af926c050f0 100644 --- a/arch/x86/include/asm/acpi.h +++ b/arch/x86/include/asm/acpi.h @@ -56,6 +56,8 @@ static inline void disable_acpi(void) extern int acpi_gsi_to_irq(u32 gsi, unsigned int *irq); +extern int acpi_blacklisted(void); + static inline void acpi_noirq_set(void) { acpi_noirq = 1; } static inline void acpi_disable_pci(void) { diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 34829f2c517a..576e75b4529a 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -421,7 +421,6 @@ 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); -extern int acpi_blacklisted(void); extern void acpi_osi_setup(char *str); extern bool acpi_osi_is_win8(void); -- 2.34.1