Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp262526pxx; Thu, 29 Oct 2020 01:53:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUZ3gwYxNhmtoLJA0qYMbckVEwJr1svNMpylnHW+IB/Pbih5n4m6gNCbLMn0lYXKjBBt39 X-Received: by 2002:a17:906:5613:: with SMTP id f19mr2872536ejq.441.1603961590931; Thu, 29 Oct 2020 01:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603961590; cv=none; d=google.com; s=arc-20160816; b=FVeq0RxgXjbiOkRtNjY7LK9QgYgNax0/UoovipnL7gOXspmjqj7zzP7/smfMtrMHaa tu0kwzMygw+qMnAgu9eHWhNMWI8MZX6wbgPRSWMTL6QaAqCETccekxk0jB7z++l+AQjw ibOXbPjKgRTYqowdDUeHxTTyEBDxq+YZZXM1lt3HfQ5s5tGo1XmgBjsLe9Xm3IApkyh4 Hg90CkKssy37NYLVjKzrfBN/3dCy2gqOAtyDLbk1k2HRHJRyMQew1VADhbS8EuTZ//bE 6Uu5yWijpwcG5NCaeLMY+STeHW7q5Y8zd8WFXElS0lx+9HerC496XXSSW8TcYv6EHVfU xQew== 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=xbnd0NoFYoB7PfypZO6wzt43HHnGRWSv9fNX9Bj+o+o=; b=me6vuNIVxPnKy/vc2mqAyiguVZ+TN4B9sYVAAnOALtetoplk85H3zhI1wWG4B31qSj 4vHAoFvLWJD6zFr5CbASqZtxRHwzyd693B88i8dQkT563p4tyWfOvPq1izcT6p3wmqrt qVRdjuNIsLxF7HSfKV8FlYdLg3TcdAfNbwJcHDrmRTyaXqUZUdJWd3FG++dOccY0JS9v rTjRoazQXCyTpnVvjH2ZesENhBxDeFm6FQjj1dfXjPaAEyNki2EfnHEBUQ/dd88EHeLp CgQNB2obz8J8N6WIS7vbTp9d6mZnvf+oqa1Q+J9NeTnNKaSNTz8Xe7wQceSmXccjuB3y XNTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e1rhlCui; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f27si1304277ejf.129.2020.10.29.01.52.48; Thu, 29 Oct 2020 01:53:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e1rhlCui; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726834AbgJ2CLq (ORCPT + 99 others); Wed, 28 Oct 2020 22:11:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726830AbgJ1Vgo (ORCPT ); Wed, 28 Oct 2020 17:36:44 -0400 Received: from mail-vs1-xe43.google.com (mail-vs1-xe43.google.com [IPv6:2607:f8b0:4864:20::e43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37B03C0613CF for ; Wed, 28 Oct 2020 14:36:44 -0700 (PDT) Received: by mail-vs1-xe43.google.com with SMTP id b3so383111vsc.5 for ; Wed, 28 Oct 2020 14:36:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xbnd0NoFYoB7PfypZO6wzt43HHnGRWSv9fNX9Bj+o+o=; b=e1rhlCuidEDRA6xsenaviIPZgQzmsCnwlrTnpqgID06fQ3I9pXukFQQdtyW3D92Td7 aLWXCR0OQ50cedoKVFpP8HqMJ7kzrkE3oAHEZxn8/mPnLwoGXJJK13ROnz9ttvBXXeXU m1zZtWbMEE6FIvMKN+AZ7D3P9fjHILILej/BOL+DAMc7+BzEyUW4t/z35KZLZeXT0+QW Ki1MmuJo1PYZBBzdXsvPNXIIWUUiDnQx1l/La8fWos24XJnV5ncCy0ge0DTbozAgyiWy 27nLvRP+O6uOP7ZuSq51MlpO+14WeC73J0mU6HLOBM5FJ5SJbAp46XixTfteTqPo7neE veiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xbnd0NoFYoB7PfypZO6wzt43HHnGRWSv9fNX9Bj+o+o=; b=No7XX19rY0THXWNw7SOzTldlbcMZGja1X/4FP3yZyMXvU73a5G1HmbVPwSbT6Y+coW Yn/oXc5UD4Te2RfOeQdLz0qV/uR1QFeWXvle0nErStXtrv7g4vHH8KCG+0iVVfAqCWbo ScpTXB3rbeWjXmZ6Lk4G326Hm+IKYK2nCvm2RmPXvCEarCsOXJC+w7C1zSDgb9/bG46F xuMY0r8NkG5GE9ZuSxGbCzqwkB9ULYiJngmfkuWMrEs87YZFIMb5gdqXNBY1xyokaPym CMtwmjRUkxfAVi8zjptq7bDUEKV8oMTmqrBgnDFJaMAsK0QV3WD2fkkljcaYs5nFnRc/ CIww== X-Gm-Message-State: AOAM530Ase4YHCKLgrGPG+rh2AAYYOVcXFDbwQ+QQFoZjETM97GZkw/Q bouWhLcfc6P3QK2V8eaxtcHDzI1WlAhHs8lG X-Received: by 2002:aa7:95bb:0:b029:152:b32d:6935 with SMTP id a27-20020aa795bb0000b0290152b32d6935mr7446338pfk.54.1603887643018; Wed, 28 Oct 2020 05:20:43 -0700 (PDT) Received: from Monkey.fios-router.home ([47.144.162.13]) by smtp.gmail.com with ESMTPSA id a143sm6329137pfd.138.2020.10.28.05.20.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 05:20:42 -0700 (PDT) From: "John B. Wyatt IV" To: "' Joel Fernandes (Google)" , Nishanth Aravamudan , Julien Desfossez , Peter Zijlstra , Tim Chen , Vineeth Pillai , Aaron Lu , Aubrey Li , tglx@linutronix.de, linux-kernel@vger.kernel.org, mingo@kernel.org, torvalds@linux-foundation.org, fweisbec@gmail.com, keescook@chromium.org, kerrnel@google.com, Phil Auld , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini , vineeth@bitbyteword.org, Chen Yu , Christian Brauner , Agata Gruza , Antonio Gomez Iglesias , graf@amazon.com, konrad.wilk@oracle.com, dfaggioli@suse.com, pjt@google.com, rostedt@goodmis.org, derkling@google.com, benbjiang@tencent.com, Alexandre Chartre , James.Bottomley@hansenpartnership.com, OWeisse@umich.edu, Dhaval Giani , Junaid Shahid , jsbarnes@google.com, chris.hyser@oracle.com, Aubrey Li , "Paul E. McKenney" , Tim Chen ' Cc: "John B. Wyatt IV" Subject: [PATCH 3/8] sched: Fix some style issues in test_coresched.c Date: Wed, 28 Oct 2020 05:19:12 -0700 Message-Id: <20201028121917.635203-4-jbwyatt4@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201028121917.635203-1-jbwyatt4@gmail.com> References: <20201028121917.635203-1-jbwyatt4@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Line 825: open brace '{' following function definitions go on the next line. Line 459: that open brace { should be on the previous line Line 459: space required before the open parenthesis '(' Issues reported by checkpatch. There are other issues including over a hundred instances of using spaces instead of tabs in this file. I am currently fixing these specific issues in this patch. Signed-off-by: John B. Wyatt IV --- tools/testing/selftests/sched/test_coresched.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/sched/test_coresched.c b/tools/testing/selftests/sched/test_coresched.c index 91cfb00f15b5..f11ed8370c07 100644 --- a/tools/testing/selftests/sched/test_coresched.c +++ b/tools/testing/selftests/sched/test_coresched.c @@ -459,9 +459,8 @@ char *get_task_core_cookie(char *pid) sprintf(proc_path, "/proc/%s/sched", pid); fp = fopen(proc_path, "r"); - while ((fgets(line, 1024, fp)) != NULL) - { - if(!strstr(line, "core_cookie")) + while ((fgets(line, 1024, fp)) != NULL) { + if (!strstr(line, "core_cookie")) continue; for (j = 0, i = 0; i < 1024 && line[i] != '\0'; i++) @@ -826,7 +825,8 @@ static void test_prctl_in_group(char *root) print_pass(); } -int main(void) { +int main(void) +{ char *root = make_group(NULL, NULL); test_cgroup_parent_tag_child_inherit(root); -- 2.28.0