Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp681353pxb; Wed, 16 Feb 2022 01:52:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJwjyNmWPjjMJ7xgY2gfK3Odgx4b7jdX9xK1hO+4Hf0gspxMsvpg+zXJD5/Jz+VsBbMEGsMi X-Received: by 2002:a17:902:ba86:b0:14d:6d1f:bed4 with SMTP id k6-20020a170902ba8600b0014d6d1fbed4mr2016198pls.37.1645005175321; Wed, 16 Feb 2022 01:52:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645005175; cv=none; d=google.com; s=arc-20160816; b=RDIhbRD9l44MGODfq2v0BgTd1+GGjgSPUgPs1FGinpnWQdB/dm8ySLcZimR0sWt7bY esEhVDfVtABX4yqwv4BgJWHsT9xQeGiZESd1nyyG6QWM38t5BFABgvwJ5csrAA5rgAP/ KMuU2cPN9+Sy2vDaMf9iulcwJ0SgQKM9s2jwwLgR60Aa2ygn2RFq05o6e44fYQdkWcC2 cbFSMnQOvWbJQoC3UhgOF7hgeO3T4qtlhhtNCaSugN9vUi2L8Bc1TXcHJqWmXh9qciC/ TGq1zggoto5lHonOGnBbr5Ck4cYtpCm2JSUrlXxsG27cDnScSQihO70grv/AZP/SQDNu O7vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=bnETdtHTvS8kEdOMSQFoCBypotU7wyomgZJ3Qx+gYwc=; b=g+EcIaVXNCfc79NITI1XJovDsBZo66tmT/p4Rv/cxteMzzTfTy4RoQ72u8zkqXNpiv CqDZWKlL/nDmEB15lB/WNCgQufboKY51GMv9ORrM4JbKpb64y7ySJ9vSCpmupX+FEpPi 4duPaBc3/26NYAdw2dFW3i4Mh6UYQLOdRyjVsQ+CZ+Y+eqYwbUH2xGdTvwJxYNi4ehMj 1bzesqekA9GBR7RND7h72mkDMjZfPMBIAxegTYgUJtUhOt8Xf3w2oZr0pXZSlVwWzv2R V/pPCuF9lcv9YRDXIUsVl4fYn7sl3A00o4qewRA6imudm5GDzhHmVtkVCJEWGd60Gx6U PWnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m7si5808730pgv.138.2022.02.16.01.52.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 01:52:55 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E548AE093; Wed, 16 Feb 2022 01:52:42 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232603AbiBPJwj (ORCPT + 99 others); Wed, 16 Feb 2022 04:52:39 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:51992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232577AbiBPJwc (ORCPT ); Wed, 16 Feb 2022 04:52:32 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 202E4205FD for ; Wed, 16 Feb 2022 01:52:13 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A42BE113E; Wed, 16 Feb 2022 01:52:07 -0800 (PST) Received: from p8cg001049571a15.arm.com (unknown [10.163.47.182]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id BEA4E3F718; Wed, 16 Feb 2022 01:52:04 -0800 (PST) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org Cc: Anshuman Khandual , Mathieu Poirier , Suzuki K Poulose , Mike Leach , Leo Yan , coresight@lists.linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH] coresight: Drop unused 'none' enum value for each component Date: Wed, 16 Feb 2022 15:21:58 +0530 Message-Id: <1645005118-10561-1-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CORESIGHT_DEV_TYPE_NONE/CORESIGHT_DEV_SUBTYPE_XXXX_NONE values are not used any where. Actual enumeration can start from 0. Just drop these unused enum values. Cc: Mathieu Poirier Cc: Suzuki K Poulose Cc: Mike Leach Cc: Leo Yan Cc: coresight@lists.linaro.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual --- drivers/hwtracing/coresight/coresight-core.c | 3 --- include/linux/coresight.h | 5 ----- 2 files changed, 8 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-core.c b/drivers/hwtracing/coresight/coresight-core.c index 88653d1c06a4..af00dca8d1ac 100644 --- a/drivers/hwtracing/coresight/coresight-core.c +++ b/drivers/hwtracing/coresight/coresight-core.c @@ -1278,9 +1278,6 @@ static struct attribute *coresight_source_attrs[] = { ATTRIBUTE_GROUPS(coresight_source); static struct device_type coresight_dev_type[] = { - { - .name = "none", - }, { .name = "sink", .groups = coresight_sink_groups, diff --git a/include/linux/coresight.h b/include/linux/coresight.h index 93a2922b7653..9f445f09fcfe 100644 --- a/include/linux/coresight.h +++ b/include/linux/coresight.h @@ -36,7 +36,6 @@ extern struct bus_type coresight_bustype; enum coresight_dev_type { - CORESIGHT_DEV_TYPE_NONE, CORESIGHT_DEV_TYPE_SINK, CORESIGHT_DEV_TYPE_LINK, CORESIGHT_DEV_TYPE_LINKSINK, @@ -46,7 +45,6 @@ enum coresight_dev_type { }; enum coresight_dev_subtype_sink { - CORESIGHT_DEV_SUBTYPE_SINK_NONE, CORESIGHT_DEV_SUBTYPE_SINK_PORT, CORESIGHT_DEV_SUBTYPE_SINK_BUFFER, CORESIGHT_DEV_SUBTYPE_SINK_SYSMEM, @@ -54,21 +52,18 @@ enum coresight_dev_subtype_sink { }; enum coresight_dev_subtype_link { - CORESIGHT_DEV_SUBTYPE_LINK_NONE, CORESIGHT_DEV_SUBTYPE_LINK_MERG, CORESIGHT_DEV_SUBTYPE_LINK_SPLIT, CORESIGHT_DEV_SUBTYPE_LINK_FIFO, }; enum coresight_dev_subtype_source { - CORESIGHT_DEV_SUBTYPE_SOURCE_NONE, CORESIGHT_DEV_SUBTYPE_SOURCE_PROC, CORESIGHT_DEV_SUBTYPE_SOURCE_BUS, CORESIGHT_DEV_SUBTYPE_SOURCE_SOFTWARE, }; enum coresight_dev_subtype_helper { - CORESIGHT_DEV_SUBTYPE_HELPER_NONE, CORESIGHT_DEV_SUBTYPE_HELPER_CATU, }; -- 2.20.1