Received: by 2002:a05:6a10:144:0:0:0:0 with SMTP id 4csp173481pxw; Fri, 8 Apr 2022 04:40:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxe4xTQB1e+P02gEAEHB6h76YfWefz5J2x+2KGBxvBUTiz9OcB/wmukO0gu5RTArOjujscd X-Received: by 2002:a17:906:36c8:b0:6e7:a66f:766e with SMTP id b8-20020a17090636c800b006e7a66f766emr18132297ejc.354.1649418058300; Fri, 08 Apr 2022 04:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649418058; cv=none; d=google.com; s=arc-20160816; b=QUPCopVMgCq48t7pu/Q1CAuEiUiXqONxi9n+6PP8jyR8VO+c0wZga8StUUw+b7T76I P2EKLRMx5ng5OWzEX4lShSc0Xa0gzpm55trOymSMVQaX93KqB04rnz71Tv6+oksYTHsI lj+7L5G52JaDdKcqU/OJ98UJERyTijYXg1G6bMMtlrJ7aTi51bj+yYoYkQDgZjmmkMlu +fA475iAE/CoXx0h6IO7IRxQNgpWYqauf5+Avq8xWRI2AXemYiqzqFZuGVcx5yTxb6qi lbNLKMA+aYz6bqIL/+cgZj41MRaUPBxh/D65u87La4ePNNDzS59Lrp27S3MIxfs+Cxp2 LhoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=sg9LjEx0//PYzzxj1IqHd0bY2z1rKaQOVJuq5koLYkE=; b=ptasrWEVFqm9E9TrDkDwnv/BypjJgXSsq6ahn+0sZshuX3MdrHjNbUOgM3ryAqOggr z7d8Xhf/cLZOtKHAOX7W7E/fiOXEbjnAS3sJE1UFbOEc3fZJoPIfaeHViKwa5JEOhhbP YWr3XyIAHhYmIrg3ejKdTNaXLV+xN7cp4aNoNWuoH7jnlyU9WEPU0tC3zha3LHrh15WA IWcBbTNOhi5NMCabbZK7ZLaqyo/Aq67tSxRNNWE3OB2gLLnRsPiHcseRSXxbyHiFIutV mjNLKQkqd4X0GbaApc/J3VrB8gRmGhCeNe6suLER+q1tOaOLj0rC8fmoEWA67+BiAkQL JiIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=G6lpRWjd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y10-20020a17090629ca00b006df76385ef8si730295eje.920.2022.04.08.04.40.12; Fri, 08 Apr 2022 04:40:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=G6lpRWjd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229706AbiDHJ0r (ORCPT + 99 others); Fri, 8 Apr 2022 05:26:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230455AbiDHJ0n (ORCPT ); Fri, 8 Apr 2022 05:26:43 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8570039BD92 for ; Fri, 8 Apr 2022 02:24:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649409878; 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=sg9LjEx0//PYzzxj1IqHd0bY2z1rKaQOVJuq5koLYkE=; b=G6lpRWjdWcmmYU0BJMHVUZnu/F0eijJLnU9g/xHam8/BglmOtMY1Pyueiil+uuUkq4Sr8m f1kd4BSwVLxsaFu5ErtItS1Dz/FtVrTTE4IStJLQ/zAr9lopoIuRsTwpZzKKnaaHk3k5N0 oW4gsO3u23Thi/mFutqQzgZxDnY0v/w= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-93-LmUZXseiPkKMZUvSxKGSzw-1; Fri, 08 Apr 2022 05:24:35 -0400 X-MC-Unique: LmUZXseiPkKMZUvSxKGSzw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 58687811E76; Fri, 8 Apr 2022 09:24:34 +0000 (UTC) Received: from localhost (ovpn-12-202.pek2.redhat.com [10.72.12.202]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 68CE9145BA41; Fri, 8 Apr 2022 09:24:33 +0000 (UTC) Date: Fri, 8 Apr 2022 17:24:28 +0800 From: Baoquan He To: akpm@linux-foundation.org, willy@infradead.org, Heiko Carstens Cc: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, hch@lst.de, yangtiezhu@loongson.cn, amit.kachhap@arm.com, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk Subject: Re: [PATCH v5 RESEND 0/3] Convert vmcore to use an iov_iter Message-ID: References: <20220408090636.560886-1-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220408090636.560886-1-bhe@redhat.com> X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Heiko to CC. On 04/08/22 at 05:06pm, Baoquan He wrote: > Copy the description of v3 cover letter from Willy: > === > 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. Forgot adding Heiko to CC again. Hi Heiko, Andrew worried you may miss the note, "As noted in the first patch, s390 should take this conversion a bit further, but I'm not inclined to do that work myself." written in cover letter from willy. I told him you had already known this in v1 discussion. So add you in CC list as Andrew required. Adding words to explain, just in case confusion. > > V4: > [PATCH v4 0/3] Convert vmcore to use an iov_iter > https://lore.kernel.org/all/20220318093706.161534-1-bhe@redhat.com/T/#u > > v3: > [PATCH v3 0/3] Convert vmcore to use an iov_iter > https://lore.kernel.org/all/20211213143927.3069508-1-willy@infradead.org/T/#u > > > Changelog: > === > v5 RESEND: > - Add my own Signed-off-by, no code or log change related in this round. > > v5: > - Rebased on Linus's latest master branch. > - Merge the patch 4 of v4 into patch 2. > v4: > - Append one patch to replace the open code with iov_iter_count(). > This is suggested by Al. > - Fix a indentation error by replacing space with tab in > arch/sh/kernel/crash_dump.c of patch 1 reported by checkpatch. The > rest of patch 1~3 are untouched. > - Add Christopy's Reviewed-by and my Acked-by for patch 1~3. > 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 | 130 +++++++++++++------------------ > include/linux/crash_dump.h | 19 ++--- > 12 files changed, 123 insertions(+), 321 deletions(-) > > -- > 2.34.1 >