From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Ellerman Subject: Re: [PATCH 1/3] futex: remove duplicated code Date: Sat, 04 Mar 2017 23:49:44 +1100 Message-ID: <877f45cil2.fsf@concordia.ellerman.id.au> References: <20170303122712.13353-1-jslaby@suse.cz> Mime-Version: 1.0 Content-Type: text/plain Cc: linux-kernel@vger.kernel.org, Jiri Slaby , Richard Henderson , Ivan Kokshaysky , Matt Turner , Vineet Gupta , Russell King , Catalin Marinas , Will Deacon , Richard Kuo , Tony Luck , Fenghua Yu , Michal Simek , Ralf Baechle , Jonas Bonn , Stefan Kristiansson , Stafford Horne , "James E.J. Bottomley" , Helge Deller , Benjamin Herrenschmidt , To: Jiri Slaby , akpm@linux-foundation.org Return-path: In-Reply-To: <20170303122712.13353-1-jslaby@suse.cz> Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips List-subscribe: List-owner: List-post: List-archive: Jiri Slaby writes: > There is code duplicated over all architecture's headers for > futex_atomic_op_inuser. Namely op decoding, access_ok check for uaddr, > and comparison of the result. > > Remove this duplication and leave up to the arches only the needed > assembly which is now in arch_futex_atomic_op_inuser. Looks OK and boots on powerpc. But I don't think anything's actually calling those futex ops. Is there a test suite I should run? Acked-by: Michael Ellerman (powerpc) cheers