From patchwork Tue Apr 23 03:49:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 162640 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp3322304jan; Mon, 22 Apr 2019 20:51:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwiaAc1Dz8xarxY7FtfVa6dIK0HP1TdyVs7GtdE6an0dDeMOrNcktQ+e0mnpGoazVyDAV+m X-Received: by 2002:a17:902:be04:: with SMTP id r4mr23648856pls.218.1555991487439; Mon, 22 Apr 2019 20:51:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555991487; cv=none; d=google.com; s=arc-20160816; b=cmga7zTxhzLB5M2rMzDW608WxyaTClyN3dPMm4XXIP6yz6GnQpagbJSwCearxb+EfH FrZZJwyFrQ8V7iSW1dwJTkWD3z/h3YPzObxhmM+fjrogGp3PdFtoUP61EBa6QaazaPxa dJGZBZh49nGEzhkNO0U6d/UZ2d6eEMJUPBS/qvTqQckPYgharYVtj1HYPhGpyzGroUZ6 8O1J1vTHyzJdNo1eHb3CKWsR2D2wBQ5gB4cMd2e6VlUi7LTK70FFkZCjpXNvd89pqYMS 3FdMKTi53EfZmAXBGXeXOeDNsE83DVlCicNUGBwuYOYLVas4WZvueZ+Nv3bsjawwsAer ihiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=Uo1hU/pOzqv1Q6UwWPC8xpA1XS41uzJeh8wwHc0qw10=; b=EvkDdNvhrTXQfnwpNL8yB6KLQui9pGPQNdeD/ORl3p07o/MbUYAWHWi5Ujb/R08DcC 6VdZngKw2GSBtHklAeIOnZEldyiFEGUi1rpfBwzRlsAPmeZ4HzeO0oU4vkMs0t81zCVO qHYRVEuiYT8D+T9ifv/S+rr37G0w5Q7lRGAznKx8lI2Z9NPKkTHtJ0gfILeY8NLpz/FV JJxhUfkesse+X/+W0+1FkFnOx+tDhuNzAOcaivWTwnNIhCiDblWgLamFMsAAteq8lbTD K6nIbBS4ZOPkLsC2ipmsqUYKtm2+OdbKc0dWOPj71+asHxl3vg/3vDVFv0rUW6rBLQVG n+dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=afqDfXVj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 15si16057993pfz.73.2019.04.22.20.51.27; Mon, 22 Apr 2019 20:51:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=afqDfXVj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730281AbfDWDvZ (ORCPT + 30 others); Mon, 22 Apr 2019 23:51:25 -0400 Received: from conuserg-07.nifty.com ([210.131.2.74]:38273 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730111AbfDWDvZ (ORCPT ); Mon, 22 Apr 2019 23:51:25 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id x3N3o2cB023044; Tue, 23 Apr 2019 12:50:06 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x3N3o2cB023044 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1555991406; bh=Uo1hU/pOzqv1Q6UwWPC8xpA1XS41uzJeh8wwHc0qw10=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=afqDfXVjkaU0um6ru4UQMMi/0BjTNH297qWtGHSlxZheAmZyP7g2xdSoWOVya1o3F wGNcrJgeLRi6N/dbYoVHmPyHDzsnc2AU0bWQ+9qUTrdrQivAR0riQON09o58AWsOGr 3MiTJC5LhBxOf783Kh7T5ogQtLBRlDPZpIjEknU13Pb5R24UeulQjWWACsWqksWNy/ MOi4jEYXLWhhh0fOsa98tELQZ7ialZWJGxUV2Bf+R1moCuqtuvyxDYXI3zc0pibOqZ Ia4mCuwX/wsrlpQjBMZfH8khciAtejgbm1rP56cXK3ZONAbZKMksvRc2KMzhxqMxfc n907v8qlw7Oqw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Andrew Morton , linux-arch Cc: linux-s390@vger.kernel.org, Heiko Carstens , Arnd Bergmann , linuxppc-dev@lists.ozlabs.org, x86@kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Ingo Molnar , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Christophe Leroy , Mathieu Malaterre , Masahiro Yamada Subject: [RESEND PATCH v3 03/11] MIPS: mark mult_sh_align_mod() as __always_inline Date: Tue, 23 Apr 2019 12:49:51 +0900 Message-Id: <20190423034959.13525-4-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190423034959.13525-1-yamada.masahiro@socionext.com> References: <20190423034959.13525-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This prepares to move CONFIG_OPTIMIZE_INLINING from x86 to a common place. We need to eliminate potential issues beforehand. If it is enabled for mips, the following error is reported: arch/mips/kernel/cpu-bugs64.c: In function 'mult_sh_align_mod.constprop': arch/mips/kernel/cpu-bugs64.c:33:2: error: asm operand 1 probably doesn't match constraints [-Werror] asm volatile( ^~~ arch/mips/kernel/cpu-bugs64.c:33:2: error: asm operand 1 probably doesn't match constraints [-Werror] asm volatile( ^~~ arch/mips/kernel/cpu-bugs64.c:33:2: error: impossible constraint in 'asm' asm volatile( ^~~ arch/mips/kernel/cpu-bugs64.c:33:2: error: impossible constraint in 'asm' asm volatile( ^~~ Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: - split into a separate patch arch/mips/kernel/cpu-bugs64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/arch/mips/kernel/cpu-bugs64.c b/arch/mips/kernel/cpu-bugs64.c index bada74af7641..c04b97aace4a 100644 --- a/arch/mips/kernel/cpu-bugs64.c +++ b/arch/mips/kernel/cpu-bugs64.c @@ -42,8 +42,8 @@ static inline void align_mod(const int align, const int mod) : "n"(align), "n"(mod)); } -static inline void mult_sh_align_mod(long *v1, long *v2, long *w, - const int align, const int mod) +static __always_inline void mult_sh_align_mod(long *v1, long *v2, long *w, + const int align, const int mod) { unsigned long flags; int m1, m2;