Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754311AbcCJRkF (ORCPT ); Thu, 10 Mar 2016 12:40:05 -0500 Received: from mail-pa0-f50.google.com ([209.85.220.50]:35378 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752452AbcCJRj4 (ORCPT ); Thu, 10 Mar 2016 12:39:56 -0500 Message-ID: <56E1B154.8000907@gmail.com> Date: Thu, 10 Mar 2016 23:09:32 +0530 From: Sudip Mukherjee User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Mans Rullgard , Haavard Skinnemoen , Hans-Christian Egtvedt CC: Andy Shevchenko , Guenter Roeck , linux-kernel@vger.kernel.org Subject: Re: [PATCH] avr32: fix asm operand constraint in cmpxchg() References: <1457619829-27105-1-git-send-email-mans@mansr.com> In-Reply-To: <1457619829-27105-1-git-send-email-mans@mansr.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 530 Lines: 15 On Thursday 10 March 2016 07:53 PM, Mans Rullgard wrote: > If the 'old' operand to cmpxchg() is a constant wider than 21 bits, > linking fails with a "relocation truncated to fit: R_AVR32_21S" error. > > Fix this by replacing the "i" constraint with "Ks21" which makes the > compiler use a temporary register for out of range constants. > > Signed-off-by: Mans Rullgard build log at: https://gitlab.com/sudipm/linux-next/builds/839572 Tested-by: Sudip Mukherjee regards sudip