Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86C9A1EA7CC for ; Sat, 26 Jul 2025 03:59:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753502346; cv=none; b=GeTY1x5jndKc017rIJmGchCXBL8f9Y+FpI077uLLF8lKhNBLqDdR+1jCB6yIJjNePZymkHip+A8uFbvSSj41jdKHtNkur8/hQXcsIdxAYecz8xOtXGdG9n+MSIuWryUtSATzZx5nBKv4lhmYN00WskkFo+7XjL9x1cagO4S4D/4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753502346; c=relaxed/simple; bh=qqKVnjK01YRasod0PMObmX6QPbtrlv5+RuAdzLeQKsk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=bxJYkDBOWhbVQZZFpWU4MurszcBOLOUV1xnC86CMZ5OFdxL7L8w+Oc/2oq3nlY1yGWGVjzDNrAMuN8W3a9vdLyAZ1/pWodCwCBbiDYbp86RDFA7/6XYO0zXxIqcJym2RBh8StHFUCi6MfCxmSkU4bmIuD9NrDBJ3PTGGnLaFgbc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Scq66v5o; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Scq66v5o" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1753502343; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qyRsJQp+YpXb6YotSuFnlmCMtYyhM9zuxNQRSPHiXMk=; b=Scq66v5oYXd+fEAvYV7Oy3YJvnIxBvyjOBwNxCnsPNtr4mBwgg+6Q6b7udUpxcwainFYfj 35BqtGhJi/Dos0S2eVdurT4PNZ2+ugKPvHswEo66+L0UhSiZ58fkQtExf7+s8B7+J1MGxC sNdLlW1juYVAVrdkThQSFvM6vvhaMnQ= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-324--jNdbeOPNZCUX6ClILPQKg-1; Fri, 25 Jul 2025 23:58:59 -0400 X-MC-Unique: -jNdbeOPNZCUX6ClILPQKg-1 X-Mimecast-MFC-AGG-ID: -jNdbeOPNZCUX6ClILPQKg_1753502339 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id EDC13195FD2B; Sat, 26 Jul 2025 03:58:58 +0000 (UTC) Received: from bmarzins-01.fast.eng.rdu2.dc.redhat.com (unknown [10.6.23.247]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9662719560AA; Sat, 26 Jul 2025 03:58:58 +0000 (UTC) Received: from bmarzins-01.fast.eng.rdu2.dc.redhat.com (localhost [127.0.0.1]) by bmarzins-01.fast.eng.rdu2.dc.redhat.com (8.18.1/8.17.1) with ESMTPS id 56Q3wv4x363329 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 25 Jul 2025 23:58:57 -0400 Received: (from bmarzins@localhost) by bmarzins-01.fast.eng.rdu2.dc.redhat.com (8.18.1/8.18.1/Submit) id 56Q3wvSV363328; Fri, 25 Jul 2025 23:58:57 -0400 From: Benjamin Marzinski To: Christophe Varoqui Cc: device-mapper development , Martin Wilck Subject: [PATCH 04/14] libmpathpersist: clean up duplicate function declarations Date: Fri, 25 Jul 2025 23:58:45 -0400 Message-ID: <20250726035855.363290-5-bmarzins@redhat.com> In-Reply-To: <20250726035855.363290-1-bmarzins@redhat.com> References: <20250726035855.363290-1-bmarzins@redhat.com> Precedence: bulk X-Mailing-List: dm-devel@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: xMbaEd-atcRwDZLsrvHw0se_DUj7MbMzVq9pRX2GXKo_1753502339 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true Signed-off-by: Benjamin Marzinski --- libmpathpersist/mpath_persist_int.h | 1 - libmpathpersist/mpath_pr_ioctl.c | 10 +++------- mpathpersist/main.c | 2 -- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/libmpathpersist/mpath_persist_int.h b/libmpathpersist/mpath_persist_int.h index ed7b46f7..c09b2ba6 100644 --- a/libmpathpersist/mpath_persist_int.h +++ b/libmpathpersist/mpath_persist_int.h @@ -6,7 +6,6 @@ * but aren't part of the public libmpathpersist API. */ -void * mpath_alloc_prin_response(int prin_sa); int do_mpath_persistent_reserve_in(vector curmp, vector pathvec, int fd, int rq_servact, struct prin_resp *resp, int noisy); diff --git a/libmpathpersist/mpath_pr_ioctl.c b/libmpathpersist/mpath_pr_ioctl.c index 7e1d2896..dfdbbb65 100644 --- a/libmpathpersist/mpath_pr_ioctl.c +++ b/libmpathpersist/mpath_pr_ioctl.c @@ -14,19 +14,15 @@ #include "mpath_pr_ioctl.h" #include "mpath_persist.h" #include "unaligned.h" - #include "debug.h" #include "structs.h" /* FILE_NAME_SIZE */ +#include "mpath_persist_int.h" #define TIMEOUT 2000 #define MAXRETRY 5 -int prin_do_scsi_ioctl(char * dev, int rq_servact, struct prin_resp *resp, int noisy); -int mpath_translate_response (char * dev, struct sg_io_hdr io_hdr, - SenseData_t *Sensedata); -void dumpHex(const char* str, int len, int no_ascii); -int prout_do_scsi_ioctl( char * dev, int rq_servact, int rq_scope, - unsigned int rq_type, struct prout_param_descriptor *paramp, int noisy); +int mpath_translate_response(char *dev, struct sg_io_hdr io_hdr, + SenseData_t *Sensedata); uint32_t format_transportids(struct prout_param_descriptor *paramp); void convert_be32_to_cpu(uint32_t *num); void convert_be16_to_cpu(uint16_t *num); diff --git a/mpathpersist/main.c b/mpathpersist/main.c index efb46b95..97fd5a43 100644 --- a/mpathpersist/main.c +++ b/mpathpersist/main.c @@ -38,8 +38,6 @@ void mpath_print_buf_readcap(struct prin_resp *pr_buff); void mpath_print_buf_readfullstat(struct prin_resp *pr_buff); void mpath_print_buf_readresv(struct prin_resp *pr_buff); void mpath_print_buf_readkeys(struct prin_resp *pr_buff); -void dumpHex(const char* str, int len, int no_ascii); -void * mpath_alloc_prin_response(int prin_sa); void mpath_print_transport_id(struct prin_fulldescr *fdesc); int construct_transportid(const char * inp, struct transportid transid[], int num_transportids); -- 2.48.1