Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp674679rwb; Thu, 6 Oct 2022 02:59:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6d4zVh5aKToiKcKX97UY7H1ATsqP73HF3j2iCHAHNrBbClvE/nZUMc4aNAUII7Jx1WsoxH X-Received: by 2002:a05:6402:148a:b0:459:2eab:9b0a with SMTP id e10-20020a056402148a00b004592eab9b0amr3733003edv.139.1665050348122; Thu, 06 Oct 2022 02:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665050348; cv=none; d=google.com; s=arc-20160816; b=k8+uWt3+7Sdaevvz3LLIsdVnGbo7N13vNy9ILV6ZK/BBTej5tTS5nArT3ivKyI4I2w X1EhiumgBPh54aG337bSi/+zl7++dPvw5vvW9LnP7OayhkV2Oy9tLV4Du2BvMd8PS3rW bAsbbZp8Aqy2140akqzUEK1A35VfGl3wLlOVOQRzY9H1TBlzVa43bP+sPBWq7SbHRG21 hyRzj+Iyq5xrp9qDgRhv8GxV9YkU12lUwxpOcRMth4d62QKq1epim9paoTXBjjLTbLjI 2BWCGteqsFae2eJURuenm+rGyoK98XiX1nZsXw0XOegUivkpYCtUMjN0P08N9rQUh6an YBvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:abuse-reports-to:tuid:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=pQ8zE81i5M1NwylFwpVMgKV08kBQqss2x6ApN82EcS4=; b=MI41gTMskd0AhdZX1bL89N+/b5OAZ0ccGIpychRifYQxXzGB5LRQPi+SV4Uow/lm3J wDrl48Ugi98cJjxJmiEQXpqyHJa5wkpHFKrKnqLZMxow4E+HFoROYCLtGMrH/X3+JzGm RK52rvJ962hKd8c+RUOtI8UcD4vnThQ4Zn9dMObnnCrW7GU76zL15cPEja3/43fUbpok 8oEBFi1bYuB0vzl3f9f5C6anCAZ6ZsGJTxxEtCrJXy4wHXqhnRJuvMFXB1PCngbE9DVE 32TB05yg354v/lFosgVthXO0/1U8apbtiHz26jre4stWDNPsWs7SlLrFwEhTXew7O4Dt hIew== 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 z2-20020a056402274200b0045981993486si6514371edd.227.2022.10.06.02.58.42; Thu, 06 Oct 2022 02:59:08 -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 S231152AbiJFJUs (ORCPT + 99 others); Thu, 6 Oct 2022 05:20:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229673AbiJFJUq (ORCPT ); Thu, 6 Oct 2022 05:20:46 -0400 Received: from unicom145.biz-email.net (unicom145.biz-email.net [210.51.26.145]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C1BB2F666 for ; Thu, 6 Oct 2022 02:20:45 -0700 (PDT) Received: from ([60.208.111.195]) by unicom145.biz-email.net ((D)) with ASMTP (SSL) id BLB00143; Thu, 06 Oct 2022 17:20:43 +0800 Received: from localhost.localdomain (10.200.104.82) by jtjnmail201603.home.langchao.com (10.100.2.3) with Microsoft SMTP Server id 15.1.2507.12; Thu, 6 Oct 2022 17:20:43 +0800 From: Deming Wang To: , , , , CC: , Deming Wang Subject: [PATCH] kallsyms: add required space for unified style Date: Thu, 6 Oct 2022 05:20:42 -0400 Message-ID: <20221006092042.1753-1-wangdeming@inspur.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.200.104.82] tUid: 202210061720433fc399169644100ccc40985d8b7e1c2e X-Abuse-Reports-To: service@corp-email.com Abuse-Reports-To: service@corp-email.com X-Complaints-To: service@corp-email.com X-Report-Abuse-To: service@corp-email.com X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, 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 add required space before and after operators. Signed-off-by: Deming Wang --- scripts/kallsyms.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index 03fa07ad45d9..1df9944030e2 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -213,7 +213,7 @@ static void check_symbol_range(const char *sym, unsigned long long addr, static struct sym_entry *read_symbol(FILE *in) { - char name[KSYM_NAME_LEN_BUFFER+1], type; + char name[KSYM_NAME_LEN_BUFFER + 1], type; unsigned long long addr; unsigned int len; struct sym_entry *sym; @@ -388,7 +388,7 @@ static int expand_symbol(const unsigned char *data, int len, char *result) c = *data; /* if the table holds a single char that is the same as the one * we are looking for, then end the search */ - if (best_table[c][0]==c && best_table_len[c]==1) { + if (best_table[c][0] == c && best_table_len[c] == 1) { *result++ = c; total++; } else { @@ -641,7 +641,7 @@ static int find_best_token(void) { int i, best, bestprofit; - bestprofit=-10000; + bestprofit = -10000; best = 0; for (i = 0; i < 0x10000; i++) { -- 2.27.0