Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC6B4C433EF for ; Thu, 16 Dec 2021 08:43:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234986AbhLPInm (ORCPT ); Thu, 16 Dec 2021 03:43:42 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:55958 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230071AbhLPInk (ORCPT ); Thu, 16 Dec 2021 03:43:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1639644219; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UfCZtz1ccK1G4KuhCQww9wOX9Yntwu2r9HaxdHV6uW0=; b=HOquVJ0Itil4LDbZ8JmBKFUVLQnUHJzFZ7+IrXlD42sgHhe1GRL6E2RzhkZ8UBUdPNUyAx ucxgeE9GhjMk6zLVtikx+EpAML9nVc9k9q2K3atVbf05EvkBtIyfDbaF28XSMbtMNIrlr1 JM/FlSHxBZSYCdKTQn/tu+waO+E14tc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-282-mMnn5J3YO22tFqJtLTsJrQ-1; Thu, 16 Dec 2021 03:43:36 -0500 X-MC-Unique: mMnn5J3YO22tFqJtLTsJrQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1696981EE60; Thu, 16 Dec 2021 08:43:35 +0000 (UTC) Received: from localhost (ovpn-12-63.pek2.redhat.com [10.72.12.63]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E525C84FF9; Thu, 16 Dec 2021 08:43:27 +0000 (UTC) Date: Thu, 16 Dec 2021 16:43:25 +0800 From: Baoquan He To: "Matthew Wilcox (Oracle)" , prudo@redhat.com Cc: Vivek Goyal , Dave Young , kexec@lists.infradead.org, Tiezhu Yang , linux-kernel@vger.kernel.org, Amit Daniel Kachhap , Christoph Hellwig , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v3 0/3] Convert vmcore to use an iov_iter Message-ID: <20211216084325.GH3023@MiWiFi-R3L-srv> References: <20211213143927.3069508-1-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211213143927.3069508-1-willy@infradead.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/13/21 at 02:39pm, Matthew Wilcox (Oracle) wrote: > For some reason several people have been sending bad patches to fix > compiler warnings in vmcore recently. Here's how it should be done. > Compile-tested only on x86. As noted in the first patch, s390 should > take this conversion a bit further, but I'm not inclined to do that > work myself. Add Philipp to the CC. He used to work on s390 arch. Now he joins Redhat and will focus on kexec/kdump. See if he has any thoughts on the s390 part of work, or may reach out to s390 developer. > > v3: > - Send the correct patches this time > v2: > - Removed unnecessary kernel-doc > - Included uio.h to fix compilation problems > - Made read_from_oldmem_iter static to avoid compile warnings during the > conversion > - Use iov_iter_truncate() (Christoph) > > Matthew Wilcox (Oracle) (3): > vmcore: Convert copy_oldmem_page() to take an iov_iter > vmcore: Convert __read_vmcore to use an iov_iter > vmcore: Convert read_from_oldmem() to take an iov_iter > > arch/arm/kernel/crash_dump.c | 27 +------ > arch/arm64/kernel/crash_dump.c | 29 +------ > arch/ia64/kernel/crash_dump.c | 32 +------- > arch/mips/kernel/crash_dump.c | 27 +------ > arch/powerpc/kernel/crash_dump.c | 35 ++------- > arch/riscv/kernel/crash_dump.c | 26 +------ > arch/s390/kernel/crash_dump.c | 13 ++-- > arch/sh/kernel/crash_dump.c | 29 ++----- > arch/x86/kernel/crash_dump_32.c | 29 +------ > arch/x86/kernel/crash_dump_64.c | 48 ++++-------- > fs/proc/vmcore.c | 129 +++++++++++++------------------ > include/linux/crash_dump.h | 19 ++--- > 12 files changed, 122 insertions(+), 321 deletions(-) > > -- > 2.33.0 >