Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3652218imm; Mon, 4 Jun 2018 07:12:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIrctYJnIRryBAFufffwrfO/L2X6TR9Q5SYPiYw0zhSY6TzO84cFaIr9LUZqIZM41SekZb4 X-Received: by 2002:a17:902:683:: with SMTP id 3-v6mr22230803plh.291.1528121541456; Mon, 04 Jun 2018 07:12:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528121541; cv=none; d=google.com; s=arc-20160816; b=Q1qU5KL5eSK4BAqu3xo1f0US8JaLxHTKulwun5nc3LDEhvIURAgPB00s9fpEoU2jfS mbYWIlIUfHyyqzoSpnIb6PHrqXcDnywWNLai8pa3WuG0wm4t/ZlbE+PN4hiXnsDM/wZe tfsVjQ+JeVC3ZLLmE5WC3KZB9xBdblDXYmZ7kq4Nuy1jYzQ8Wx0eoAzo57n4REZYzTGF yGr9H0LQkTb9NSRHHBX5VTDdNUKVdFXwGjuqcosXE3EPYeYDrUQPqctCWC9Y3IfwmxSi k4J/M5NAdpJpobekrf2UvDjcuTWQLIK2MwcqcPiUTzH8vxbpcyK3Gn7X6AQBCbpryv9i 7gVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to:arc-authentication-results; bh=ogKT7zDr+b5bckt3FByyzQ88JBcW/3ydzw4wl6jypZ0=; b=HvWKRl/bmkGlGl9ChS6SQG2OckFucJKvC6Gps27KpssUSzAuEZwM+pwx/cDC4/t5Cw hhyKoZjk5MIBjhhajBfOpLjXvMSASGXqmXcn70i/dINs/gc0+lBR6nJOgoTP0rO3focz Ycy9CzIhcsITGdcTDovDkhs/z4mCHJJaWPrVex0Tn8Bkuhd8RhHwBf8m8iQsfJKjV14T SpMIxsBE4EDwNuyu3X8f+EIygS0WLg17+P4Fg9JeeshfMqhIQNfPT9iymtL+B+c4dnwq fPUk5pzp/LTZs+wn1vcijxbZkfu0DkyD5YivgGl54C+SVcWcNKh4re6kgqgwzWzUgyFu QOPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v61-v6si46988263plb.499.2018.06.04.07.12.06; Mon, 04 Jun 2018 07:12:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753870AbeFDOLd (ORCPT + 99 others); Mon, 4 Jun 2018 10:11:33 -0400 Received: from ozlabs.org ([203.11.71.1]:38369 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751473AbeFDOLb (ORCPT ); Mon, 4 Jun 2018 10:11:31 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 40zxgj5Kw4z9s1B; Tue, 5 Jun 2018 00:11:28 +1000 (AEST) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 0abbf2bfdc9dec32e9832aa8d4522a57d698e753 In-Reply-To: <1527765086-19873-21-git-send-email-xieyisheng1@huawei.com> To: Yisheng Xie , From: Michael Ellerman Cc: Yisheng Xie , andy.shevchenko@gmail.com, Paul Mackerras , linuxppc-dev@lists.ozlabs.org Subject: Re: [v2,20/21] powerpc/xmon: use match_string() helper Message-Id: <40zxgj5Kw4z9s1B@ozlabs.org> Date: Tue, 5 Jun 2018 00:11:28 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-05-31 at 11:11:25 UTC, Yisheng Xie wrote: > match_string() returns the index of an array for a matching string, > which can be used instead of open coded variant. > > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Michael Ellerman > Cc: linuxppc-dev@lists.ozlabs.org > Signed-off-by: Yisheng Xie Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/0abbf2bfdc9dec32e9832aa8d4522a cheers