Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2448894pxb; Tue, 13 Apr 2021 02:03:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOnVAXkz1MWXk0TOYJzuC/JqEaC0CJvxAUadVWJzunpqsblMvWohg9StNIgvOZqVa5UQAP X-Received: by 2002:a17:90a:fa84:: with SMTP id cu4mr3823030pjb.178.1618304595883; Tue, 13 Apr 2021 02:03:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618304595; cv=none; d=google.com; s=arc-20160816; b=ZxcbjFAESF5eElScy/tGgTk3jiggvbDgFYjuCS6yYk3G0+Wp1oIVqZB+iVFrGIWSHl L0oCFuA2M4bLG9A7ip+3/x2Bt4Pnm3FZmLPbzZ/Fi7J85F04a8QbGdA+jPwn0cum3KDq 5OxfZRYsnhtSX9yrv1oRKjOUf/aKfv7EIe2qTyzDSejC5fzVwp6iJA8wQFzrId0yMwvm qkFGty6yEGaU2Nt3OVpjcW2ORR2CW4TpI3qEg9PR8d2v1GzkVOvZHsf/pcsGc4UwoIOD dvUxtlDSVmFC3wuYhQ0FFuLrNlP4QyIylWy2aPpDn5vk1v+/g+8ZAht97oZRS4XqTEXt gcoQ== 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=08Zzh3LAjKR9WheuAXXDeK/6vJiE1YSLSdQDFB6/xA0=; b=Wx0Qp2L7qKOXw2e7dsYm4oBzWzLQ7/AiViaKXo9ibr/dINdqu1hu3STjs3i1UuOTat vlHvlXtsHmOBspHd5vJGJV38qDBgQfHvNJkAqKgDMe2MBD81J0SprdE1VhE/PX71pxKp P9T09H2twKu8TlNzgIQ4YLY7X854qy1OYcSBZBIXOPVSC3fEvBQ8tL5wD5c2bqxoRGK8 gAjC0usW9VHKin7rQoAVk9wmFBqLWNeOQxexlMRX5A9Us0MWTMUOS/antNxDj2kdUNYf voTz2DI5NZiEFpN/ynYyOO+nQvhegxECUpoSlWxi6+IdsNfITZ6TZSq6h/iW6QR6E48p PSaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o16si16791932pfd.101.2021.04.13.02.03.03; Tue, 13 Apr 2021 02:03:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242764AbhDMGhQ (ORCPT + 99 others); Tue, 13 Apr 2021 02:37:16 -0400 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:53886 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230350AbhDMGhQ (ORCPT ); Tue, 13 Apr 2021 02:37:16 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=alimailimapcm10staff010182156082;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0UVQQ.CO_1618295806; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVQQ.CO_1618295806) by smtp.aliyun-inc.com(127.0.0.1); Tue, 13 Apr 2021 14:36:54 +0800 From: Jiapeng Chong To: alexander.shishkin@linux.intel.com Cc: mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] stm class: remove useless function Date: Tue, 13 Apr 2021 14:36:43 +0800 Message-Id: <1618295803-19756-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following clang warning: drivers/hwtracing/stm/policy.c:60:21: warning: unused function 'stp_policy_node_name' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/hwtracing/stm/policy.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/hwtracing/stm/policy.c b/drivers/hwtracing/stm/policy.c index 603b4a99..42103c3 100644 --- a/drivers/hwtracing/stm/policy.c +++ b/drivers/hwtracing/stm/policy.c @@ -57,11 +57,6 @@ void stp_policy_node_get_ranges(struct stp_policy_node *policy_node, *cend = policy_node->last_channel; } -static inline char *stp_policy_node_name(struct stp_policy_node *policy_node) -{ - return policy_node->group.cg_item.ci_name ? : ""; -} - static inline struct stp_policy *to_stp_policy(struct config_item *item) { return item ? -- 1.8.3.1