Re: [PATCH] lockdep: don't pull in includes when lockdep disabled



Quoting r. Arjan van de Ven <arjan@xxxxxxxxxxxxx>:
Subject: Re: [PATCH] lockdep: don't pull in includes when lockdep disabled

On Wed, 2006-07-26 at 09:26 +0300, Michael S. Tsirkin wrote:
Ingo, does the following look good to you?

Do not pull in various includes through lockdep.h if lockdep is disabled.

Hi,

can you tell us what this fixes? Eg is there a specific problem?

Er ... it's a cosmetic change - there's no serious problem, it is just that even
if I disable lockdep, linux/lockdep.h will pull in several headers even
though they are not needed -> more useless work for compiler to do.

I mean... we're adding ifdefs

Note this doesn't add ifdefs, just moves them around.

so there better be a real good reason for
them.... fixing something real would be such a reason ;-)

Well, I don't expect this specific bit to speed compilation up in any measurable
way, but unnecessary includes do have the tendency to accumulate and lead to
slower builds ...

Is that a reason?

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



Relevant Pages

  • Re: [PATCH] lockdep: dont pull in includes when lockdep disabled
    ... Do not pull in various includes through lockdep.h if lockdep is disabled. ... can you tell us what this fixes? ... fixing something real would be such a reason;-) ...
    (Linux-Kernel)
  • Re: (OT) Serious Sexual Etiquette Question.
    ... Jack Foley, Esq. ... reason I can't pull off the 1st/2nd date bangs with women who make over ... but for some reason I couldn't get by the fact ... Damn that sucks shit though. ...
    (rec.sport.pro-wrestling)
  • Re: Nerves of steel...
    ... > I pull wide loads too, like the one I pulled on my birthday. ... You cannot stand to be called a wannabe, but you will not put the baby to ... Do you want to know the REAL reason why you get all this wannabe stuff? ...
    (misc.transport.trucking)
  • Re: (OT) Serious Sexual Etiquette Question.
    ... reason I can't pull off the 1st/2nd date bangs with women who make over ... immediately ask "You have genital herpes, ... It was like a mushroom cloud exploded on my penis as well as my attraction ... but for some reason I couldn't get by the fact ...
    (rec.sport.pro-wrestling)
  • Re: (OT) Serious Sexual Etiquette Question.
    ... Jack Foley, Esq. ... (But only reached 2nd base, because for some reason I can't pull off the 1st/2nd date bangs with women who make over $50,000....I just can't; it's like the difficulty in entering a vagina increases commensurate with the vagina's owner's salary. ... but for some reason I couldn't get by the fact that she is a disease carrier. ... I was shocked at how quickly my attraction to her faded once I heard her terrible news. ...
    (rec.sport.pro-wrestling)