Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1930724rdb; Tue, 5 Sep 2023 09:06:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGNF4Z1b2j4B9yO17bv0o8p9HcSJhNzkBehmOFEnR1LS7hpZiFQCkxa4fYyhgOZFkaR+lIP X-Received: by 2002:ac2:5310:0:b0:4fb:8de9:ac0e with SMTP id c16-20020ac25310000000b004fb8de9ac0emr231575lfh.1.1693930002175; Tue, 05 Sep 2023 09:06:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693930002; cv=none; d=google.com; s=arc-20160816; b=Z4d7UyJdpXaDfgKX/gScPsPoaBlMQV2xGdcZGjvGmyw4gMu4NwQJSnI0EHLPnl7QEa ghIiHDpNHeFU4tZYSKMQA6sNal4Hl5xshfEthHZZncUAWcZOxdAQXMM/DVfoVGs/KmGG crVk5zzchYshlfBbf1iEWGAtQl1npHgBoW4vNs40UyOSqpotbNFUw223wdDJGxfhn0lk diQeAcBsKJteUN28wRqsXYC0nqlYiayR9UqbeO6ynysizsh+KwjR93Vj6GcYWNXhf7AU Wn4uXzpo0wXbTa8LhlI+WwJDcuoZ54c0I7kgQITKx3+RpvBSzR5Cm4/flF5DQPBij/qO IsVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6plOE05wtAOE2J15C66Bubu1b7lLRziMMVbmgfVPQXg=; fh=pka7GmRWn0KGVlXHjp9qM3XWzG8s7GmCCC19G0FYSck=; b=vdIugTNC9d8NW+W0DlBbydG9Uwt4uN3Ks635jxYH53IVa6KaLr+/VO8+8zev9UPnYX lk4cQbCANqRufJnDRW1Fe03HUr2eLnzbNH+Jjk0PZJLxieetwHneg4J5Jm0j3aTlekKe TLrrtJH4sU2k71RBRjoKadVA3H4spo2OE4r7uYeT3tbXg80fpDEnpZxPAbG8+7mVDbx1 WdlvWM3PYJdFjDrUbCA1rucDJNTnyxs7bazxGMHXhZbsLL2m5t7vLmN5jpn2/Be1ONCa jwUZBcDHGaYE0Ygd7vKI1sj21Qp5luQFSV0OVYYG7dk3NUF5T4qU4aWU798MBn63qH1j SYmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="EyR5Ll/Q"; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a1709060e0f00b0099bc2498813si7514222eji.323.2023.09.05.09.06.35; Tue, 05 Sep 2023 09:06:42 -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=@redhat.com header.s=mimecast20190719 header.b="EyR5Ll/Q"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350143AbjIAPMr (ORCPT + 10 others); Fri, 1 Sep 2023 11:12:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350138AbjIAPMq (ORCPT ); Fri, 1 Sep 2023 11:12:46 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE37D10F1 for ; Fri, 1 Sep 2023 08:11:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693581068; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6plOE05wtAOE2J15C66Bubu1b7lLRziMMVbmgfVPQXg=; b=EyR5Ll/Q5L+WwF5q6WKE0LO78Da02H7WoDAVGqmbspYrWM76oWCqissaEan2gQsLzYBIv0 fgNK4tfCZHFwsxcQKmh0R5VeyDG1io+uJIT0+i1Tkry/RIGFhsW/thNo0GUa3V4Bm1UEQD UPML2/kbaekDEDufJIeEv5mnsU+SViY= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-475-BSsqkJlyMnaqU7tQ4Cxcdw-1; Fri, 01 Sep 2023 11:11:06 -0400 X-MC-Unique: BSsqkJlyMnaqU7tQ4Cxcdw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7C716381CC0B; Fri, 1 Sep 2023 15:11:05 +0000 (UTC) Received: from vschneid.remote.csb (unknown [10.39.193.168]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BE7262012F37; Fri, 1 Sep 2023 15:11:04 +0000 (UTC) From: Valentin Schneider To: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Cc: Steven Rostedt , Masami Hiramatsu Subject: [PATCH 4/4] tracing/filters: Fix coding style issues Date: Fri, 1 Sep 2023 17:10:39 +0200 Message-Id: <20230901151039.125186-5-vschneid@redhat.com> In-Reply-To: <20230901151039.125186-1-vschneid@redhat.com> References: <20230901151039.125186-1-vschneid@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE 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 Recent commits have introduced some coding style issues, fix those up. Signed-off-by: Valentin Schneider --- kernel/trace/trace_events_filter.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/trace/trace_events_filter.c b/kernel/trace/trace_events_filter.c index 09b4733a2933d..33264e510d161 100644 --- a/kernel/trace/trace_events_filter.c +++ b/kernel/trace/trace_events_filter.c @@ -1360,7 +1360,7 @@ int filter_assign_type(const char *type) return FILTER_DYN_STRING; if (strstr(type, "cpumask_t")) return FILTER_CPUMASK; - } + } if (strstr(type, "__rel_loc") && strstr(type, "char")) return FILTER_RDYN_STRING; @@ -1731,7 +1731,9 @@ static int parse_pred(const char *str, void *data, maskstart = i; /* Walk the cpulist until closing } */ - for (; str[i] && str[i] != '}'; i++); + for (; str[i] && str[i] != '}'; i++) + ; + if (str[i] != '}') { parse_error(pe, FILT_ERR_MISSING_BRACE_CLOSE, pos + i); goto err_free; -- 2.31.1