Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4239122imu; Mon, 12 Nov 2018 07:56:44 -0800 (PST) X-Google-Smtp-Source: AJdET5ckJQovdo4SBQX5Ft4jwbhNLKlpEQxfx6RkjEjUg+0AFAwGf3X6UUoUAYwyO/1v8GmhozN4 X-Received: by 2002:a63:7418:: with SMTP id p24mr1303271pgc.196.1542038204565; Mon, 12 Nov 2018 07:56:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542038204; cv=none; d=google.com; s=arc-20160816; b=XlhK+YoNBIJtpq6CX5ugMhI8LiU8K0xDpy6SARzMJ2CPVXoxPsY4u7A/P/w4pK560O q/qoeCgK28VhDwIwpUeMhMg1YxHFtbt3jgGS9yiSiFUg5b3EYQX0fwJFDqGS5+5xmdY+ JgF5MRvmO6QbKvkcRkrr/+2QBSi9DspeAhoZksB0X8W5OmIXLX3U8QNKfiWmNROQd7YP pNZHAbitfgXi45d5xz/nuii/Ge8vzh2wJQpkz0NPJ22b4NahUEiXVIihun8HvvBE9f5O M+X8wwZFES2q37mbc6lzL+TwrRoxVwLdAnzl9aHQhYULOyGhBR90EJwFcHPXwIgOrjX4 Hp+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=ojMfWus/PP+5St/TIl0w4YsqTgJivAZTw1D88bD9oFw=; b=Zk9LR4fKIjJZIu7p+caQEEkyUHF+OFnBgpg9if0YbFlLvdNq213i4/3xQ/spHOgg8v CqCx2e9fI/s9ZT0eKsAwl2MaQ7U7BjKNP13xVOKiihX8aclsEPTNDX4/YZAuNg/aF7jc AuDmmqVEj5I+SMN/ZH71FlezNO6SLKC7J/4yO+5LMRBRbvOhwhHWwAllyWXMfuizr5lI HdwTn6F2DUx0kxOtgd/VCKT15WnmnLSwB887gf7C9rLmlva0zax6Iv07yksvgeG3WJEr c6BBMIw2J6GhdNuJZ1xFTQSHaq5DBcAaii97xTGh5t+8H9Z6udG7dx9gnq8PkqS2dqj5 DbiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=T6njVS2x; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3-v6si19385189pfb.122.2018.11.12.07.56.27; Mon, 12 Nov 2018 07:56:44 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=T6njVS2x; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729293AbeKMBtx (ORCPT + 99 others); Mon, 12 Nov 2018 20:49:53 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:44814 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727659AbeKMBtw (ORCPT ); Mon, 12 Nov 2018 20:49:52 -0500 Received: by mail-pl1-f194.google.com with SMTP id s5-v6so4536331plq.11 for ; Mon, 12 Nov 2018 07:56:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ojMfWus/PP+5St/TIl0w4YsqTgJivAZTw1D88bD9oFw=; b=T6njVS2xqZmkGnJk6CINn05TKnLXMHmcozF0jH2jJIQ8bwmj42BnYgeOWayKAOuc2P uFbFlmzGtEhLgi1TiP+3i0k36+b2ckqeMH7BMXQfGf6kOKSnBu7symVMjgTmH2AgvdHa fxvxiKSugmdBA9Hu1luo4018xSqqSkhqM3CxaHMw2Ez2HaiuMgFD1uPAH0RiwS2t0IRT V8k9SdYjGIP1aedatf6igxvE12qB19NK6H/uHHPSXuNk0z8jUPaQVa5aAxhQgXOgsc5j ETVrkN9t/MFeTTNtZStF1aQrA5YGI0edE9jbD47RPSjxa47MDMS0PuVKkn2Kq5m/WzR+ oi1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ojMfWus/PP+5St/TIl0w4YsqTgJivAZTw1D88bD9oFw=; b=EqpbCJZnySEtMYXlaqyZZP5Ndq1S0HEijCqOkO/wkPxIfjLQ8/ZIIITVLrYK272ojy S8Rjnmgq6sbeQ2Na4IcFiPlUOL33SjmI4usZ+vE07SPddbAUDLq3fyBEZUqZAEyU8Y5B Xe3RVgjuEmj9ZGBPSXuWZi1T1+jxhq0Pc2j6aCNArhL0NXVXC7EGuBpO//ApPSwXieN+ 45cb/GI3Ra8i7kSum4rHNojSeclGFb1Fbp+EhnKSnr5oy9SgoT7Kmg9ALrPooD+5q/gv cCYyO+djZ82ma9mIswD2cR6wAnV0o36HsqbAebeAwufslCDhXita9kAgzBA5JyeNfeQp xXCg== X-Gm-Message-State: AGRZ1gLQC5bVWsTVniQ3th4K2C+9KT2ckVcfvKUFkzQVscsH7SQsUUpt qFj6VIx82X6swTtWsnOoros6qPMnwsQ= X-Received: by 2002:a17:902:b104:: with SMTP id q4-v6mr1456193plr.5.1542038163148; Mon, 12 Nov 2018 07:56:03 -0800 (PST) Received: from localhost.localdomain ([207.246.110.149]) by smtp.gmail.com with ESMTPSA id d80sm9599737pfm.146.2018.11.12.07.56.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Nov 2018 07:56:02 -0800 (PST) From: Changbin Du To: jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com Cc: openrisc@lists.librecores.org, linux-kernel@vger.kernel.org, Changbin Du , Masahiro Yamada Subject: [PATCH] openrisc: make function cache_loop() inline Date: Mon, 12 Nov 2018 23:55:44 +0800 Message-Id: <20181112155544.7230-1-changbin.du@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The third operand of mtspr instruction must be a constraint. To guarantee this condition, function cache_loop() which uses macro mtspr() must be inlined. So let's force it as 'inline'. This is to fix compiling error with new option CONFIG_NO_AUTO_INLINE. In file included from arch/openrisc/mm/cache.c:17:0: arch/openrisc/mm/cache.c: In function 'cache_loop': arch/openrisc/include/asm/spr.h:20:27: warning: asm operand 0 probably doesn't match constraints ^ arch/openrisc/mm/cache.c:29:3: note: in expansion of macro 'mtspr' mtspr(reg, line); ^~~~~ arch/openrisc/include/asm/spr.h:20:27: error: impossible constraint in 'asm' Signed-off-by: Changbin Du Reported-by: kbuild test robot Cc: Stafford Horne Cc: Masahiro Yamada --- arch/openrisc/mm/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/openrisc/mm/cache.c b/arch/openrisc/mm/cache.c index b747bf1fc1b6..4a4b2b6e006b 100644 --- a/arch/openrisc/mm/cache.c +++ b/arch/openrisc/mm/cache.c @@ -20,7 +20,7 @@ #include #include -static void cache_loop(struct page *page, const unsigned int reg) +static inline void cache_loop(struct page *page, const unsigned int reg) { unsigned long paddr = page_to_pfn(page) << PAGE_SHIFT; unsigned long line = paddr & ~(L1_CACHE_BYTES - 1); -- 2.17.1