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tyZWYu aA0KDQpTaWduZWQtb2ZmLWJ5OiBKYW1lcyBCb3R0b21sZXkgPEpCb3R0b21sZXlAUGFyYWxsZWxz LmNvbT4NCg0KLS0tDQoNCmRpZmYgLS1naXQgYS9pbmNsdWRlL2xpbnV4L2tyZWYuaCBiL2luY2x1 ZGUvbGludXgva3JlZi5oDQppbmRleCBhYmMwMTIwLi45YzA3ZGNlIDEwMDY0NA0KLS0tIGEvaW5j bHVkZS9saW51eC9rcmVmLmgNCisrKyBiL2luY2x1ZGUvbGludXgva3JlZi5oDQpAQCAtMTcsNiAr MTcsNyBAQA0KIA0KICNpbmNsdWRlIDxsaW51eC9idWcuaD4NCiAjaW5jbHVkZSA8bGludXgvYXRv bWljLmg+DQorI2luY2x1ZGUgPGxpbnV4L2tlcm5lbC5oPg0KIA0KIHN0cnVjdCBrcmVmIHsNCiAJ YXRvbWljX3QgcmVmY291bnQ7DQoNCg==
Greg Kroah-Hartman
Acked-byQuoted 10 lines · James Bottomley
This set of build failures just started appearing on parisc:
In file included from
drivers/input/serio/serio_raw.c:12:include/linux/kref.h: In function 'kref_get':include/linux/kref.h:40: error: 'TAINT_WARN' undeclared (first use in this function)include/linux/kref.h:40: error: (Each undeclared identifier is reported only onceinclude/linux/kref.h:40: error: for each function it appears in.)include/linux/kref.h: In function 'kref_sub':include/linux/kref.h:65: error: 'TAINT_WARN' undeclared (first use in this function)
Quoted 4 lines
It happens because
TAINT_WARNis defined inkernel.hand this particular compile doesn't seem to include it (no idea why it's just manifesting ... probably some #include file untangling exposed it). Fix by adding #include <linux/kernel.h> tolinux/kref.h
Does adding <linux/bug.h> fix it instead? We are using WARN_ON() here. Hm, but that needs kernel.h as well, ugh, what a mess.
Quoted 1 line
Signed-off-by James Bottomley <[email protected]>
On Tue, Jan 17, 2012 at 4:26 PM, Greg Kroah-Hartman <[email protected]> wr= ote:
Quoted 6 lines · James Bottomley
Quoted 5 lines
This set of build failures just started appearing on parisc:
In file included from
drivers/input/serio/serio_raw.c:12:include/linux/kref.h: In function 'kref_get':include/linux/kref.h:40: error: 'TAINT_WARN' undeclared (first use i=
n this function)
Quoted 1 line
Quoted 1 line
include/linux/kref.h:40: error: (Each undeclared identifier is repor=
ted only once
Quoted 3 lines
Quoted 3 lines
include/linux/kref.h:40: error: for each function it appears in.)include/linux/kref.h: In function 'kref_sub':include/linux/kref.h:65: error: 'TAINT_WARN' undeclared (first use i=
n this function)
Quoted 2 lines
Quoted 2 lines
It happens because
TAINT_WARNis defined inkernel.hand this partic=
ular
Quoted 2 lines
Quoted 2 lines
compile doesn't seem to include it (no idea why it's just manifesting ... probably some #include file untangling exposed it). =
=A0Fix
Quoted 3 lines
Quoted 1 line
by adding #include <
linux/kernel.h> tolinux/kref.hDoes adding <
linux/bug.h> fix it instead? =A0We are usingWARN_ON()h=
ere.
Quoted 1 line
Hm, but that needs
kernel.has well, ugh, what a mess.
I've got some work done already towards cleaning this up; aiming for getting it done and in linux-next for the 3.4 cycle.
https://lkml.org/lkml/2012/1/4/455
Paul.
---
Quoted 7 lines
Quoted 2 lines
Signed-off-by James Bottomley <[email protected]>--
To unsubscribe from this list: send the line "unsubscribe linux-kerne=
l" in
Quoted 3 lines
the body of a message to [email protected]
More majordomo info at =A0http://vger.kernel.org/majordomo-info.html Please read the FAQ at =A0http://www.tux.org/lkml/
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc"=
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html