Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp708717pxv; Wed, 14 Jul 2021 13:37:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxu6rt5Rz9ll3IAfSMFmO1q+ZhmolkpWZgzw9fmZ8tFeG524dlzcxWBBRjW+DUoE37ozc/0 X-Received: by 2002:a05:6402:298:: with SMTP id l24mr202771edv.125.1626295062809; Wed, 14 Jul 2021 13:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626295062; cv=none; d=google.com; s=arc-20160816; b=FaPt7a/2wVH1VhPWpZeYOAscMzgyZGiRh1ksKhBnF/4EMkOoNSNIFSjru3C+0kUjv/ sbQixoodvi5TvhCc/tV0qVFWLfII4o4vuLVVu4bYUZI7wsL7nt4Nez0vJxMtQ/DhSq5a jF0wyKmtLMpxVWG/JCNSxbVXytdxDOmMOAdj0v/aS1eIVlkIzB7hGmRIjSdPQy/uvrmr JuBjadhQBrjFbehaZIwvSTiHxcMIJzpGYM0G+Rk1QD3AVQdzTT9udhtivYW4nwDueJQV Zvysqt7WAF0tiu4b85F4lfEt2EckuUvFjmonBBeTS+W2+u/h7ZeS42aYgLO4/bxlle3y EOyQ== 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:to:from:dkim-signature :dkim-filter; bh=XhcON44UQDGT9gF4sP+JV1ze0ek45T8MNOR/TLFHRmg=; b=ENjVnAbyEZlgV9jhBOuaxnKVcNeo3nTYWt5RcSYUw/uE7g74TMbAu4ptPLe7qT1Mw0 G4tyLcwnsahmr/rbi0lAdol+JJqzBCcmJ42Iv5tUDdbbNChZTXJo1Pna0+oklGfqNA1o YkCLqAiO6FmZa7Rqxk/8kMPelX/hU5rGcRelUGVMi4tryGJ0qyqHCmKC+QtFX2G9Z9S9 /y3MziN6IVaMaiYRwQPSFX7+kKOpVq+cJGjcBX3nTsbiaUcfA3kxXh9XlBHlRihT1lU2 lnd9/JO/AXxePedC3qmCPSLUDA1qQCbT7xsMxpxQ9jAWG0PWbrABGSjOurHY8y8Gev+E 5kTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=LV5iaMaO; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n13si3669100edo.292.2021.07.14.13.37.20; Wed, 14 Jul 2021 13:37:42 -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; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=LV5iaMaO; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236032AbhGNUX6 (ORCPT + 99 others); Wed, 14 Jul 2021 16:23:58 -0400 Received: from linux.microsoft.com ([13.77.154.182]:44186 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230367AbhGNUX5 (ORCPT ); Wed, 14 Jul 2021 16:23:57 -0400 Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 9678020B800A; Wed, 14 Jul 2021 13:21:05 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 9678020B800A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1626294065; bh=XhcON44UQDGT9gF4sP+JV1ze0ek45T8MNOR/TLFHRmg=; h=From:To:Subject:Date:From; b=LV5iaMaOJsL6/OaUOovQqGhOBcioWphxMkZjwch+FG1kVkjysSxd4lxmOOimk1XbO wee9tbvmo8gL/QZ3R9L4z2BLvjhGUEJO/d8RjbiYRy2D/2aAIqRasm8oCyhEUqPHW/ VICHbUxV1Qu7PBVhpZKZ/7yJ7pxWZXnnetylZmak= From: Sonia Sharma To: "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , wei.liu@kernel.org, Dexuan Cui , devel@linuxdriverproject.org, linux-kernel@vger.kernel.org Subject: [PATCH] hyperv: Remove unused inline functions in hyperv.h Date: Wed, 14 Jul 2021 13:20:34 -0700 Message-Id: <1626294034-6061-1-git-send-email-sosha@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are some unused inline functions in hyperv.h file. Removing those unused functions. Signed-off-by: Sonia Sharma --- include/linux/hyperv.h | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index b3e2436..1f1f0f8 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h @@ -481,12 +481,6 @@ struct vmbus_channel_rescind_offer { u32 child_relid; } __packed; -static inline u32 -hv_ringbuffer_pending_size(const struct hv_ring_buffer_info *rbi) -{ - return rbi->ring_buffer->pending_send_sz; -} - /* * Request Offer -- no parameters, SynIC message contains the partition ID * Set Snoop -- no parameters, SynIC message contains the partition ID @@ -913,12 +907,6 @@ static inline bool is_hvsock_channel(const struct vmbus_channel *c) VMBUS_CHANNEL_TLNPI_PROVIDER_OFFER); } -static inline void set_channel_affinity_state(struct vmbus_channel *c, - enum hv_numa_policy policy) -{ - c->affinity_policy = policy; -} - static inline void set_channel_read_mode(struct vmbus_channel *c, enum hv_callback_mode mode) { @@ -941,16 +929,6 @@ static inline void set_channel_pending_send_size(struct vmbus_channel *c, c->outbound.ring_buffer->pending_send_sz = size; } -static inline void set_low_latency_mode(struct vmbus_channel *c) -{ - c->low_latency = true; -} - -static inline void clear_low_latency_mode(struct vmbus_channel *c) -{ - c->low_latency = false; -} - void vmbus_onmessage(void *context); int vmbus_request_offers(void); -- 1.8.3.1