From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (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 9B3302ECE88 for ; Thu, 26 Jun 2025 15:35:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750952137; cv=none; b=XX8mJFzC2Qog9+T54Y9np0DFBlBwol5kgQnVHQ0cXnJzTPB4SqIdjytasJ58K6K8CkbwJ+r2vg8ttjOtpE7R47e1C2XGsYjAKo2hMe0/EGbh61PBK9MwGoC0MfngrxfYxjYZohQ4m6pnAu9SRIYIvQL08GCx60s9V417ntEDgIA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750952137; c=relaxed/simple; bh=DVxGAOB+z9HgOV6c2p86HhKpJK+II0e+oGR0iJDzZLU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aDx/wop10NPxqqxpKfElc4TCR0IbRVrPSfvzNzKcdOqAKtTctySf7G9rtFy+gnxz432KfcUYBnmCqPNU1NJFlBNpfBo0vxQC84HpppDDxhYOlE5qh9aIjZehRIhN0ML0w5r/Whqb5Es/qhiDUIe3LNI0LFMUUndgVRwEXAdeRPo= 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=G+Iq6z4L; arc=none smtp.client-ip=192.198.163.12 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="G+Iq6z4L" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1750952135; x=1782488135; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=DVxGAOB+z9HgOV6c2p86HhKpJK+II0e+oGR0iJDzZLU=; b=G+Iq6z4LkoyYdYUsC5utfV6zSP5zkHR+Pem9TRngIDv5/9znBGd4+707 uuMt2coMCTkwcXJMDSwX4wwUkELKrGRGsnMFQougTVFVx4oultuhF7Pyi VjGoghvgoy1LHxibxr5A/eFTQcwExITUJD5DQbwXlVIJjtWGEv7R8pnjh +Ilzexg7fMrIA2413jNiJHzoNne7Gw0HQP03tr7h04wPMQ/UQUQ8tEhvA Id0ZVer/8hNi2HknBLbqlQU1Zh1FX9kF762Z8XFPHtEqmH0HjG1/AnDhQ QTdrh/qKjEb74spQqBz49N41+YWb7xP94ScvXqapOB3HGNGSKwS6i+5kg g==; X-CSE-ConnectionGUID: TZUxa9THS3uoVoltQCOGzg== X-CSE-MsgGUID: Oqc+/hy9QJqcZyNxArM3iw== X-IronPort-AV: E=McAfee;i="6800,10657,11476"; a="57063443" X-IronPort-AV: E=Sophos;i="6.16,267,1744095600"; d="scan'208";a="57063443" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2025 08:35:28 -0700 X-CSE-ConnectionGUID: 7vwt+UJtR1CWF13eHODhjw== X-CSE-MsgGUID: BMHf2IvGREyl0k2RoQSt7A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,267,1744095600"; d="scan'208";a="157111055" Received: from black.fi.intel.com ([10.237.72.28]) by orviesa004.jf.intel.com with ESMTP; 26 Jun 2025 08:35:26 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id DFF3F2AD; Thu, 26 Jun 2025 18:35:24 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , nvdimm@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Dan Williams , Vishal Verma , Dave Jiang , Ira Weiny Subject: [PATCH v1 1/1] libnvdimm: Don't use "proxy" headers Date: Thu, 26 Jun 2025 18:35:23 +0300 Message-ID: <20250626153523.323447-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.47.2 Precedence: bulk X-Mailing-List: nvdimm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Update header inclusions to follow IWYU (Include What You Use) principle. Note that kernel.h is discouraged to be included as it's written at the top of that file. While doing that, sort headers alphabetically. Signed-off-by: Andy Shevchenko --- include/linux/libnvdimm.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/include/linux/libnvdimm.h b/include/linux/libnvdimm.h index e772aae71843..dce8787fba53 100644 --- a/include/linux/libnvdimm.h +++ b/include/linux/libnvdimm.h @@ -6,12 +6,12 @@ */ #ifndef __LIBNVDIMM_H__ #define __LIBNVDIMM_H__ -#include + +#include #include +#include #include #include -#include -#include struct badrange_entry { u64 start; @@ -80,7 +80,9 @@ typedef int (*ndctl_fn)(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, unsigned int cmd, void *buf, unsigned int buf_len, int *cmd_rc); +struct attribute_group; struct device_node; +struct module; struct nvdimm_bus_descriptor { const struct attribute_group **attr_groups; unsigned long cmd_mask; @@ -121,6 +123,7 @@ struct nd_mapping_desc { int position; }; +struct bio; struct nd_region; struct nd_region_desc { struct resource *res; @@ -147,8 +150,6 @@ static inline void __iomem *devm_nvdimm_ioremap(struct device *dev, return (void __iomem *) devm_nvdimm_memremap(dev, offset, size, 0); } -struct nvdimm_bus; - /* * Note that separate bits for locked + unlocked are defined so that * 'flags == 0' corresponds to an error / not-supported state. @@ -238,6 +239,8 @@ struct nvdimm_fw_ops { int (*arm)(struct nvdimm *nvdimm, enum nvdimm_fwa_trigger arg); }; +struct nvdimm_bus; + void badrange_init(struct badrange *badrange); int badrange_add(struct badrange *badrange, u64 addr, u64 length); void badrange_forget(struct badrange *badrange, phys_addr_t start, -- 2.47.2