Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2998819pxm; Mon, 28 Feb 2022 10:01:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyocbQ+XR+7T2FyOvfsVnpXBVYMdeES3ns8gy3Vo5USUKJz+PzMF32CaaNMEJlvYvrCom3d X-Received: by 2002:a63:3708:0:b0:364:db19:1365 with SMTP id e8-20020a633708000000b00364db191365mr7994412pga.113.1646071304692; Mon, 28 Feb 2022 10:01:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646071304; cv=none; d=google.com; s=arc-20160816; b=wj4I/S83AZbkZrd1N5JEpLouOdiPd6ZwCTQGm8EvpEGAcjaVhUCOtnJOVqLNKinlHg kkG4Wl7DgKBz8GN4e5+XYtdlRJU4GN8aYBCfj7GavYXee1Z1b2QzxSRBVNuoqybizc+R aL6AjbLME5m8HfsU1HF7qQ1Tg5fVmvDpNCcg69OxV0Ne/pgpK618mwgjRQIR2u5d6a0n qYAGC/BQyAC/q7cSFzt4+RvkSZXYX/vGkwZcPxdjYtky9JZLpJi/ilxn1dZiVdmFzzJS p789f6AqMX9OpxWeOS/vCHE36xLRHQ+tSaIT7LpUdEE/RA4sk0WkHGJGkq2fbaZdWvww eL9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/PP18PnlVf/AcE9TCVp3WkPzAUoq9OmCtcVZO7RF9H0=; b=m4JZyyvL374RCwNi6PftRdDv5cZAXF3ituv4Va3VyR22UO1KLGtvvs2cEY58tS/b7C Z5poIGbb0YxN+KIKV3/4mokLgRrrjnMJE2Dpd8ryFLnjm4u1nBTa3ZFOuLniw5/usYMm pANydsd1v/o43AK8NvJKbiGL4fEnp0tivZf8g9QRHzNGF/yYTLq9AJO7cwQtyap9gwbo eqbuEfdYTtpX3VwMH0du3AuPqVOnfkgOghSRIzFEtlp5WwdFsZPlrBGDe0cpCtVWukEG keFg61a2L73t0G1M4NaL0Rte9gSl6CntuWlHWL7Ebdc+lr3RWz8kgASaJRoej+rlBS3Y 1lzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="gKIUb/Kn"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b12-20020a17090a7acc00b001b922f3acf1si92280pjl.32.2022.02.28.10.01.27; Mon, 28 Feb 2022 10:01:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="gKIUb/Kn"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S237855AbiB1Qyv (ORCPT + 99 others); Mon, 28 Feb 2022 11:54:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236654AbiB1Qyt (ORCPT ); Mon, 28 Feb 2022 11:54:49 -0500 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C48C27B28 for ; Mon, 28 Feb 2022 08:54:10 -0800 (PST) Received: by mail-pg1-x533.google.com with SMTP id 132so12063486pga.5 for ; Mon, 28 Feb 2022 08:54:10 -0800 (PST) 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=/PP18PnlVf/AcE9TCVp3WkPzAUoq9OmCtcVZO7RF9H0=; b=gKIUb/KnSbcay3ZyS25SnMcMCkia1zVN8fogNkDZhAJy/PZ4nFs1s7suvXkAwiLrgf zMdI+/Uq1FcmfvLktwbNajZiyi9blVd4xqrH72deaYtxQCgr0vIXB4w8JSpJ0pZTIV2u eYz3PEIKyCBVIfD1jZNHmLA5KmL3VAGBwlgVzQIUWQ3wc0unNGZc+4IlJ0s9ja3PBGjy QEAP81qnZf23+Je1wJ7KA/IjQxWbvjqjvrUb1FLbHE2baA7fjU/SMrNHw7VozR1idXC6 FpGRgMGeVXK5J6f4PjEe3oEQJIcAJj7i/1NtdvMywuxlJ/TtqAQ4rCM0Ow3PoF5K0/ux k+8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/PP18PnlVf/AcE9TCVp3WkPzAUoq9OmCtcVZO7RF9H0=; b=fAyIr4YB8BNGgsbjLtLTzXV0eeplIJMFSdPQrjA1oV31qAY/gkcd9hOOveoPhk2qp6 vNi6SyvmsrIHPxC/93mr4lCvAqDhnuCtATRfGqtcFeePGV8+YDLMPe0v+L4lXGr++iAv 6WyW/VzjzcKMTOHRf+yBu0isL9dIADVdE7mTKWWsz9A6YoHjUu4NuxCmo4JbSYVuOkvB QldhyzCxJnY1RAWvozrTQaT/27zKLeyogFnl3rdL0M7p9RWH0Owv6SGdOkTT3JxtslQd DOA8TSWOZSF1KpP9DgJIPfZ07TQMyVRe76GLRmOmL8dmMQ260aclcCyi3gOspafrXykm 1dgQ== X-Gm-Message-State: AOAM530BSbZHP0XMOf1z010LVsQ81sUxMrIq5fDuLxJWSKAQeeFN3/dT vQ8I5m6X4oAtRkQq7VIF3WN0UQ== X-Received: by 2002:a63:8c52:0:b0:378:907d:1c6d with SMTP id q18-20020a638c52000000b00378907d1c6dmr5604028pgn.477.1646067249560; Mon, 28 Feb 2022 08:54:09 -0800 (PST) Received: from p14s (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id l2-20020a056a0016c200b004e10af156adsm14601792pfc.190.2022.02.28.08.54.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 08:54:08 -0800 (PST) Date: Mon, 28 Feb 2022 09:54:06 -0700 From: Mathieu Poirier To: Anshuman Khandual Cc: linux-arm-kernel@lists.infradead.org, Suzuki K Poulose , Mike Leach , Leo Yan , coresight@lists.linaro.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] coresight: Drop unused 'none' enum value for each component Message-ID: <20220228165406.GA1278407@p14s> References: <1645005118-10561-1-git-send-email-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1645005118-10561-1-git-send-email-anshuman.khandual@arm.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Good morning, On Wed, Feb 16, 2022 at 03:21:58PM +0530, Anshuman Khandual wrote: > 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, > }; These have never been used in the 7 years the subsystem has existed and I don't see in what kind of situation they could be... I have applied this patch. Thanks, Mathieu > > -- > 2.20.1 >