Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp160992pxb; Wed, 14 Apr 2021 11:55:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyY3x9sahVb56fX4J5g42bBYcqX3aevGjh/YDv1TaQjmTu/tbYFt3HShTXJUq5tYl85F18Q X-Received: by 2002:a17:906:b251:: with SMTP id ce17mr290754ejb.333.1618426522742; Wed, 14 Apr 2021 11:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618426522; cv=none; d=google.com; s=arc-20160816; b=rRq36JIkBxiD33UvQMcFZU7JwQb0hscJNEPqIv6CLsN9JksLocPtlIdydGFoVDsXmb kw+VkJRY9kPmPcIWMYsP6YqrN7x1RVgy22ZVDyW8HRlQyGYRG7Q4Oi7dK1jUtmGVrtpK iCsAdKuXPpoj8oWj8gYPqIilhVAlVdRk/dxnQOBgNjQntPW8EZO+JlW/5PBEKRDS++iG O7SpX09Ch9neXORN7J1Mf+WeeRj4/mOFTmMzp3QmFebE3clrOxB2dOT/HZHJ1qWP/Zvd 2AG2+wiiLbxc3nX2upoNUUAK2I1lKYQesIxC0sI5VJJusTEBskss+2fVn3lT06krlFx1 zyrw== 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=hZzDceOlAVdHOjvMAeQ8rPjd2vg+GfcW0lq1IOxKVSc=; b=V0uwK11YRxs8A1o28Lk/7AGwk9Il3yTrV/deewskgSEw7GuClV0VmVUrSFEYBnFHbJ g+oknmVwxJC9cxPnpf8rMZI90CFlgD8opQh+jOiVsY9/jlEQzAKlX4QydSF+vRp77Us2 hm/Csm2TGfO0yn8yqGhGrfJPAtsNuJXBqQJj17NK3lD/B2Lbp9lFPvyCfOqEsKD80941 gRJfCdbvNk0oV1Ofj2cjvYwZmBtlKANGiEQWcd3JNXlmatH9UiRD8Asdge1gw4S5ZLFv wjaApyCH98pkBvgy4sglbFxGXq3uvXOI/L4rH8bY8KffYI9hv0Hl9iHugYNFQ2SZGJe7 zePg== 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 v8si317621eds.420.2021.04.14.11.54.59; Wed, 14 Apr 2021 11:55:22 -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 S1349200AbhDNGWB (ORCPT + 99 others); Wed, 14 Apr 2021 02:22:01 -0400 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:34361 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232405AbhDNGVv (ORCPT ); Wed, 14 Apr 2021 02:21:51 -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=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0UVWCFKV_1618381283; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVWCFKV_1618381283) by smtp.aliyun-inc.com(127.0.0.1); Wed, 14 Apr 2021 14:21:28 +0800 From: Jiapeng Chong To: kys@microsoft.com Cc: haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] Drivers: hv: vmbus: remove unused function Date: Wed, 14 Apr 2021 14:21:22 +0800 Message-Id: <1618381282-119135-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/hv/ring_buffer.c:89:1: warning: unused function 'hv_set_next_read_location' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/hv/ring_buffer.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/hv/ring_buffer.c b/drivers/hv/ring_buffer.c index 35833d4..78d4043 100644 --- a/drivers/hv/ring_buffer.c +++ b/drivers/hv/ring_buffer.c @@ -84,15 +84,6 @@ static void hv_signal_on_write(u32 old_write, struct vmbus_channel *channel) ring_info->ring_buffer->write_index = next_write_location; } -/* Set the next read location for the specified ring buffer. */ -static inline void -hv_set_next_read_location(struct hv_ring_buffer_info *ring_info, - u32 next_read_location) -{ - ring_info->ring_buffer->read_index = next_read_location; - ring_info->priv_read_index = next_read_location; -} - /* Get the size of the ring buffer. */ static inline u32 hv_get_ring_buffersize(const struct hv_ring_buffer_info *ring_info) -- 1.8.3.1