Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3824530rwb; Sun, 9 Oct 2022 11:44:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Y/dkhSvmSJiDtn6F6XSkmNb0ov+CPLB6YTjiWN/CzMituTgpfhT1vwoDs1KGlJXFRQLFi X-Received: by 2002:a17:907:6ea1:b0:78d:4c16:a68b with SMTP id sh33-20020a1709076ea100b0078d4c16a68bmr11952443ejc.447.1665341085967; Sun, 09 Oct 2022 11:44:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665341085; cv=none; d=google.com; s=arc-20160816; b=MUnk0iUi+3mE6hpSlTgNV+SpYjBcNBKdABM5zZCS21BqmSsyi2c440y3T/nvXQGUu2 WP9eLv7zrxsBB0o30M49y2odY06oed2/5bQ/wuPXLr4iUCXvo7ajLLGqBjwRw226TK+V 5qQC2jrwucIxDIWGK9ey8OoiAnF6xvT324tsfyo4fI3zdPXCzv/ZRkO35Uq2ZLqKGvpG HfS3yIiKHw9DywzSSFWB/3EcweOlcWS7PDKm3TsT7ucaRXx9mN7sl6p6R3PcgGRoKVZy +z0YcxXB2HOabf99xFQTDmJv9WXq/A46xI7tLfwXS0IHO3AjD4Y7InWLbY9YdWq3fPRu GMsA== 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=tcecDNrH0DQER3yTcLSJDhnnJuNV46bHvlpqsAOJI5U=; b=UmOFfYK2FxL1H+JKuOWoucdTyRhBYXRcKuoQsKHmuZk5C7T6j0Ay6E3m7W2VRzMXIW hcaZkKXNqAfpGiZKqND84CRlt02pNouCjSrcdtDMU+qOydpsCYLnmvKuAbEMsX0eGUU4 XdMg8nl6l9mDDgHW4kDc51wikZ3QVtJhRCCA4w4uKt+3uA0NUd3RNAAIJ0HO37NWkt16 2jVDGm/2wQTTTbVCQl7ujvlU9o072SwIDo/dKZf5Bgz/Jh8rc5FOouy4SXeQ0WS0fcLF x3j6uAxRD2SpDDEJdYBdh6sb/IMF7p4fDaUUIQNzKZ5ygQpjR5HTlo9xLLDzzixRfMzY WtpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Pb3Y5bA5; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s16-20020a170906285000b00787d0dfe70csi7526418ejc.981.2022.10.09.11.44.19; Sun, 09 Oct 2022 11:44:45 -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=@linuxfoundation.org header.s=korg header.b=Pb3Y5bA5; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230012AbiJISYX (ORCPT + 99 others); Sun, 9 Oct 2022 14:24:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbiJISYU (ORCPT ); Sun, 9 Oct 2022 14:24:20 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A0AC22B16 for ; Sun, 9 Oct 2022 11:24:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 8C68BCE0F51 for ; Sun, 9 Oct 2022 18:24:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96FDCC433C1; Sun, 9 Oct 2022 18:24:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665339856; bh=y17/edWAbKDZQXeYm6vmcgJncyVJkeZZwuIW9jSu/RA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Pb3Y5bA5Rr/43eN82Z4h9fIkiBsUU2GZ+A/h5O8zYtvubAY1thG2HQgjNpXaGLDlb WRdlfJ77lrRAZb+3EYU77K6fnyFOlhGoVI00soPfYAXlRHMV6MCB94kuJQx0yLXwbe 5L6Bke5dLE5s/H0+yPquXpc2bGki6VSqY/Hb5zac= Date: Sun, 9 Oct 2022 20:24:58 +0200 From: Greg Kroah-Hartman To: Soha Jin Cc: "Rafael J. Wysocki" , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] string: add match_string_nocase() for case-insensitive match Message-ID: References: <20221009162155.1318-1-soha@lohu.info> <20221009162155.1318-2-soha@lohu.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221009162155.1318-2-soha@lohu.info> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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, Oct 10, 2022 at 12:21:53AM +0800, Soha Jin wrote: > Sometimes we want to make a case-insensitive comparison with strings, like > checking compatible devices in fwnode properties, so this commit abstracts > match_string to __match_string with a compare function. The original > match_string will call __match_string with strcmp, and the new > match_string_nocase will call it with strcasecmp. Wait, no, fwnode properties are case sensitive, why are you allowing that to be changed? That sounds like broken firmware to me, right? thanks, greg k-h