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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090418064119.GA9287@elte.hu>
Date:	Sat, 18 Apr 2009 08:41:19 +0200
From:	Ingo Molnar <mingo@...e.hu>
To:	"Han, Weidong" <weidong.han@...el.com>
Cc:	"Kay, Allen M" <allen.m.kay@...el.com>,
	"Yu, Fenghua" <fenghua.yu@...el.com>,
	"'linux-kernel@...r.kernel.org'" <linux-kernel@...r.kernel.org>,
	"'iommu@...ts.linux-foundation.org'" 
	<iommu@...ts.linux-foundation.org>,
	'David Woodhouse' <dwmw2@...radead.org>
Subject: Re: [PATCH 0/5] fix bugs of x2apic/intr-remap


* Han, Weidong <weidong.han@...el.com> wrote:

> Ingo Molnar wrote:
> > Note, there's a new compiler warning caused by your patches:
> > 
> >   arch/x86/kernel/apic/io_apic.c:2543: warning: 'eoi_ioapic_irq'
> > defined but not used 
> > 
> > most likely by:
> > 
> >   631dd75: x86, intr-remap: fix ack for interrupt remapping
> > 
> > 	Ingo
> 
> eoi_ioapic_irq is only used for remapped interrupt, so we should 
> define eoi_ioapic_irq and __eoi_ioapic_irq when #ifdef 
> CONFIG_INTR_REMAP.

Ok - please send a patch that fixes this.

Btw., it would be nice to reduce the number of #ifdef 
CONFIG_INTR_REMAP's in all .c files in general - or even eliminate 
them.

It might be feasible to move all the INTR_REMAP code into a separate 
.c file and only build it in the INTR_REMAP case. I have not tried 
to do that so i dont know - if the interfaces are too wide and 
unnatural to the rest of the ioapic code it might not improve the 
end result - but good layering generally does do the trick.

	Ingo
--
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