[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <878rk0d4fh.fsf@mpe.ellerman.id.au>
Date: Thu, 24 Nov 2022 21:37:06 +1100
From: Michael Ellerman <mpe@...erman.id.au>
To: Christophe Leroy <christophe.leroy@...roup.eu>,
Stephen Rothwell <sfr@...b.auug.org.au>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
"H. Peter Anvin" <hpa@...or.com>,
Peter Zijlstra <peterz@...radead.org>
Cc: PowerPC <linuxppc-dev@...ts.ozlabs.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux Next Mailing List <linux-next@...r.kernel.org>
Subject: Re: linux-next: manual merge of the tip tree with the
powerpc-objtool tree
Christophe Leroy <christophe.leroy@...roup.eu> writes:
> Le 24/11/2022 à 02:29, Stephen Rothwell a écrit :
>> Hi all,
>>
>> Today's linux-next merge of the tip tree got a conflict in:
>>
>> tools/objtool/check.c
>>
>> between commit:
>>
>> efb11fdb3e1a ("objtool: Fix SEGFAULT")
>>
>> from the powerpc-objtool tree and commit:
>>
>> dbcdbdfdf137 ("objtool: Rework instruction -> symbol mapping")
>>
>> from the tip tree.
>>
>> I fixed it up (see below) and can carry the fix as necessary. This
>> is now fixed as far as linux-next is concerned, but any non trivial
>> conflicts should be mentioned to your upstream maintainer when your tree
>> is submitted for merging. You may also want to consider cooperating
>> with the maintainer of the conflicting tree to minimise any particularly
>> complex conflicts.
>>
>
> Maybe it would be better to perform the check of insn inside the new
> insn_func() then ?
I don't think it would.
Many of the other uses of insn_func() know that insn is not NULL,
because they've already checked it or have dereferenced some other
member of insn before the call. So in those cases checking it in
insn_func() would be redundant.
But ultimately up to the objtool maintainers.
cheers
Powered by blists - more mailing lists