From patchwork Thu Apr 25 19:52:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 162860 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp2362151jan; Thu, 25 Apr 2019 12:53:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqymZ+Ru332vqoirqnY+6y5YDgPUlikF3p40R/ZNuJTsnyIwPN05eBrwAy0NRsx4+9Zqtc1l X-Received: by 2002:a65:5286:: with SMTP id y6mr38375995pgp.79.1556222004059; Thu, 25 Apr 2019 12:53:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556222004; cv=none; d=google.com; s=arc-20160816; b=QsHiHa/pGRX35aeEyqoSe1vQKU65luD6Kk01LxS/OJQ1CN7f3WPUl8R31ePx6rBmas cLiepP1YBUgAjz/M+/da502Ji4j1VAA2CwOdZL5ikyXKLlAsSLVVk39QC3bv86vGF8Xw +KJXz8LJxslhpGznslID9Bkx3PSSozy8Fk3b9OlyzJwmuuMoKpJ+2xKxao0G6w4kzs/d j5IuKIdZYSIs4h8eNKmVMM+Z1WCoJpAgqFl2lSc531L6wn1pokTgajT09JdFuSJ5NMmx uIS5yZS2QOMcdCToxts9tlZ4oWARw9RJcNOz86oYpKXITiah2ZSnPptosrIWViRqvEuA wjWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=SsYopIRysxpEbj7whdU4UQe3yKdQwJ8mx3qD/71IORY=; b=jx1thLA7gFRTTYFZS5MUf2oakys8td2EneTu9Pa9EO1/tJsCCfCuERUmO5SC4Np0Wc lnzG63mZuUV03MiaZf2QscCAgog1N0NotUowPOMXnO4X2n51nPuLrhBCtu5A7VE9pT/z gKaQsD1TgnMz83A8pAbVX49IWFEwskW9xWxBy7nNrnOrAYJrC4dolOHZCNhDKnDoGI42 uVjOZEc6/IbEln8JaEZDiodAiOnzvo5Qw1iOqo6e7Cf1ECKReJMPj/sTnOIrVjo8S7sQ GGe8oiwqLmAVAuQffuAggps1WjBf5dD/q40oKiA9yfCpgJz9kcoHG62sK+ustp5uEYjG n0VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pEn3BjDJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si21183649pgr.253.2019.04.25.12.53.23; Thu, 25 Apr 2019 12:53:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pEn3BjDJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387668AbfDYTxW (ORCPT + 30 others); Thu, 25 Apr 2019 15:53:22 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:45619 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387598AbfDYTxQ (ORCPT ); Thu, 25 Apr 2019 15:53:16 -0400 Received: by mail-pl1-f195.google.com with SMTP id o5so298578pls.12 for ; Thu, 25 Apr 2019 12:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SsYopIRysxpEbj7whdU4UQe3yKdQwJ8mx3qD/71IORY=; b=pEn3BjDJOEXyLev6ZwUAtTIE2ggQu6WhsuOZlgCBWHCzcm444oHRrNHykB2a0uEuXD mGhL1PGgQ7Wyft01lgQiRkebDk2xE8f1MwwtYbW/HkiutMRUo0D0R9+EmRY1urJcPiJa lwKUZ+LFmfthIxaDumaTtk/UIjSHm8pBCktzJMStrHyvSgXPodzvO9z0vlKPPVOYBUBY FdrDHnLbUCXXMRZ0FtQcUYvLnCaUOBFhbWIn1yChCv2Q+f2E//tjEFoddjpmqURNyf53 iOpJcpPqD/7oLrDebM49FpkzxAVTgVYasYBu/rhvKfbHh79cD7V5zfHYjRM6dIgJSusx OCNw== 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; bh=SsYopIRysxpEbj7whdU4UQe3yKdQwJ8mx3qD/71IORY=; b=T/OgXXW1721CRms6z86F7dR3V6aS/Tvo5PsGY61tVpAVVy0VpPOTrwMAlnaJu/AmoS O5FOx5JMmSbwu4VevjWlfIWoH/jsr+ULAoYz1HJouZc6Fx5K2W2q0OJI/MSo66LjFvoZ 8bWbwiS3+jngvyVCNMASrRMtube0aC0hy1sDBAYFJanE9xGg5o6NFrVr9yql1kNm460D +jkHvrvfPmfnwzYXbwr8+OOUADT5jjP2oAZgyR6LfSvBUXnjN6W39qIE1ZMk/23Gxkpu rviGAPI8sacJp6P7OUhAcQI6VLl8NPEY8vTvh+vwohFn8OQ7/bvZ7Aulp4hoMfztvPsC Nwdw== X-Gm-Message-State: APjAAAXbjeX60ML9zuCXBlrkJoy3rR72hbRh0alVBW8jXlOfl3Kfsufo H8KRewytzsb7ktJfFbRcx4cQlA== X-Received: by 2002:a17:902:29ab:: with SMTP id h40mr41298379plb.269.1556221995193; Thu, 25 Apr 2019 12:53:15 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id t64sm47261961pfa.86.2019.04.25.12.53.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 12:53:14 -0700 (PDT) From: Mathieu Poirier To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/32] coresight: catu: Make catu_helper_ops and catu_ops static Date: Thu, 25 Apr 2019 13:52:40 -0600 Message-Id: <20190425195310.31562-3-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190425195310.31562-1-mathieu.poirier@linaro.org> References: <20190425195310.31562-1-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing Fix sparse warnings: drivers/hwtracing/coresight/coresight-catu.c:488:35: warning: symbol 'catu_helper_ops' was not declared. Should it be static? drivers/hwtracing/coresight/coresight-catu.c:493:28: warning: symbol 'catu_ops' was not declared. Should it be static? Signed-off-by: YueHaibing Reviewed-by: Mukesh Ojha Reviewed-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-catu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/hwtracing/coresight/coresight-catu.c b/drivers/hwtracing/coresight/coresight-catu.c index 170fbb66bda2..057627a0753d 100644 --- a/drivers/hwtracing/coresight/coresight-catu.c +++ b/drivers/hwtracing/coresight/coresight-catu.c @@ -485,12 +485,12 @@ static int catu_disable(struct coresight_device *csdev, void *__unused) return rc; } -const struct coresight_ops_helper catu_helper_ops = { +static const struct coresight_ops_helper catu_helper_ops = { .enable = catu_enable, .disable = catu_disable, }; -const struct coresight_ops catu_ops = { +static const struct coresight_ops catu_ops = { .helper_ops = &catu_helper_ops, };