* Re: [PATCH v4 2/2] pid: Remove pidhash [not found] <201710111737.ZHqmaPa5%fengguang.wu@intel.com> @ 2017-10-11 14:15 ` Rik van Riel 2017-10-11 21:22 ` Luck, Tony 0 siblings, 1 reply; 2+ messages in thread From: Rik van Riel @ 2017-10-11 14:15 UTC (permalink / raw) To: kbuild test robot, Gargi Sharma Cc: kbuild-all, linux-kernel, julia.lawall, akpm, mingo, pasha.tatashin, ktkhai, oleg, ebiederm, hch, Tony Luck, linux-ia64 [-- Attachment #1: Type: text/plain, Size: 2750 bytes --] On Wed, 2017-10-11 at 17:47 +0800, kbuild test robot wrote: > > > '__compiletime_assert_33' declared with attribute error: > > > BUILD_BUG_ON failed: sizeof(struct upid) != 32 > > _compiletime_assert(condition, msg, __compiletime_assert_, > __LINE__) > ^ > include/linux/compiler.h:556:4: note: in definition of macro > '__compiletime_assert' > prefix ## suffix(); \ > ^~~~~~ > include/linux/compiler.h:576:2: note: in expansion of macro > '_compiletime_assert' > _compiletime_assert(condition, msg, __compiletime_assert_, > __LINE__) > ^~~~~~~~~~~~~~~~~~~ > include/linux/build_bug.h:46:37: note: in expansion of macro > 'compiletime_assert' > #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), > msg) > ^~~~~~~~~~~~~~~~~~ > include/linux/build_bug.h:70:2: note: in expansion of macro > 'BUILD_BUG_ON_MSG' > BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) > ^~~~~~~~~~~~~~~~ > > > arch/ia64/kernel/asm-offsets.c:33:2: note: in expansion of macro > > > 'BUILD_BUG_ON' > > BUILD_BUG_ON(sizeof(struct upid) != 32); > ^~~~~~~~~~~~ > Looks like arch/ia64/kernel/asm-offsets.c throws a BUILD_BUG if sizeof(struct upid) != 32. Your patch reduced the size of struct upid, which is a nice thing, but now IA64 no longer builds. Lets see what IA64 was doing with the size of struct upid in the first place: in arch/ia64/kernel/asm-offsets.c: BUILD_BUG_ON(sizeof(struct upid) != 32); DEFINE(IA64_UPID_SHIFT, 5); Grepping for IA64_UPID_SHIFT leads us to some assembly code implementing fsys_getpid (why is that in assembly?!): add r8=IA64_PID_LEVEL_OFFSET,r17 ;; ld4 r8=[r8] // r8 = pid->level add r17=IA64_PID_UPID_OFFSET,r17 // r17 = &pid->numbers[0] ;; shl r8=r8,IA64_UPID_SHIFT ;; add r17=r17,r8 // r17 = &pid->numbers[pid->level] ;; ld4 r8=[r17] // r8 = pid->numbers[pid->level].nr ;; mov r17=0 Luckily it looks like this is only referencing the first members of struct upid, and you are removing the last member, so I suspect you will be fine changing the IA64 to this: BUILD_BUG_ON(sizeof(struct upid) != 16); DEFINE(IA64_UPID_SHIFT, 4); Tony, does that look ok to you? -- All Rights Reversed. [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 473 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [PATCH v4 2/2] pid: Remove pidhash 2017-10-11 14:15 ` [PATCH v4 2/2] pid: Remove pidhash Rik van Riel @ 2017-10-11 21:22 ` Luck, Tony 0 siblings, 0 replies; 2+ messages in thread From: Luck, Tony @ 2017-10-11 21:22 UTC (permalink / raw) To: Rik van Riel, lkp, Gargi Sharma Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, julia.lawall@lip6.fr, akpm@linux-foundation.org, mingo@kernel.org, pasha.tatashin@oracle.com, ktkhai@virtuozzo.com, oleg@redhat.com, ebiederm@xmission.com, hch@infradead.org, linux-ia64 PsKgwqDCoMKgwqDCoMKgwqBERUZJTkUoSUE2NF9VUElEX1NISUZULCA1KTsNCj4NCj4gR3JlcHBp bmcgZm9yIElBNjRfVVBJRF9TSElGVCBsZWFkcyB1cyB0byBzb21lIGFzc2VtYmx5DQo+IGNvZGUg aW1wbGVtZW50aW5nIGZzeXNfZ2V0cGlkICh3aHkgaXMgdGhhdCBpbiBhc3NlbWJseT8hKToNCg0K VGhlIGZhc3Qgc3lzdGVtIGNhbGwgcGF0aCBoYXMgYSB3aG9sZSBob3N0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wZWN0IHlvdSB3aWxsIGJlIGZpbmUgY2hhbmdpbmcgdGhlIElBNjQNCj4gdG8gdGhpczoNCj4N Cj7CoMKgwqDCoMKgwqDCoMKgQlVJTERfQlVHX09OKHNpemVvZihzdHJ1Y3QgdXBpZCkgIT0gMTYp Ow0KPsKgwqDCoMKgwqDCoMKgwqBERUZJTkUoSUE2NF9VUElEX1NISUZULCA0KTsNCj4NCj4gVG9u eSwgZG9lcyB0aGF0IGxvb2sgb2sgdG8geW91Pw0KDQpJIHRoaW5rIHNvLiAgUmVzcGluIGFuZCBD YzogbWUgb24gYm90aCBwYXRjaGVzIGluIHRoZSBzZXJpZXMgYW5kIEknbGwgdGFrZSBpdCBmb3Ig YSBzcGluDQpvbiBoL3cgdG8gbWFrZSBzdXJlLg0KDQotVG9ueQ0K ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-11 21:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <201710111737.ZHqmaPa5%fengguang.wu@intel.com>
2017-10-11 14:15 ` [PATCH v4 2/2] pid: Remove pidhash Rik van Riel
2017-10-11 21:22 ` Luck, Tony
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox