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: <20100104115514.22f953ec@jbarnes-piketon>
Date:	Mon, 4 Jan 2010 11:55:14 -0800
From:	Jesse Barnes <jbarnes@...tuousgeek.org>
To:	unlisted-recipients:; (no To-header on input)
Cc:	"Rafael J. Wysocki" <rjw@...k.pl>,
	LKML <linux-kernel@...r.kernel.org>,
	Linux PCI <linux-pci@...r.kernel.org>
Subject: Re: [PATCH] PCI: Clean up build for CONFIG_PCI_QUIRKS unset

On Mon, 4 Jan 2010 08:34:01 -0800
Jesse Barnes <jbarnes@...tuousgeek.org> wrote:

> On Sat, 2 Jan 2010 22:57:24 +0100
> "Rafael J. Wysocki" <rjw@...k.pl> wrote:
> 
> > From: Rafael J. Wysocki <rjw@...k.pl>
> > 
> > Currently, drivers/pci/quirks.c is built unconditionally, but if
> > CONFIG_PCI_QUIRKS is unset, the only things actually built in this
> > file are definitions of global variables and empty functions (due to
> > the #ifdef CONFIG_PCI_QUIRKS embracing all of the code inside the
> > file).  This is not particularly nice and if someone overlooks
> > the #ifdef CONFIG_PCI_QUIRKS, build errors are introduced.
> > 
> > To clean that up, move the definitions of the global variables in
> > quirks.c that are always built to pci.c, move the definitions of
> > the empty functions (compiled when CONFIG_PCI_QUIRKS is unset) to
> > headers (additionally make these functions static inline) and modify
> > drivers/pci/Makefile so that quirks.c is only built if
> > CONFIG_PCI_QUIRKS is set.
> > 
> > Signed-off-by: Rafael J. Wysocki <rjw@...k.pl>
> > ---
> > 
> > I thought it might be useful to do something like this.
> > 
> > Please let me know what you think.
> 
> Thanks Rafael, I actually had a fix for this already from Dexuan, but
> I guess Linus applied yours instead.
> 
> Thanks for the fix.
> 

Oops this is a cleanup of the fix.  Will queue it up.

Thanks,
-- 
Jesse Barnes, Intel Open Source Technology Center
--
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