Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5421071rwe; Tue, 18 Apr 2023 06:45:10 -0700 (PDT) X-Google-Smtp-Source: AKy350YGZqltD5EKF0MOvuJCZAYTtaeiRRxx+Ze88Jmrqmgwje3nyw5YRM1VhCE66r2X6vuKN3J0 X-Received: by 2002:a17:902:6bc1:b0:1a6:81fc:b585 with SMTP id m1-20020a1709026bc100b001a681fcb585mr2032504plt.41.1681825509979; Tue, 18 Apr 2023 06:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681825509; cv=none; d=google.com; s=arc-20160816; b=RX/ZdhALtpqvwH5Mk2E3DmicVixrR5s0qli4pahhkWsEegZDI9Ksrsmi5yjXfmE1Gw mt7v5c1yXCP38NWZlgvAoTkogaZvKj8/to8yZGK0SHukdIMdGfFJTQ0wcyvc9aAXGe0i xiXvCIfJwclcwjdcmJjlsJrJzc9KVuW6hQa0w3dg1jHJJLRxGNwxIBx05OPwGNNKUEPV zg6/O4ugUwQdWY2yL1GVacqdRq2XC5sU/P/CX4UzAaCdCKRszT/CuuAWUXuFMcsVkbbN eRk6cMEeIoWvUsjcEeM6M6TH1OrU97DitX76fIV1Q8n+xHr6ML8MXAFGRPYQCXxLwo5O VePw== 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=OxhMh+ITikctSBmgWsRrV7mG+WiCNYWFwb/p5BvlDmM=; b=FRN/FW5ObQcfniNWYkwWjAORy8V0J2Z7oqFS+zFzRmVoN8sdjLXnvRf/9nWj4bGgTT QpVzsgk7j6sc8H37QTfLBCH+a/84n1Jm+fnEDKRtbp3I4ny5Ck5j5XKAY099mIHXCaJX hGlfNBF2BbY/tt5+4ndUYGQ01+Le9s8+n42VCX6mFiEZCBVDnR3ADzBUZIh25rjfaEdA YnRYEVG5fIIo8N6SZXfk8tyUlNE2yHdRdrP/Ysu21DVtH7d6OEh94B4iy2AsCDkNKYqb v+8tizKzqwLqfjzYKDBpGQpQOweDLMaIfJDSTmG3tc4sqZBzrCNuHdtfSsfhCs7TyukY 6V/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="Pd5Y/oIP"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji5-20020a170903324500b001a5089fe47fsi13451966plb.326.2023.04.18.06.44.58; Tue, 18 Apr 2023 06:45:09 -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=@suse.com header.s=susede1 header.b="Pd5Y/oIP"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231430AbjDRNoD (ORCPT + 99 others); Tue, 18 Apr 2023 09:44:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229756AbjDRNoC (ORCPT ); Tue, 18 Apr 2023 09:44:02 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39BE8B74D for ; Tue, 18 Apr 2023 06:44:00 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id ED0FA1FD64; Tue, 18 Apr 2023 13:43:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1681825438; h=from:from:reply-to: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=OxhMh+ITikctSBmgWsRrV7mG+WiCNYWFwb/p5BvlDmM=; b=Pd5Y/oIP8ZjU2/JJGpjWYKrvWnxtkbaaWIJ+QoCnjNdnjf5Jx91QLUEohiHNStL4U84cEL r1S5XFxXzYa16bDTudORsIuJMqWwGA2tZ164MUSUdypl26ryQSo9hKmBZ31+lrH1ELlu/K rD9j/tY9jxm1BKnLl/vX66tYnqAcUDU= Received: from suse.cz (unknown [10.100.201.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id B888A2C141; Tue, 18 Apr 2023 13:43:58 +0000 (UTC) Date: Tue, 18 Apr 2023 15:43:58 +0200 From: Petr Mladek To: Chris Down Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Sergey Senozhatsky , Steven Rostedt , John Ogness , Geert Uytterhoeven , kernel-team@fb.com Subject: Re: [PATCH v3 1/2] printk: console: Create console= parser that supports named options Message-ID: References: <732ee897b2bd49ada3f7dee396475c5a2195071b.1658339046.git.chris@chrisdown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 On Mon 2023-04-17 16:08:11, Chris Down wrote: > Chris Down writes: > > Any thoughts on something simple like this that takes advantage of > > memmove()? This should overcome the mmio/io concerns, and it's fairly > > simple. > > (although coming to think of it, this can just use memcpy(), but the same > idea applies) I think that we have to use memmove() because the locations might be overlaping. The to-be-moved options might be longer than the replaced option. Best Regards, Petr