Message ID | ea859b7850e061e0f7fb3fca64d9f8e6d1c0d2ad.1694613528.git.geert@linux-m68k.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp1120776vqx; Wed, 13 Sep 2023 07:20:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IENOLI846cNcKTHhPRoiMuobe3zsWNQ0PnL61DB3NvA37HbfsVCI0GnGQoK3Qw/KzPljOuE X-Received: by 2002:a17:903:32d1:b0:1bc:2c58:ad97 with SMTP id i17-20020a17090332d100b001bc2c58ad97mr3367989plr.22.1694614831920; Wed, 13 Sep 2023 07:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694614831; cv=none; d=google.com; s=arc-20160816; b=yrOLGvbIkmBkhARNbZhgXFDR5PRAcip1JmoCY0UcPM0HVFvy/A7/J8+7d5w7Pc5PG6 BjeUxxrWu/Q3ffqY1jxmq6vYqV06xG4nE/ubDxTecD5Jjopsktr8Lp1msYnMedCjIyJK i4nNr50GgV/QA3HP6tMjyZzuO+t1Yuyms3Vz4ZGZn4RAwiZSTN7ie4ZpiK7Xaxi3eZ5l udbT25472L3c9+3erq/Q4fM1WsF9FghJbk4/kO/5Uosc/T7XOKC1eEaBZa2f2bTlNbAt xhoW5O9u4vg0KnEQO1xuE77zzq08Vk19C9LyyDkX3HBHh42ACJ5PRtiFXEpro7Rn85vQ H8CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=QD/cDVY5gGdk/n8K4ui1pTQHK96PGAClLMstNrzspB0=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=WsOD10O1BLUhQU6gGcsKzbZGNTaWeA99g/3+qMx8IP0Zu7D102qJHv0+nJXBaH9kKx Wu1gKXCXp8FVMcpAG5LtYAoQwzO0/BMsWbea39JjKCplC7J8F/cZgU+GOlefwr6CWwEM /V2XIuYJEfhEzUR8DaT/4wrfZU8/FnpaXegwtvoRrloNOusOVhbMk5sd68S97rAkd9/P HV5NW7eekguiRW90O5jVdILTgD7+ToYhhI3g6Kyb76ZHPHFDCX95eUGF/wipwdvzb2hp aQ8Kr/7JS1WX0afk/vbBYYHpw03RspryjEBhYTkcjWxTQ9q+BB1153Rml3wDMzwxvzCY E+7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id kb14-20020a170903338e00b001b85ca73574si9927814plb.285.2023.09.13.07.20.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 07:20:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 22B7F804259E; Wed, 13 Sep 2023 07:09:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241213AbjIMOJf (ORCPT <rfc822;pwkd43@gmail.com> + 36 others); Wed, 13 Sep 2023 10:09:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241279AbjIMOI5 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 13 Sep 2023 10:08:57 -0400 Received: from weierstrass.telenet-ops.be (weierstrass.telenet-ops.be [195.130.137.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF7BA1BE8 for <linux-kernel@vger.kernel.org>; Wed, 13 Sep 2023 07:08:50 -0700 (PDT) Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by weierstrass.telenet-ops.be (Postfix) with ESMTPS id 4Rm2PF3F77z4xHC5 for <linux-kernel@vger.kernel.org>; Wed, 13 Sep 2023 16:08:49 +0200 (CEST) Received: from ramsan.of.borg ([84.195.187.55]) by albert.telenet-ops.be with bizsmtp id lS8n2A00U1C8whw06S8n4E; Wed, 13 Sep 2023 16:08:49 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from <geert@linux-m68k.org>) id 1qgQXe-003ctR-BL; Wed, 13 Sep 2023 16:08:47 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from <geert@linux-m68k.org>) id 1qgQXv-00FV6V-M7; Wed, 13 Sep 2023 16:08:47 +0200 From: Geert Uytterhoeven <geert@linux-m68k.org> To: linux-m68k@lists.linux-m68k.org Cc: Arnd Bergmann <arnd@arndb.de>, Finn Thain <fthain@linux-m68k.org>, Michael Schmitz <schmitzmic@gmail.com>, Philip Blundell <philb@gnu.org>, Greg Ungerer <gerg@linux-m68k.org>, Joshua Thompson <funaho@jurai.org>, Sam Creasey <sammy@sammy.net>, Laurent Vivier <laurent@vivier.eu>, linux-kernel@vger.kernel.org, Geert Uytterhoeven <geert@linux-m68k.org> Subject: [PATCH v2 39/52] m68k: sun3: Fix context restore in flush_tlb_range() Date: Wed, 13 Sep 2023 16:08:29 +0200 Message-Id: <ea859b7850e061e0f7fb3fca64d9f8e6d1c0d2ad.1694613528.git.geert@linux-m68k.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <cover.1694613528.git.geert@linux-m68k.org> References: <cover.1694613528.git.geert@linux-m68k.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Sep 2023 07:09:53 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776932442061532949 X-GMAIL-MSGID: 1776932442061532949 |
Series |
m68k: W=1 fixes
|
|
Commit Message
Geert Uytterhoeven
Sept. 13, 2023, 2:08 p.m. UTC
When building with W=1: In file included from arch/m68k/kernel/traps.c:42: arch/m68k/include/asm/tlbflush.h: In function ‘flush_tlb_range’: arch/m68k/include/asm/tlbflush.h:191:28: warning: variable ‘oldctx’ set but not used [-Wunused-but-set-variable] 191 | unsigned char seg, oldctx; | ^~~~~~ Indeed, the old context is saved, but never restored. Fix this by adding the missing call to sun3_put_context(). Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Arnd Bergmann <arnd@arndb.de> --- v2: - Add Acked-by. Compile-tested only. This issue seems to have been present since the introduction of Sun3 support in v2.4.0. --- arch/m68k/include/asm/tlbflush.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/m68k/include/asm/tlbflush.h b/arch/m68k/include/asm/tlbflush.h index b882e2f4f5516f8d..3ab329a03c76c8d8 100644 --- a/arch/m68k/include/asm/tlbflush.h +++ b/arch/m68k/include/asm/tlbflush.h @@ -208,6 +208,7 @@ static inline void flush_tlb_range (struct vm_area_struct *vma, next: start += SUN3_PMEG_SIZE; } + sun3_put_context(oldctx); } static inline void flush_tlb_kernel_range(unsigned long start, unsigned long end)