From: Thomas Gleixner <tglx@linutronix.de>
To: Feng Tang <feng.tang@intel.com>
Cc: Yinghai Lu <yinghai@kernel.org>,
"mingo@redhat.com" <mingo@redhat.com>,
"hpa@zytor.com" <hpa@zytor.com>,
"alan@linux.intel.com" <alan@linux.intel.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Brown, Len" <len.brown@intel.com>,
"linux-tip-commits@vger.kernel.org"
<linux-tip-commits@vger.kernel.org>
Subject: Re: [tip:x86/platform] x86: Unify current 3 similar ways of saving IRQ info
Date: Tue, 7 Dec 2010 16:56:21 +0100 (CET) [thread overview]
Message-ID: <alpine.LFD.2.00.1012071654080.2653@localhost6.localdomain6> (raw)
In-Reply-To: <20101207133204.4d913c5a@feng-i7>
On Tue, 7 Dec 2010, Feng Tang wrote:
> 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 ?
> +}
> +
> +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
next prev parent reply other threads:[~2010-12-07 15:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-03 4:11 [PATCH] x86: unify current 3 similar ways of saving IRQ info Feng Tang
2010-12-06 15:01 ` [tip:x86/platform] x86: Unify " tip-bot for Feng Tang
2010-12-06 17:50 ` Yinghai Lu
2010-12-06 19:51 ` Thomas Gleixner
2010-12-07 5:32 ` Feng Tang
2010-12-07 15:56 ` Thomas Gleixner [this message]
2010-12-07 18:43 ` Yinghai Lu
2010-12-07 22:32 ` Thomas Gleixner
2010-12-08 1:43 ` Yinghai Lu
2010-12-08 1:47 ` Yinghai Lu
2010-12-08 2:08 ` Feng Tang
2010-12-08 1:52 ` Feng Tang
2010-12-08 7:18 ` Feng Tang
2010-12-09 20:57 ` [tip:x86/apic-cleanups] x86: Further simplify mp_irq info handling tip-bot for Feng Tang
2010-12-09 20:56 ` [tip:x86/apic-cleanups] x86: Unify 3 similar ways of saving mp_irqs info tip-bot for Feng Tang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.00.1012071654080.2653@localhost6.localdomain6 \
--to=tglx@linutronix.de \
--cc=alan@linux.intel.com \
--cc=feng.tang@intel.com \
--cc=hpa@zytor.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=yinghai@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox