Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1849143rwo; Thu, 3 Aug 2023 00:08:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlGwtSYavu/jCIOKouqGOyl22FLGj62KF+seLTyBSDYDVVxbEfeehRZCZbC/6ZuwM5pMW55S X-Received: by 2002:a17:902:d50a:b0:1b8:2c2a:962e with SMTP id b10-20020a170902d50a00b001b82c2a962emr22138375plg.33.1691046493995; Thu, 03 Aug 2023 00:08:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691046493; cv=none; d=google.com; s=arc-20160816; b=YII+himY4zWkszw/18OBIHA4y0rIfYTZh+rcEnjghoxgF3+YIiQvllEYTdSlTOlHGM 4UFKDkaUhQF1fj1BVjEH20PV6y1UjTspbjxFdqAfMn6st6BNAOZUoTtHBUCGWbEZRb81 Aw5K5nUOPQIcd+R4EdtaBbo2ophHH27dUWStDGK7BkmyhicCrdnzQHO6wdZgeUHA0QNT Pfd4ViodgDvz+pw+3GNXx3NrQV8laIFG3MfO4ZVFFhXfJAON6Xc8Q/ILqiVPntQlSWKD wizWbwGUkcKKuMIt1kDXTDmV9yWsvlLuQMAhj+mwzZKm4G158kj9BYBwCu3D+sUwQbC4 bqKg== 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; bh=/uldC1EezbO5vj23jo1B2ImgWRQUYhIwxkoaFGmCFhY=; fh=AT/8RMCTOqpiXbfl2FC8dAMl1ti06758DM2onVV1leM=; b=bAv7qWfYM90glhVaBXrTdM33K38dQrM1iJMpUsSoR89ino4VeZHmOckw6PcJfOcUW2 CER6ObCNiWValdbxsuhOOQ90LJtCuXmxpfveDQw4F3Pgwd4WBobuXOMupx9zkP5QOkf5 1E/8/pWjMDEhcAzkJWSYNrOjZ8kbmcDCFI23Slak5HmT47VVbj5XZMs89O/kT1W1WVAA yZ3yQ/bGaA+RGb8i1TNKUTAuYiveZKJQ7lQfPoXSXH+TWsZ3VciSiiFatYQ10xw0JMpW FsXOJtK1OrryRIdSAEsPGe6x1Lm0Z+VaT+Kz/zlorztEJjyjmKPKwD1JXwJT4lyGGL7f IjCA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kc12-20020a17090333cc00b001b39ba937d1si11800857plb.330.2023.08.03.00.08.01; Thu, 03 Aug 2023 00:08:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233675AbjHCG4m (ORCPT + 99 others); Thu, 3 Aug 2023 02:56:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233697AbjHCG4j (ORCPT ); Thu, 3 Aug 2023 02:56:39 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 36F9F30E5; Wed, 2 Aug 2023 23:56:36 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 3528C80FE; Thu, 3 Aug 2023 06:56:36 +0000 (UTC) Date: Thu, 3 Aug 2023 09:56:34 +0300 From: Tony Lindgren To: Jiri Slaby Cc: Greg Kroah-Hartman , Andy Shevchenko , Andy Shevchenko , Dhruva Gole , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , John Ogness , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, kernel test robot Subject: Re: [PATCH] serial: core: Fix serial_base_match() after fixing controller port name Message-ID: <20230803065634.GG14799@atomide.com> References: <20230802114846.21899-1-tony@atomide.com> <496b56e1-1cc3-dfa3-d628-aeab62b9e60f@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <496b56e1-1cc3-dfa3-d628-aeab62b9e60f@kernel.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 * Jiri Slaby [230803 05:13]: > On 02. 08. 23, 13:48, Tony Lindgren wrote: > > @@ -6,6 +6,9 @@ > > * Author: Tony Lindgren > > */ > > +#define SERIAL_BASE_CTRL_NAME "ctrl" > > +#define SERIAL_BASE_PORT_NAME "port" > > Could you make those char[] instead? The compiler/linker will hopefully > (will it?) de-dup the occurrences, but the arrays would look cleaner and > safer from this POV. Heh yeah so we already have that in serial_ctrl_type.name and serial_port_type.name so let's just check against those for a minimal fix. Regards, Tony