Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1313063pxb; Fri, 20 Aug 2021 02:54:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMHzsX01MO3TnXRWqUl0rlqapg0Nh8Z81/kk4x118hZZOOzMveT6FMX5vqXti+Ck3xWic9 X-Received: by 2002:a17:906:1d43:: with SMTP id o3mr20854694ejh.44.1629453241748; Fri, 20 Aug 2021 02:54:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629453241; cv=none; d=google.com; s=arc-20160816; b=dkFi9Xw2JJbkm25WvNRRrRiszNpuDz6fsHOvTmV7ZOAn/5LdEfVcrPnGOcBIay2haK 2YHppNf7E9Rc+aXB+mbLUcojSZfpQAp3btxLZSa+zZxc2SZ/8YFhkUoSls9mNjx+pbis ZA6t7MtozLypaM1QmJHPFMJqKQ4jwV2oM/mpHmeO38nXrrizpAl3i1ATwrmNUKaitwcL HcXWgWwcVYsJncYWBNLfyCUcqRG/noEOKH53wu5nMOMdg3Ejva6bd0zWqNEbrCTj5U/g wcedRUYkCLL80+0+FJ3yyDNsoQqLMcQUz8+AhseViv2yJiFhWg4hONWbzB1QpxQq79hH 0LiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=Ze6SImvhAXSmdaBT0cQs7ivBDCVcQNY0eOhGuDyBVvg=; b=wvrU7KbH0fK2AVBa+UI0ZMXVAr276pgfFg21s0QLDfkoffOEi8BsDb617A4CvMkKsS cS2ZaC9y2vS89i3WayF5gXiLlXokRnIFJE1mrl2M/bgERVdHSAV66OQN4MBUmgqmiKVF FIsrviVZ0W7Ngv7O8hCjw/7PnKwQ4KHfHQXKdFN8v/QFz5fx4GJMbYIZzXMgAtIT11Yw JspzkCr7uH2/fkikfTyMJ6MiRQIGCeM++1B9Oo05Bql4mSlF1uD6LM141tN04PxlDIbt TiEwjzdbEa87Vf64I/Glx+OZZ8EMBBiODjpNdxiPIXpw3KGz2zK/TDGxCYnLhbwXfqOw WWkg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r21si6050263edy.146.2021.08.20.02.53.33; Fri, 20 Aug 2021 02:54:01 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237411AbhHTJvR (ORCPT + 99 others); Fri, 20 Aug 2021 05:51:17 -0400 Received: from out30-42.freemail.mail.aliyun.com ([115.124.30.42]:49359 "EHLO out30-42.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236957AbhHTJvQ (ORCPT ); Fri, 20 Aug 2021 05:51:16 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0UkJjC6m_1629452982; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UkJjC6m_1629452982) by smtp.aliyun-inc.com(127.0.0.1); Fri, 20 Aug 2021 17:50:37 +0800 From: Jiapeng Chong To: rostedt@goodmis.org Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] trace/osnoise: make timerlat_min_period and timerlat_max_period static Date: Fri, 20 Aug 2021 17:49:30 +0800 Message-Id: <1629452970-77067-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This symbol is not used outside of trace_osnoise.c, so marks it static. Fix the following sparse warning: kernel/trace/trace_osnoise.c:1821:5: warning: symbol 'timerlat_min_period' was not declared. Should it be static? Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- kernel/trace/trace_osnoise.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/trace_osnoise.c b/kernel/trace/trace_osnoise.c index b61eefe..004cb3c 100644 --- a/kernel/trace/trace_osnoise.c +++ b/kernel/trace/trace_osnoise.c @@ -1818,8 +1818,8 @@ static void osnoise_init_hotplug_support(void) /* * osnoise/timerlat_period: min 100 us, max 1 s */ -u64 timerlat_min_period = 100; -u64 timerlat_max_period = 1000000; +static u64 timerlat_min_period = 100; +static u64 timerlat_max_period = 1000000; static struct trace_min_max_param timerlat_period = { .lock = &interface_lock, .val = &osnoise_data.timerlat_period, -- 1.8.3.1