From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A11E3C433E1 for ; Tue, 23 Mar 2021 07:20:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 724EB619AB for ; Tue, 23 Mar 2021 07:20:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230097AbhCWHT6 (ORCPT ); Tue, 23 Mar 2021 03:19:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230039AbhCWHTu (ORCPT ); Tue, 23 Mar 2021 03:19:50 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DB62C061574 for ; Tue, 23 Mar 2021 00:19:50 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id s21so9700208pjq.1 for ; Tue, 23 Mar 2021 00:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=BPquWIfp6E7g9HIeoKveZqVwGYBc5+UjaXcfopywIAg=; b=csNqnxz+3yqhBUxQfHtn4xR38Z5vSRTJP9PBv448TYYs+pZSQlMpcsCiGijiSA9zBu izPev4j5TRwj2FepauT5Mg+sa+c3TbjavWrpIC/o8EW79xSJoATLor07UOJJsH53HOx9 EXAJiRwYAE4BZGtNRyoYcNAVC3akuvft72C80Ie/cHZDB+6PLxynIs9f0v1ynBggh1cW Yq9hvG2SrdaX8ZqzSYykf+dl+ZFEOuCoIWrJUUffwIYR1hJvTGBWEyWRmVfX4M4XnWff 9L7tT5fDLoWAPYUCIIXdgEYQDSbP5byoBmne5havqwX2oRDsRZJ3d2TnR7Cx6Bv5ND/0 4n8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=BPquWIfp6E7g9HIeoKveZqVwGYBc5+UjaXcfopywIAg=; b=s+ooMIQ2KF2N4PRB02KMdU7jk+7tul8J/o8VUdcX5RCsn/yulZEDZFju3lOKAhhSh4 Uqu+cOlufglfQBWZuV/SrdEuqNOb6SGrG4eNbINRwa0m2yWyGBG5xHT5DrV0tPoILNMS UFjGELhJ3MX8k4GUriwxfyaZqDHiugsXWg5aAysOrOhkCXdDlpIMjMYQUFIH7pBSCu8b Edmc/6YdWlIzKZS6nBwuvRSd2pKe0Ge7ODcSMkUJr1j3eLQmeSXo7DeFJvyS3dgCFCw1 EAbR/2w3mmmS9Ux4vQS7zJx1SrSZe53JfNtLvGIZKezOTwHeXCYMY04ZMUR31N7Uxv9V TGUQ== X-Gm-Message-State: AOAM530KQ8zApAU3ZG+w9HhsxaeRPq4asLJsMft/M+12GA2Cf8p2clUg b1hm6gU+2LFb/Owb/dHcbc5oPg== X-Google-Smtp-Source: ABdhPJxx1bUOKQ1IxfOZGUNrFItZZ5NIqZkAfRU8xAVL6+uawqnr0rqmMJQXl33Wd88ygrGq4ptviA== X-Received: by 2002:a17:90a:f68a:: with SMTP id cl10mr3171398pjb.87.1616483989591; Tue, 23 Mar 2021 00:19:49 -0700 (PDT) Received: from leoy-ThinkPad-X240s ([116.206.101.232]) by smtp.gmail.com with ESMTPSA id l3sm15427132pfc.81.2021.03.23.00.19.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Mar 2021 00:19:49 -0700 (PDT) Date: Tue, 23 Mar 2021 15:19:44 +0800 From: Leo Yan To: Zou Wei Cc: mathieu.poirier@linaro.org, suzuki.poulose@arm.com, mike.leach@linaro.org, alexander.shishkin@linux.intel.com, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] coresight: etm-perf: Mark format_attr_contextid with static keyword Message-ID: <20210323071944.GA55918@leoy-ThinkPad-X240s> References: <20210323075452.38920-1-zou_wei@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210323075452.38920-1-zou_wei@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 23, 2021 at 07:54:52AM +0000, Zou Wei wrote: > Fix the following sparse warning: > > drivers/hwtracing/coresight/coresight-etm-perf.c:61:25: warning: symbol > 'format_attr_contextid' was not declared. Should it be static? > > Signed-off-by: Zou Wei Reviewed-by: Leo Yan > --- > drivers/hwtracing/coresight/coresight-etm-perf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c > index 0f603b4094f2..bdbb77334329 100644 > --- a/drivers/hwtracing/coresight/coresight-etm-perf.c > +++ b/drivers/hwtracing/coresight/coresight-etm-perf.c > @@ -58,7 +58,7 @@ static ssize_t format_attr_contextid_show(struct device *dev, > return sprintf(page, "config:%d\n", pid_fmt); > } > > -struct device_attribute format_attr_contextid = > +static struct device_attribute format_attr_contextid = > __ATTR(contextid, 0444, format_attr_contextid_show, NULL); > > static struct attribute *etm_config_formats_attr[] = { > -- > 2.17.1 > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5BEB6C433DB for ; Tue, 23 Mar 2021 07:21:26 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EBE00619AB for ; Tue, 23 Mar 2021 07:21:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EBE00619AB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=WZXaPr5p5z2aM8ZXSHyMdi+TUZQvPmSAF2q/cSTBv44=; b=bbOHO2x0B2ZMWfpc24bwXojkr 2oDu3trSP+k3DKiRIUPcIiRTxI3lqI3lywtv91kVE/bQ4JJhuupQK+HGYSdci309azrh+W+xm4Exp 5TNLblLjMj0KKvgr7bAKvTYdKVQFxro1PISJFHL3r8cLzVZWnRBaL41sQ6BNGcY31h516ojzFoUf+ LGE5EuIEfauICyoAWzf7/vSoLqhP2SXt8LmbmWlpRT9yR+srnrQZicUnPN2IyxEJXIdKVXfeSDbBK G9bXLAmHXLGVzHzOp8Je5S2BL+nG5oU1RSXsPk3N8WZF6IaquAgB6hkaczpX+NfCy9/xZMVghqFMa zStOR5KTg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lObKY-00E7fp-LA; Tue, 23 Mar 2021 07:19:58 +0000 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lObKR-00E7eo-QI for linux-arm-kernel@lists.infradead.org; Tue, 23 Mar 2021 07:19:54 +0000 Received: by mail-pj1-x1029.google.com with SMTP id cl21-20020a17090af695b02900c61ac0f0e9so686467pjb.1 for ; Tue, 23 Mar 2021 00:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=BPquWIfp6E7g9HIeoKveZqVwGYBc5+UjaXcfopywIAg=; b=csNqnxz+3yqhBUxQfHtn4xR38Z5vSRTJP9PBv448TYYs+pZSQlMpcsCiGijiSA9zBu izPev4j5TRwj2FepauT5Mg+sa+c3TbjavWrpIC/o8EW79xSJoATLor07UOJJsH53HOx9 EXAJiRwYAE4BZGtNRyoYcNAVC3akuvft72C80Ie/cHZDB+6PLxynIs9f0v1ynBggh1cW Yq9hvG2SrdaX8ZqzSYykf+dl+ZFEOuCoIWrJUUffwIYR1hJvTGBWEyWRmVfX4M4XnWff 9L7tT5fDLoWAPYUCIIXdgEYQDSbP5byoBmne5havqwX2oRDsRZJ3d2TnR7Cx6Bv5ND/0 4n8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=BPquWIfp6E7g9HIeoKveZqVwGYBc5+UjaXcfopywIAg=; b=sExvapybbvPiuIckH2vJuEenkvOQP76VnFNnea0UpXyO7BnnWlLPS0JBJSuTEoCn5q VKg9rbpK4l3PPyqOBQpkXbFMF+YvheOYsu8MGIWNGu2n+d+FUOYwQyeJnfPTzBUFPSra /6LBOj0XyidyxcVNZ2X1l0GAW4XWP8qvf6X9HzGTg5/rrLiVZ2/pL8KUrI2SBet+EiZT dUSKAit3rbnLlf6B1QUB/SSBBA5buMDKaGwAGYxmaaqahpqUMMj8LQwUzpkqhh2maYAv UOJFCMCnjIkEHshkoRnYxRe5jXZ0OmOlXwtCstU6gTzPor7Z1e9xBkJXW7JhdP7LuAdq CgCA== X-Gm-Message-State: AOAM531XRERIyAwqLeOBUlyZ8dd9Jg2FvBK82oT+OmDJ/ZhD9GehZgQw fF6mVYbCrkvxJhNJ6MllUo44rA== X-Google-Smtp-Source: ABdhPJxx1bUOKQ1IxfOZGUNrFItZZ5NIqZkAfRU8xAVL6+uawqnr0rqmMJQXl33Wd88ygrGq4ptviA== X-Received: by 2002:a17:90a:f68a:: with SMTP id cl10mr3171398pjb.87.1616483989591; Tue, 23 Mar 2021 00:19:49 -0700 (PDT) Received: from leoy-ThinkPad-X240s ([116.206.101.232]) by smtp.gmail.com with ESMTPSA id l3sm15427132pfc.81.2021.03.23.00.19.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Mar 2021 00:19:49 -0700 (PDT) Date: Tue, 23 Mar 2021 15:19:44 +0800 From: Leo Yan To: Zou Wei Cc: mathieu.poirier@linaro.org, suzuki.poulose@arm.com, mike.leach@linaro.org, alexander.shishkin@linux.intel.com, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] coresight: etm-perf: Mark format_attr_contextid with static keyword Message-ID: <20210323071944.GA55918@leoy-ThinkPad-X240s> References: <20210323075452.38920-1-zou_wei@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210323075452.38920-1-zou_wei@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210323_071952_858552_AC7E51DE X-CRM114-Status: GOOD ( 16.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Mar 23, 2021 at 07:54:52AM +0000, Zou Wei wrote: > Fix the following sparse warning: > > drivers/hwtracing/coresight/coresight-etm-perf.c:61:25: warning: symbol > 'format_attr_contextid' was not declared. Should it be static? > > Signed-off-by: Zou Wei Reviewed-by: Leo Yan > --- > drivers/hwtracing/coresight/coresight-etm-perf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c > index 0f603b4094f2..bdbb77334329 100644 > --- a/drivers/hwtracing/coresight/coresight-etm-perf.c > +++ b/drivers/hwtracing/coresight/coresight-etm-perf.c > @@ -58,7 +58,7 @@ static ssize_t format_attr_contextid_show(struct device *dev, > return sprintf(page, "config:%d\n", pid_fmt); > } > > -struct device_attribute format_attr_contextid = > +static struct device_attribute format_attr_contextid = > __ATTR(contextid, 0444, format_attr_contextid_show, NULL); > > static struct attribute *etm_config_formats_attr[] = { > -- > 2.17.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel