Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp272475ybz; Fri, 17 Apr 2020 00:33:32 -0700 (PDT) X-Google-Smtp-Source: APiQypIOS14bOcReFyo9mOMYy6wKSgDhgWVJrepjRuWisErRZ8xv66Jx4IALPWJDQ7nzuxyxSZDr X-Received: by 2002:a17:906:4e8f:: with SMTP id v15mr1786128eju.321.1587108812275; Fri, 17 Apr 2020 00:33:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587108812; cv=none; d=google.com; s=arc-20160816; b=01L1HDjXr2MW/eb7uyKVCkR1K7o271y/QIf82q3yFqPzxDpE/4LZclWMOGK/HYUpzi 3NfoBRKZ4hFkCtX8l7tOHa7Oq4BGNAWvYfiViECkOFllClBh6ZMBj2TL0oZhG1PVnbo5 NrE4oni1+z8SxtcsmaJzWZ6Tmw5qKQhG5RHG0zITYs6x9kySa24MI76EP6uf7JnaTZJh feNPd1UPoRM7T4El+5oM6V1svJ/WeSDaLSKS6x0wm5zrAdDjMrIJOGwEweBHA/gq13j4 3U+pzKFOvR5/caBSwVXa9hpmI7sLZGmYHZWz+GNS69AbIUARn7ZVIc0HJaSi1eTH5gIS qyUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7S9bS5lTJuaIbITwo1VhZityvbEdWIr+h9J+gTYDTOQ=; b=WzaTkn9sOiBUp6Eceo3eDYmm3z9f6sMxnxt35JGiDLgSx7MVU8+l2zwS9WBLQQj3oD J5MwV5b3kB8aA5pomzHEKbB1jmcuxHlVdZslNZ505rJWtV6WY3YDfvEsxOOXO40A2u+x +gfrmiE8uwMbEGPDzmCzMraHhS6v4edVbmrpE3UrWsyPuTpK9XPcQF5M0hFcHsNet2pH FuIQmfOypP0XrYDya60gvqAOvW2n86hPIsQNSaXr6hhcFxschiMpjoN2srQS6FWY0xc4 uD84A3hw5O323y0hNp4IW8uqYs1fg0tQkHzfcDWIVnkkgR/sOzZIgmTGEeuevPMfCbUS Gnog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0NQv4ii3; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qt4si9782982ejb.447.2020.04.17.00.33.07; Fri, 17 Apr 2020 00:33:32 -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=@kernel.org header.s=default header.b=0NQv4ii3; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729031AbgDQHcB (ORCPT + 99 others); Fri, 17 Apr 2020 03:32:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:39366 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728419AbgDQHb7 (ORCPT ); Fri, 17 Apr 2020 03:31:59 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A7600214AF; Fri, 17 Apr 2020 07:31:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587108719; bh=Xu2I5aZjH5oCRoZlSX0jTLjTnHV7Btp7OW+Qlox4bw0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0NQv4ii3zEJJUkiNAcRvLlILh/ZUXhtvjy3E/Jy9XVTt+mhswR1vzuZkxFFYWqzSR sqcNa8h0OkEZ0UQxF+onFISch4A21EkHpvR8dxixL4+6iKtcED3tBC3xnaffQnIhSM MrrpNYBk7f7oANym37qrW/txJeb4vKAVqtLjP0kk= Date: Fri, 17 Apr 2020 08:31:55 +0100 From: Will Deacon To: Jason Yan Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, Hulk Robot Subject: Re: [PATCH] samples/hw_breakpoint: make sample_hbp static Message-ID: <20200417073155.GA10812@willie-the-truck> References: <20200417073542.42721-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200417073542.42721-1-yanaijie@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 17, 2020 at 03:35:42PM +0800, Jason Yan wrote: > Fix the following sparse warning: > > samples/hw_breakpoint/data_breakpoint.c:24:19: warning: symbol > 'sample_hbp' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: Jason Yan > --- > samples/hw_breakpoint/data_breakpoint.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/samples/hw_breakpoint/data_breakpoint.c b/samples/hw_breakpoint/data_breakpoint.c > index 418c46fe5ffc..37c4f0ea8e53 100644 > --- a/samples/hw_breakpoint/data_breakpoint.c > +++ b/samples/hw_breakpoint/data_breakpoint.c > @@ -21,7 +21,7 @@ > #include > #include > > -struct perf_event * __percpu *sample_hbp; > +static struct perf_event * __percpu *sample_hbp; > > static char ksym_name[KSYM_NAME_LEN] = "jiffies"; > module_param_string(ksym, ksym_name, KSYM_NAME_LEN, S_IRUGO); Acked-by: Will Deacon Will