lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1426581707-9248-2-git-send-email-wuyun.wu@huawei.com>
Date:	Tue, 17 Mar 2015 16:41:46 +0800
From:	Yun Wu <wuyun.wu@...wei.com>
To:	<tglx@...utronix.de>, <jiang.liu@...ux.intel.com>
CC:	<linux-kernel@...r.kernel.org>, Yun Wu <wuyun.wu@...wei.com>
Subject: [PATCH 1/2] genirq: use proper interface

An interface provided by kernel/irq/chip.c is designed to do the
same thing, so just use it.

Signed-off-by: Yun Wu <wuyun.wu@...wei.com>
---
 kernel/irq/msi.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c
index 3e18163..b773708 100644
--- a/kernel/irq/msi.c
+++ b/kernel/irq/msi.c
@@ -50,11 +50,10 @@ static inline void irq_chip_write_msi_msg(struct irq_data *data,
 int msi_domain_set_affinity(struct irq_data *irq_data,
 			    const struct cpumask *mask, bool force)
 {
-	struct irq_data *parent = irq_data->parent_data;
 	struct msi_msg msg;
 	int ret;

-	ret = parent->chip->irq_set_affinity(parent, mask, force);
+	ret = irq_chip_set_affinity_parent(irq_data, mask, force);
 	if (ret >= 0 && ret != IRQ_SET_MASK_OK_DONE) {
 		BUG_ON(irq_chip_compose_msi_msg(irq_data, &msg));
 		irq_chip_write_msi_msg(irq_data, &msg);
--
1.8.0


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ