From nobody Sat Jul 25 19:30:26 2026 Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD76A12E1DC for ; Tue, 14 Jul 2026 13:15:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784034954; cv=none; b=NgR6zZNSL8HuKOHUZCi1h3PygbUvZkPKqGGlCCkht0q/6nllD8ZNlxATVnJHCCm1CRZeNSEy/vP2+jSduilS6HvpR4mW7P/7o76wTj2D6OK0Gxp5IGvG3z2bmxBFHA0WieQdBTIk0167Fd2Xg/tgcY5ikE0Vo0OMNRUuYq8U878= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784034954; c=relaxed/simple; bh=HDw5JCMbg/HO4l3BxobbUsshVuB8ztpxHgMTkewCE4s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IKyxCVJm2m7StFmqA3im58qqpPQsCcmb1JNleBsFI23hoiU/a6WdwSqqBFDBEkEbbeCk+vSZkkQkWD+qtG/1Q+h5CuUk8XBtcqZOElSYNmARQRy46h8qNRlYFjFJXNVIStgjQxuIcc+ylGpsWSu0IdDs4LJBGtxO+fk4SNOUALU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: 1d70a4a27f8611f1aa26b74ffac11d73-20260714 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.12,REQID:61980a14-e919-496e-8dc0-4e60f2e27ff4,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:e7bac3a,CLOUDID:a4ef04b36281cd9f95173ffd2d4b1340,BulkI D:nil,BulkQuantity:0,Recheck:0,SF:102|865|898,TC:nil,Content:0|15|50,EDM:- 3,IP:nil,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,A V:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 2,SSN|SDN X-CID-BAS: 2,SSN|SDN,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-CID-RHF: D41D8CD98F00B204E9800998ECF8427E X-UUID: 1d70a4a27f8611f1aa26b74ffac11d73-20260714 X-User: pengcan@kylinos.cn Received: from lenovo [(10.44.16.150)] by mailgw.kylinos.cn (envelope-from ) (Generic MTA with TLSv1.3 TLS_AES_256_GCM_SHA384 256/256) with ESMTP id 1263764163; Tue, 14 Jul 2026 21:15:42 +0800 From: Can Peng To: suzuki.poulose@arm.com, mike.leach@arm.com, james.clark@linaro.org, leo.yan@arm.com, alexander.shishkin@linux.intel.com, mathieu.poirier@linaro.org, gregkh@linuxfoundation.org Cc: coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Can Peng Subject: [PATCH] coresight: etm4x: add OF module alias for platform driver Date: Tue, 14 Jul 2026 21:15:36 +0800 Message-ID: <20260714131536.153846-1-pengcan@kylinos.cn> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The ETM4x platform driver uses etm4_sysreg_match as its OF match table, but the table is not exported for module alias generation. Add the MODULE_DEVICE_TABLE(of, ...) entry so modpost can generate OF module aliases for the sysreg platform-device path when CORESIGHT_SOURCE_ETM4X is built as a module. Fixes: 5214b563588e ("coresight: etm4x: Add support for sysreg only devices= ") Signed-off-by: Can Peng --- drivers/hwtracing/coresight/coresight-etm4x-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hwtracing/coresight/coresight-etm4x-core.c b/drivers/h= wtracing/coresight/coresight-etm4x-core.c index 14bb31bd6a0b..634ed9ad9550 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x-core.c +++ b/drivers/hwtracing/coresight/coresight-etm4x-core.c @@ -2496,6 +2496,7 @@ static const struct of_device_id etm4_sysreg_match[] = =3D { { .compatible =3D "arm,embedded-trace-extension" }, {} }; +MODULE_DEVICE_TABLE(of, etm4_sysreg_match); =20 #ifdef CONFIG_ACPI static const struct acpi_device_id etm4x_acpi_ids[] =3D { --=20 2.53.0