login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
December
»
7
Re: [tip:x86/platform] x86: Unify current 3 similar ways of saving IRQ info
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Thomas Gleixner
Subject:
Re: [tip:x86/platform] x86: Unify current 3 similar ways of saving IRQ info
Date: Tuesday, December 7, 2010 - 8:56 am
On Tue, 7 Dec 2010, Feng Tang wrote:
quoted text
> On Tue, 7 Dec 2010 01:50:36 +0800 > Yinghai Lu <yinghai@kernel.org> wrote: > > +static void assign_to_mp_irq(struct mpc_intsrc *m, > + struct mpc_intsrc *mp_irq) > +{ > + mp_irq->dstapic = m->dstapic; > + mp_irq->type = m->type; > + mp_irq->irqtype = m->irqtype; > + mp_irq->irqflag = m->irqflag; > + mp_irq->srcbus = m->srcbus; > + mp_irq->srcbusirq = m->srcbusirq; > + mp_irq->dstirq = m->dstirq;
Can we please use the mrst version with memcpy ?
quoted text
> +} > + > +static int mp_irq_mpc_intsrc_cmp(struct mpc_intsrc *mp_irq, > + struct mpc_intsrc *m) > +{ > + if (mp_irq->dstapic != m->dstapic) > + return 1; > + if (mp_irq->type != m->type) > + return 2; > + if (mp_irq->irqtype != m->irqtype) > + return 3; > + if (mp_irq->irqflag != m->irqflag) > + return 4; > + if (mp_irq->srcbus != m->srcbus) > + return 5; > + if (mp_irq->srcbusirq != m->srcbusirq) > + return 6; > + if (mp_irq->dstirq != m->dstirq) > + return 7; > + > + return 0;
Same here. No caller is interested in the detailed return value. Thanks, tglx --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] x86: unify current 3 similar ways of saving IRQ info
, Feng Tang
, (Thu Dec 2, 9:11 pm)
[tip:x86/platform] x86: Unify current 3 similar ways of sa ...
, tip-bot for Feng Tang
, (Mon Dec 6, 8:01 am)
Re: [tip:x86/platform] x86: Unify current 3 similar ways o ...
, Yinghai Lu
, (Mon Dec 6, 10:50 am)
Re: [tip:x86/platform] x86: Unify current 3 similar ways o ...
, Thomas Gleixner
, (Mon Dec 6, 12:51 pm)
Re: [tip:x86/platform] x86: Unify current 3 similar ways o ...
, Feng Tang
, (Mon Dec 6, 10:32 pm)
Re: [tip:x86/platform] x86: Unify current 3 similar ways o ...
, Thomas Gleixner
, (Tue Dec 7, 8:56 am)
Re: [tip:x86/platform] x86: Unify current 3 similar ways o ...
, Yinghai Lu
, (Tue Dec 7, 11:43 am)
Re: [tip:x86/platform] x86: Unify current 3 similar ways o ...
, Thomas Gleixner
, (Tue Dec 7, 3:32 pm)
Re: [tip:x86/platform] x86: Unify current 3 similar ways o ...
, Yinghai Lu
, (Tue Dec 7, 6:43 pm)
Re: [tip:x86/platform] x86: Unify current 3 similar ways o ...
, Yinghai Lu
, (Tue Dec 7, 6:47 pm)
Re: [tip:x86/platform] x86: Unify current 3 similar ways o ...
, Feng Tang
, (Tue Dec 7, 6:52 pm)
Re: [tip:x86/platform] x86: Unify current 3 similar ways o ...
, Feng Tang
, (Tue Dec 7, 7:08 pm)
Re: [tip:x86/platform] x86: Unify current 3 similar ways o ...
, Feng Tang
, (Wed Dec 8, 12:18 am)
[tip:x86/apic-cleanups] x86: Unify 3 similar ways of savin ...
, tip-bot for Feng Tang
, (Thu Dec 9, 1:56 pm)
[tip:x86/apic-cleanups] x86: Further simplify mp_irq info ...
, tip-bot for Feng Tang
, (Thu Dec 9, 1:57 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Jesse Barnes
Re: [stable] [BUG][PATCH] cpqphp: fix kernel NULL pointer dereference
Greg KH
[003/136] p54usb: add Zcomax XG-705A usbid
Magnus Damm
[PATCH 03/07] ARM: Use shared GIC entry macros on Realview
Oliver Neukum
Re: [Bug #13682] The webcam stopped working when upgrading from 2.6.29 to 2.6.30
Martin Schwidefsky
Re: [PATCH] optimized ktime_get[_ts] for GENERIC_TIME=y
git
:
Junio C Hamano
Re: Some advanced index playing
Jeff King
Re: confusion over the new branch and merge config
Robin Rosenberg
Re: cvs2svn conversion directly to git ready for experimentation
Linus Torvalds
git binary size...
Ævar Arnfjörð Bjarmason
Re: Challenge with Git-Bash