Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1109385pxa; Wed, 5 Aug 2020 23:02:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy77C/dq4AlYBAxW+FiM7lmG+fbMGxIewMByTJA5gY8bnSfAHWA5GlxQt6Wo0V14T9p0Cxz X-Received: by 2002:aa7:c915:: with SMTP id b21mr2629971edt.17.1596693761614; Wed, 05 Aug 2020 23:02:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596693761; cv=none; d=google.com; s=arc-20160816; b=lclNd+gvTqoeblHA1utsZM1Nw1TOKQnxzhVy07Sek++QgykYVzwypGi3U5LPY65A+K DqGGx9mGrZpugqnD7jBDz3YlekcTWDf/0F0kVqKaQtgn10iKqqShLRbYqOLEt21eLPeU Pvkt8Ay/FWvOqbWRa3lltm2nsfmUlOoiZI4JdAqLEiwi2wcEaCIVG3r7HsqY/ehYA3Yy 6LWtnH0Y1vX5pRATSlfdv7Sdl2I4zuKxaw70OkAa/E/fVsKQR9e2k+WJwpXGF/8QZ839 9zGpAysSggvDi5A4Noarruu2lJDZxCzP/Lr/xVQvC6+JwJU4v+I2GzOSi1zInlPIUWfU /Usg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:message-id; bh=PhbnZNPecvd7miUXSa11QiMHFww8zKRLbLs4MH6sO6I=; b=f4HhXpB5ZAG5KrBXLVgcgibPU1ZhVhzeuxchG9/J2jGEXGcNZhLMk7jCqfQTZIhJI2 wdHTr4yvTUtynCJPrsJae9b5UCAL7I8uLkvf/Z0CPkrzyanGh598U+yNQy91IUE4DYZW Qmmr7rlid2ZpniiDAVAtH9qhkAHkcAZ+5PKmIPnceWQmL3umuoKKliNuc/ZE9X7I5X4x NvpGEQIYC9b966gO65+JaM2dMdcB8DvJGbaadf0+K3iNwdH0MPe2ajKzotj4/mNFDuyY 9rRzltVfvQF0LQsCwe3GLdmne9nJTJWL7iJmvv6golGuky+emotb2bCDsbner9jnGu+H wR2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k11si2597566ejg.401.2020.08.05.23.02.18; Wed, 05 Aug 2020 23:02:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727897AbgHFGBp (ORCPT + 99 others); Thu, 6 Aug 2020 02:01:45 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:54080 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726051AbgHFGBp (ORCPT ); Thu, 6 Aug 2020 02:01:45 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4BMdD63yZtz9v07Z; Thu, 6 Aug 2020 08:01:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id GJc8k4XBDR3v; Thu, 6 Aug 2020 08:01:42 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4BMdD635Dwz9v07Y; Thu, 6 Aug 2020 08:01:42 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 59A288B770; Thu, 6 Aug 2020 08:01:43 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id Wvmoq1VYrzQX; Thu, 6 Aug 2020 08:01:43 +0200 (CEST) Received: from po16052vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.230.102]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 2B36D8B75E; Thu, 6 Aug 2020 08:01:43 +0200 (CEST) Received: by po16052vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 0854F65BC8; Thu, 6 Aug 2020 06:01:42 +0000 (UTC) Message-Id: <2b69ac8e1cddff6f808fc7415907179eab4aae9e.1596693679.git.christophe.leroy@csgroup.eu> From: Christophe Leroy Subject: [PATCH] powerpc/32s: Fix assembler warning about r0 To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Thu, 6 Aug 2020 06:01:42 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The assembler says: arch/powerpc/kernel/head_32.S:1095: Warning: invalid register expression It's objecting to the use of r0 as the RA argument. That's because when RA = 0 the literal value 0 is used, rather than the content of r0, making the use of r0 in the source potentially confusing. Fix it to use a literal 0, the generated code is identical. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_32.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S index f3ab94d73936..5624db0e09a1 100644 --- a/arch/powerpc/kernel/head_32.S +++ b/arch/powerpc/kernel/head_32.S @@ -1092,7 +1092,7 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_HPTE_TABLE) */ lis r5, abatron_pteptrs@h ori r5, r5, abatron_pteptrs@l - stw r5, 0xf0(r0) /* This much match your Abatron config */ + stw r5, 0xf0(0) /* This much match your Abatron config */ lis r6, swapper_pg_dir@h ori r6, r6, swapper_pg_dir@l tophys(r5, r5) -- 2.25.0