Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1241201rdb; Wed, 20 Sep 2023 03:58:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF3NRD/pcj5Z119nehVhG2+4OJtVScIE/qG/BEUXWkLuzLATZBJqggm08mFPRZz5qtXs7Ne X-Received: by 2002:a17:902:a3c7:b0:1c4:50f0:c4e1 with SMTP id q7-20020a170902a3c700b001c450f0c4e1mr1719433plb.38.1695207511694; Wed, 20 Sep 2023 03:58:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695207511; cv=none; d=google.com; s=arc-20160816; b=qIWYHD+Lt3LikSHhzyqbVAkwB2fy8IJqzz4V8VKINgJu7+DdcnX+MQQ9bTvxvrNlcM cgBadwDhZkJjSJqG4+Wtefcz5ChT+PuGWlAp4EEsKmSOQbvEhLw6tc2bA51SVowz+vzN G3FkDJfUT7inVoE0H28Z829Hba4MRcEKUa7OXIq5QBFn6cdbO3Ttb5cK/SpVaej/SiMQ 6opifukduXh5TMp0bcExcVpoPMCPlwOHtfX/CiXq1Cox23aux93BhZMgnYM3aZaLzsMr Np/YXZjyi7L4Jtpxj86xX8ik0XRILPvXJT8d5hUpeOIoaz832cCMnUygblCmAUdbKXFJ x70A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=YbHRyCVYXMDYDWTTSp3n5RQ/232hiYv5udu7dJWA2kw=; fh=uJdfOQ6509tCf4F8mJuINs9dlLXcSAyi/ZQLCQ8OCFM=; b=jyNyBbuQn3YcwI6Hz0K94Aqsq4BtLdOFNY/rIggwBSY7AovEJuH5XiFU+/imDUbmb8 suSMUYjAPVl/o834kWH5QOVcR2M0mg/T7AM9h1MKDp/Dp151eFFbqq72zVSYtFSlD2N8 AlFD4/yB28RhV8blEcrJL7hJrUjYsnJOpT619lqdKn4Wy9fYi2Q1cJQqRenZXKlFbUte +orJzQHV/672Egjx4nbCb7NLJP5RNgJ0iy7RkrRfOtoPGdEME8ZxHw8O+TUH/bSlyvmd CcTylDJl29ZAzFYV0gb7WKwQDWCvcAEZzRl1q+ekSkgY8rNpCuzPqTTulq/NjD+40czn cdxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="n/zxCFjV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id l9-20020a170902f68900b001bf88e777f9si12410192plg.33.2023.09.20.03.58.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 03:58:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="n/zxCFjV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 4A4F8805F2E5; Wed, 20 Sep 2023 03:56:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234365AbjITK42 (ORCPT + 99 others); Wed, 20 Sep 2023 06:56:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234357AbjITK40 (ORCPT ); Wed, 20 Sep 2023 06:56:26 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CED19D3; Wed, 20 Sep 2023 03:56:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695207380; x=1726743380; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=gOPASgTUaTDhCAFxC5YuBhI+3Lyk6hWmJdybfQUtMWg=; b=n/zxCFjVu4pQ+3U8ElMrRdavk5LG7RDjCa1I07IG9OR9CqtSjSEvpWyl 58zgBpYDWk1J5aMGHTUwf8kfK3xINacYpjcn7Egx3lFdiV2U4VxpsMEGu NVb4m8XVwS8qb6qWBdrlGQ6vP2zvzUER8PqeKt/+UJctrpLWp4bv/T7EJ on8z+BVFW0HfbrxO01PwGkBVB9MbwYON2PMmbG3GpPSxGNMHFTJOWtF0r 24mWEhfB3vKQ4oWXx2fL0QpXWiw0BV6Y6AgDQNIG/rdc6aPruaO9zxOXL GAbqSyCzFIWTK3S7ivXJmxXlapoB9Mv96EUD9xEyVghclsZu+6L9CddAQ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="360446705" X-IronPort-AV: E=Sophos;i="6.02,161,1688454000"; d="scan'208";a="360446705" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2023 03:56:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="723228889" X-IronPort-AV: E=Sophos;i="6.02,161,1688454000"; d="scan'208";a="723228889" Received: from swegrzyn-mobl.ger.corp.intel.com ([10.252.52.91]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2023 03:56:14 -0700 Date: Wed, 20 Sep 2023 13:56:12 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Tony Lindgren cc: Petr Mladek , Greg Kroah-Hartman , Jiri Slaby , Sergey Senozhatsky , Steven Rostedt , John Ogness , Andy Shevchenko , Dhruva Gole , =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , LKML , linux-serial Subject: Re: [PATCH v2 1/3] printk: Constify name for add_preferred_console() In-Reply-To: Message-ID: References: <20230912110350.14482-1-tony@atomide.com> <20230912110350.14482-2-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 20 Sep 2023 03:56:28 -0700 (PDT) On Wed, 20 Sep 2023, Petr Mladek wrote: > On Tue 2023-09-12 14:03:43, Tony Lindgren wrote: > > While adding a preferred console handling for serial_core for serial port > > hardware based device addressing, Jiri suggested we constify name for > > add_preferred_console(). The gets copied anyways. This allows serial core Hi Tony, "The gets copied" seems to lack a word (name?). -- i. > > to add a preferred console using serial drv->dev_name without copying it. > > > > Note that constifying options causes changes all over the place because of > > struct console for match(). > > > > Cc: John Ogness > > Cc: Petr Mladek > > Cc: Sergey Senozhatsky > > Cc: Steven Rostedt > > Suggested-by: Jiri Slaby > > Signed-off-by: Tony Lindgren > > Makes sense: > > Reviewed-by: Petr Mladek > > I assume that this patch would via Greg's tree together with > the rest of the patchset. Please, tell me if you would prefer to > queue this via printk tree. > > Best Regards, > Petr >