IB/qib: build issues with qib DCA and some config files
PATCH 1/2 IB/qib: build issues with qib DCA and some config files
The Kconfig needed some extra tests to avoid:
drivers/built-in.o: In function `qib_irq_notifier_notify':
(.text+0x561510): undefined reference to `dca3_get_tag'
and:
In file included from drivers/infiniband/hw/qib/qib_diag.c:53:0:
drivers/infiniband/hw/qib/qib.h:436:29: error: field 'notify' has
incomplete type
struct irq_affinity_notify notify;
^--- drivers/infiniband/hw/qib/Kconfig | 2 +- drivers/infiniband/hw/qib/qib.h | 6 +----- drivers/infiniband/hw/qib/qib_iba7322.c | 8 ++++++++ 3 files changed, 10 insertions(+), 6 deletions(-)
drivers/infiniband/hw/qib/Kconfig +1 -1
@@ -8,7 +8,7 @@ config INFINIBAND_QIB config INFINIBAND_QIB_DCA bool "QIB DCA support" - depends on DCA && INFINIBAND_QIB + depends on INFINIBAND_QIB && DCA && SMP && GENERIC_HARDIRQS && !(INFINIBAND_QIB=y && DCA=m) default y ---help--- Setting this enables DCA support on some Intel chip sets
drivers/infiniband/hw/qib/qib.h +1 -5
@@ -441,11 +441,7 @@ struct qib_verbs_txreq {#define MAX_NAME_SIZE 64#ifdef CONFIG_INFINIBAND_QIB_DCA -struct qib_irq_notify { -int rcv; -void *arg; -struct irq_affinity_notify notify; -}; +struct qib_irq_notify ;#endif struct qib_msix_entry {
drivers/infiniband/hw/qib/qib_iba7322.c +8 -0
@@ -522,6 +522,14 @@ static const u8 qib_7322_physportstate[0x20] = { [0x17 ] =IB_PHYSPORTSTATE_CFG_TRAIN }; +#ifdef CONFIG_INFINIBAND_QIB_DCA +struct qib_irq_notify { +int rcv; +void *arg; +struct irq_affinity_notify notify; +}; +#endif +struct qib_chip_specific {u64 __iomem *cregbase;u64 *cntrs;
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20130621152303.1776.36117.stgit-K+u1se/DcYrLESAwzcoQNrvm/[email protected]
PATCH 2/2 IB/qib; fix static sparse warnings
From: Fengguang Wu <[email protected]>
This patch corrects the following sparse warnings:
qib_iba7322.c:2746:6: warning: symbol 'qib_irq_notifier_notify' was not declared. Should it be static? qib_iba7322.c:2762:6: warning: symbol 'qib_irq_notifier_release' was not declared. Should it be static?
--- drivers/infiniband/hw/qib/qib_iba7322.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/infiniband/hw/qib/qib_iba7322.c +2 -2
@@ -2751,7 +2751,7 @@ static void qib_setup_dca(struct qib_devdata *dd)setup_dca_notifier (dd, &cspec->msix_entries[i]); } -void qib_irq_notifier_notify (struct irq_affinity_notify *notify, +static void qib_irq_notifier_notify (struct irq_affinity_notify *notify,const cpumask_t *mask) { struct qib_irq_notify *n =
@@ -2767,7 +2767,7 @@ void qib_irq_notifier_notify(struct irq_affinity_notify *notify, } } -void qib_irq_notifier_release (struct kref *ref) +static void qib_irq_notifier_release (struct kref *ref) {struct qib_irq_notify *n = container_of(ref, struct qib_irq_notify, notify.kref);
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html