Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3938859imm; Thu, 17 May 2018 18:22:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpxJ+igP7qNZMMdjs0MwVTCaJ3y5AMuoowEUjeM5z8SQOL6h3X5TH94GFRuj0QClfTMXt1y X-Received: by 2002:a17:902:6181:: with SMTP id u1-v6mr7289666plj.272.1526606555573; Thu, 17 May 2018 18:22:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526606555; cv=none; d=google.com; s=arc-20160816; b=b8DGMFvZMNg137us5xGX5ILrOwIiST6qzO4VhHTKwR8BhnHs3JQKlyKyg7X34TaPOk vKX7bVv1LvG0fu39v26iEKfEf9GbUE3uHuf2OgILG0aTDPrM73HZYSQRxS9mMJ1mm6lb awvJjMQFk+3dBRHjsb5PqccE8lXZk8lWxfNBpn6YwZ09adtx2mzR06A8zlEnz0eflIwz LXOiY1F99zwi06aCFD3GPluk/psc+Uc3N9hKNp5scPnhIroiueF1hOhn09hh36+rc+FP g5Vh3DZSdcUAsJyZtfIfL40xmzU0DDmVzPo5W9Q0uOMNgdydWPmHNcKkekM8AvHdtXKw 5OZQ== 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:arc-authentication-results; bh=6BLInIB/ZUUK2DE2Ye7c/oMuK6P4W9kg/QRwSSBJGFs=; b=PQRYk4IOaJPeepWj1aH9G11tPJGH5I89aRmIR+rP5sWW3BkCqXzqUUsOldar3gdTNU 2OdebBWaq9wZ2FLOGFgD0i3CrVrqylYckTirqDyuGBXWnFubD3DA6GnfDcPKYfrOVjac vt9sQdW8n2554r/BA2dJZ5gA7SYeB1NoDY7+1JsOSZDkRomUtn1Y5UlgiBOpDehtnCpR 9UUp/Z1AR0mIypYAvmokcHnd/xAPLXxICFHtfVLEf4r9MZ+7O2htdLnHWSPFTmnlGAjg tonY5nGpuCzMhx1PXjBfNUtwfgMR57U37KfWbIrGy/+5b/iEDWCxEG+RU4/4C/dqwk63 uOXA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3-v6si5866604pln.292.2018.05.17.18.22.21; Thu, 17 May 2018 18:22:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752227AbeERBVp (ORCPT + 99 others); Thu, 17 May 2018 21:21:45 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:42482 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752022AbeERBVI (ORCPT ); Thu, 17 May 2018 21:21:08 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EF26E1650; Thu, 17 May 2018 18:21:07 -0700 (PDT) Received: from localhost.localdomain (unknown [10.118.17.245]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E92AA3F25D; Thu, 17 May 2018 18:21:06 -0700 (PDT) From: Kim Phillips To: Greg Kroah-Hartman , Mathieu Poirier Cc: Alexander Shishkin , Alex Williamson , Andrew Morton , David Howells , Eric Auger , Eric Biederman , Gargi Sharma , Geert Uytterhoeven , Kefeng Wang , Kirill Tkhai , Mike Rapoport , Oleg Nesterov , Pavel Tatashin , Rik van Riel , Robin Murphy , Russell King , Thierry Reding , Todd Kjos , Randy Dunlap , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kim Phillips Subject: [PATCH 4/6] coresight: move shared barrier_pkt[] to coresight_priv.h Date: Thu, 17 May 2018 20:20:22 -0500 Message-Id: <20180518012024.22645-4-kim.phillips@arm.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180518012024.22645-1-kim.phillips@arm.com> References: <20180517070643.GC13919@kroah.com> <20180518012024.22645-1-kim.phillips@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org barrier_pkt[] is used in various coresight components. Change barrier_pkt[] to a static definition in the coresight private header. Needed prior to allowing coresight to be built as modules. Suggested-by: Mathieu Poirier Signed-off-by: Kim Phillips --- drivers/hwtracing/coresight/coresight-priv.h | 9 ++++++++- drivers/hwtracing/coresight/coresight.c | 8 -------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-priv.h b/drivers/hwtracing/coresight/coresight-priv.h index 83a6f5b7a683..45de8c15b687 100644 --- a/drivers/hwtracing/coresight/coresight-priv.h +++ b/drivers/hwtracing/coresight/coresight-priv.h @@ -57,7 +57,14 @@ static DEVICE_ATTR_RO(name) #define coresight_simple_reg64(type, name, lo_off, hi_off) \ __coresight_simple_func(type, NULL, name, lo_off, hi_off) -extern const u32 barrier_pkt[5]; +/* + * When losing synchronisation a new barrier packet needs to be inserted at the + * beginning of the data collected in a buffer. That way the decoder knows that + * it needs to look for another sync sequence. + */ +static const u32 barrier_pkt[5] = {0x7fffffff, 0x7fffffff, + 0x7fffffff, 0x7fffffff, 0x0}; + enum etm_addr_type { ETM_ADDR_TYPE_NONE, diff --git a/drivers/hwtracing/coresight/coresight.c b/drivers/hwtracing/coresight/coresight.c index 29e834aab539..0cbc2948defc 100644 --- a/drivers/hwtracing/coresight/coresight.c +++ b/drivers/hwtracing/coresight/coresight.c @@ -46,14 +46,6 @@ static DEFINE_PER_CPU(struct list_head *, tracer_path); */ static struct list_head *stm_path; -/* - * When losing synchronisation a new barrier packet needs to be inserted at the - * beginning of the data collected in a buffer. That way the decoder knows that - * it needs to look for another sync sequence. - */ -const u32 barrier_pkt[5] = {0x7fffffff, 0x7fffffff, - 0x7fffffff, 0x7fffffff, 0x0}; - static int coresight_id_match(struct device *dev, void *data) { int trace_id, i_trace_id; -- 2.17.0