* [PATCH] intel-iommu: remove some unused struct intel_iommu fields
@ 2008-11-20 14:04 Mark McLoughlin
2008-11-20 14:14 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: Mark McLoughlin @ 2008-11-20 14:04 UTC (permalink / raw)
To: Ingo Molnar, David Woodhouse; +Cc: linux-kernel, iommu
The seg, saved_msg and sysdev fields appear to be unused since
before the code was first merged.
linux/msi.h is not needed in linux/intel-iommu.h anymore since
there is no longer a reference to struct msi_msg. The MSI code
in drivers/pci/intel-iommu.c still has linux/msi.h included
via linux/dmar.h.
linux/sysdev.h isn't needed because there is no reference to
struct sys_device.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
---
drivers/pci/intel-iommu.c | 1 -
include/linux/intel-iommu.h | 5 -----
2 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c
index a269272..271f869 100644
--- a/drivers/pci/intel-iommu.c
+++ b/drivers/pci/intel-iommu.c
@@ -27,7 +27,6 @@
#include <linux/slab.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
-#include <linux/sysdev.h>
#include <linux/spinlock.h>
#include <linux/pci.h>
#include <linux/dmar.h>
diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h
index 3d017cf..1bff7bf 100644
--- a/include/linux/intel-iommu.h
+++ b/include/linux/intel-iommu.h
@@ -23,8 +23,6 @@
#define _INTEL_IOMMU_H_
#include <linux/types.h>
-#include <linux/msi.h>
-#include <linux/sysdev.h>
#include <linux/iova.h>
#include <linux/io.h>
#include <linux/dma_remapping.h>
@@ -289,7 +287,6 @@ struct intel_iommu {
void __iomem *reg; /* Pointer to hardware regs, virtual addr */
u64 cap;
u64 ecap;
- int seg;
u32 gcmd; /* Holds TE, EAFL. Don't need SRTP, SFL, WBF */
spinlock_t register_lock; /* protect register handling */
int seq_id; /* sequence id of the iommu */
@@ -302,8 +299,6 @@ struct intel_iommu {
unsigned int irq;
unsigned char name[7]; /* Device Name */
- struct msi_msg saved_msg;
- struct sys_device sysdev;
struct iommu_flush flush;
#endif
struct q_inval *qi; /* Queued invalidation info */
--
1.6.0.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] intel-iommu: remove some unused struct intel_iommu fields
2008-11-20 14:04 [PATCH] intel-iommu: remove some unused struct intel_iommu fields Mark McLoughlin
@ 2008-11-20 14:14 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2008-11-20 14:14 UTC (permalink / raw)
To: Mark McLoughlin; +Cc: Ingo Molnar, linux-kernel, iommu
On Thu, 2008-11-20 at 14:04 +0000, Mark McLoughlin wrote:
> The seg, saved_msg and sysdev fields appear to be unused since
> before the code was first merged.
>
> linux/msi.h is not needed in linux/intel-iommu.h anymore since
> there is no longer a reference to struct msi_msg. The MSI code
> in drivers/pci/intel-iommu.c still has linux/msi.h included
> via linux/dmar.h.
>
> linux/sysdev.h isn't needed because there is no reference to
> struct sys_device.
>
> Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Applied; thanks.
--
David Woodhouse Open Source Technology Centre
David.Woodhouse@intel.com Intel Corporation
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-20 14:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-20 14:04 [PATCH] intel-iommu: remove some unused struct intel_iommu fields Mark McLoughlin
2008-11-20 14:14 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®