Received: by 2002:a05:7208:c24f:b0:81:d631:dc8 with SMTP id w15csp392833rbd; Thu, 4 Apr 2024 12:21:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVMzzx8jZvUKvpYAmoNJLHDScOXaOztw//VGotG+XyA9n2QCKdDlm8BaKg9f68ZvX6lz/wUaa7kN/5M3uDRdxB4Fnig6ta3EqEPmCDJg== X-Google-Smtp-Source: AGHT+IHK7ECbXIVB7gmqOrZDOWYxQgD7vA5S3CjmmHkSSTox9ApR/VrkS7qgULWqTP7ej5o04Jnb X-Received: by 2002:a50:d792:0:b0:56c:17be:5b03 with SMTP id w18-20020a50d792000000b0056c17be5b03mr508593edi.36.1712258498058; Thu, 04 Apr 2024 12:21:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712258498; cv=pass; d=google.com; s=arc-20160816; b=qU0W0iEXLjyLqos7lGRyh712OyXUz/WLwVEHbCHTx18gSQOeQANR95Wc1jGyizoTAK vmEdyHCBq+i5AePFOlMHYzpMkWTEI03xIi06FhiTgX60tIS3tmEuQFfZ2FUqQ1gGOm/1 IcBlB6L5/BXVr9OIFNOIoU4fSUMyvMGOwAgEXNwhuSCzV4SU6yrWDd/8lIVn5XEg+SdI M8eqo13MeUkNbE51vAFAw2MWOq42EwxLxc7QxYsJMv4gOth5K4+0X1BpwyYuWkfXokZS m1J/brtzCnEF3efws7m4RyyEih4aZhOB/JaTTI9jpKdCzqOW7vqj212wLo25AEP2q8GA z8kA== 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=5JzjgkAvnyxPHEpCt1ob1r1Stdcj7M4y+cLGGuwdUf0=; fh=lyEelkjGXs9zKsGjX6LJSPKXnbzYoKlz4Dx04PQdxN0=; b=NCBr0U7sB+1rwt4meAbV3tsIjfivx13AJF7GyCMAyAbFAdoVKLEV9mR2fbnUyOE1VV H8bO3fCAm12mq5KyjkkpZQIp9yupJV/e7hIN4FRh1wdQ//kQV1/zTLVnNG+xx4Xw3piv GZVFW3js0yGdGwsC/052bBmStMCcdykezJn3XkDZxNgZFTgEIHnVJjyX9+IU21dEFm5G 6u3sLB0uULjaRXr32BxR5gcaOxtb2hfRyECh1Kh55KJ6JJFEtaIhlO7V9X0f2mU9NBMf TXdUYTpmTi4GEUVQw62ThhX5rGCKPRBE58zL4gWMHNg0cC3Rb5meMNSCU+ffS0XbYSEC fClg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OKzMYws+; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-132025-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132025-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f20-20020a50d554000000b0056dffbce5basi2181429edj.405.2024.04.04.12.21.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 12:21:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132025-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=OKzMYws+; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-132025-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132025-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 C4B401F2299B for ; Thu, 4 Apr 2024 19:21:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 518A3134CC7; Thu, 4 Apr 2024 19:21:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="OKzMYws+" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 9FE74134416; Thu, 4 Apr 2024 19:21:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712258477; cv=none; b=K18TwGKlqFn6JrrQXbViK2T3W0MEQlfqx+d63yEhVYNHkOOARJygr5GLnI9vjO7zgTmAsEdnqaQXh7L8v8sWjh8Mx2L+1DSArEHwIvRhGZFoufjblvenyOOiWjJwSudIYAHjIshzFahHDX+ldKgHqteYAuvp8f6JtJiu6PElr7I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712258477; c=relaxed/simple; bh=3xUa2jqh2u39W0T4E+6RUSmeJpuQ7opgooePMFTToJI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LOMVBAUNMxsExgE0SWO6E/hLxke/T3ISYKd5zHiyxdpTHTgdZyI4Abnr2gJD9xxrCv2AxIyFXTS5fY2zyLAWXPqDMggneSydL6Jc37GRt5Twv2Av7CFGQOZe5z9ILQInuLIPgJUP9efa28/09LqOrhB8xpS7TfmPlSgS0OF53QI= 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=OKzMYws+; arc=none smtp.client-ip=198.175.65.13 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=1712258476; x=1743794476; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=3xUa2jqh2u39W0T4E+6RUSmeJpuQ7opgooePMFTToJI=; b=OKzMYws+VHM+mxn/KRRS+RYeqh1ErX6a834YSAuR6OS6XVxYDMwBoE1K KKzVLKkHAUqHH6/WJKmUYUDH41froqe7CnlI3jGh48xODVa+oG/8vC6aj KS7jjEIlFxMG9potHz5kcDh1ohLFDmapRDhVAHHWoe62BAWxnkJGkxUAM VtYBRfctKNzSvqVv/Rk9J7B43EbXxxV7/gRxgEPhAQRR2YibBsANNzWAc cbB4AsLHp2aEKvDHWJ7oGQOyepVj+SLTUCt5/27uFyLwWtyi60t9oCq/t 2+DapfDLYL9zqWXHo5oVrQjXLQ4txF+W0HW5VxfbZgSl2g4cTQoCTWgVm A==; X-CSE-ConnectionGUID: YDxCdoA0S3WxJ6VcR9OE+Q== X-CSE-MsgGUID: N+cW49vpRRaR5t6trc8Aqw== X-IronPort-AV: E=McAfee;i="6600,9927,11034"; a="18710359" X-IronPort-AV: E=Sophos;i="6.07,180,1708416000"; d="scan'208";a="18710359" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2024 12:21:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11034"; a="937087028" X-IronPort-AV: E=Sophos;i="6.07,179,1708416000"; d="scan'208";a="937087028" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 04 Apr 2024 12:21:13 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 406B63E5; Thu, 4 Apr 2024 22:21:12 +0300 (EEST) From: Andy Shevchenko To: "Martin K. Petersen" , Damien Le Moal , Hannes Reinecke , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Niklas Cassel , Andy Shevchenko Subject: [PATCH v1 1/1] ata: libata: Move inclusion to where it belongs Date: Thu, 4 Apr 2024 22:21:11 +0300 Message-ID: <20240404192111.3580578-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Replace rather heavy acpi.h inclusion by a simple forward declaration in the public header. Update the local one to include acpi.h as some of the code requires it. Signed-off-by: Andy Shevchenko --- drivers/ata/libata.h | 3 +++ include/linux/libata.h | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index 5c685bb1939e..29e9387eb249 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h @@ -90,6 +90,9 @@ extern unsigned int ata_read_log_page(struct ata_device *dev, u8 log, #define to_ata_port(d) container_of(d, struct ata_port, tdev) /* libata-acpi.c */ + +#include + #ifdef CONFIG_ATA_ACPI extern unsigned int ata_acpi_gtf_filter; extern void ata_acpi_dissociate(struct ata_host *host); diff --git a/include/linux/libata.h b/include/linux/libata.h index 66937b787cca..68b969de410f 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include @@ -660,6 +659,10 @@ struct ata_cpr_log { struct ata_cpr cpr[] __counted_by(nr_cpr); }; +#ifdef CONFIG_ATA_ACPI +union acpi_object; +#endif + struct ata_device { struct ata_link *link; unsigned int devno; /* 0 or 1 */ -- 2.43.0.rc1.1.gbec44491f096