From nobody Sun Dec 14 06:42:25 2025 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AADA820767A for ; Fri, 18 Apr 2025 09:31:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744968684; cv=none; b=PiMZJH1RvXiQoxVOvI0z57M8ET4VjPvVhiEHH1VXffZ9mfMjWqkBDOj1sACMu+Hsp0VuQJYEOQTeC33vLGrpdKys7vZDiCSF/HkEw+MhjYmYR/27TWEHKAhTSAFP2ERmutopJvvFAJoeZGg59LG79YeKM37eaw12/WMcaGDW6B0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744968684; c=relaxed/simple; bh=l+WljZ0LGkGY9pZ4SVmav7N6ZTsbRQhbYlws62pX6Jk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tLXmsSLcMLlcXBplvGw4gpjVd9jRI7TyeWisagstctKjx5lyCKQIl0w25BqiUTyjSZmimGbhiYZ4hE6kRK6iXUUus09p1EzwjCmYDYsIS4Z8npgS8uT+Q9pDW+/RorczZMzfFrJVBfcSq7MPIO9XJN4CjCcrbCEhhFSiEM/YW6g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bi+vMDoy; arc=none smtp.client-ip=209.85.221.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bi+vMDoy" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-3913d129c1aso1135158f8f.0 for ; Fri, 18 Apr 2025 02:31:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744968681; x=1745573481; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Px4/dWG/1BChOQoCLuKfo67Qup2FH4WwdOjfR/Zid4k=; b=bi+vMDoywj1FrJ2XuE71IVR/yqIapQFzFVx73ohDWt3oL6/Dj+EsiLiPBfIhHTGKhx zF4yU8VHLFNYAXdS5jcwyrEZAFamUfAivr/6aY2p+NnAJ4XELPsMl5WDB4nGQBImOcub YaiHNBgs9l3gOafTBqEEpkAScf61jot5i1OLv+vMWjihJkc/trQDzjdyZDjHOL9YAjOC ji/Q+Zxk3T+hGTvkn0abQXeMxcA5y/nYTtrZOKOIIOPpo63cduXY6QNCd7C56mYz6F5F AvlOUy8/raXZEn09qwUYPk9CIaKUaZqCWsTdy0evF8rKZ/Nkkj+TOTxNzSgPtPx7wdps HDrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744968681; x=1745573481; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Px4/dWG/1BChOQoCLuKfo67Qup2FH4WwdOjfR/Zid4k=; b=Iur9xtOKvboGQJLymAI4vMoQcV47pn869z/o0grltFaV8sbcH4V1qjRtzfTyaP8YgR VVe51qyZgBFxFd6WIKMBjqYddUMF6pffrFyh13XFMES2TJNx2xal+uMXVHcOnSr1cW3F wiARbJ749wxnW9EMEKDR1hShS0yoYam+PdStCdOaEsK+ecRd1X4JEBd1BPTfoAN5QLOS 8EWMwmUnYo7aR4n3swAN1Ek2LnHd9qjzvrS4MgvM68UGvYtu7mRSyjBqXchvK1cnyJW5 4gknr6AosAp7wsYcW2BMS1IbzW4EFdwwh9kzXjz231qM6S7d88BZXPmgp08gkVDJXBgT Cz1w== X-Forwarded-Encrypted: i=1; AJvYcCX3gd/F7NMPWAKnoNPrXEhUsogfW25aceoKAeGuhtwG4T2/iFdmywU4CB745gf/N+LB2H1dyefz/dIZKd8=@vger.kernel.org X-Gm-Message-State: AOJu0YxWNlRT4XG9EWCGbXXhTKBzKe/Co6KpAV2lqaj9DnUVRRPJ7xCg 8VbG9DDg8kG3TFhAZ2mG/3qflIumY8WFSZm3sV+J4L6nJ/MsNLXo X-Gm-Gg: ASbGncsBShZe9NJWQMAwpJRb2RdYQaCDlNeaSjmysJxoKpCq6fPWNjARQ2MwhZeVGQ5 T3tkTtmwTNYzEnjHCn5h0sDZtn1u3EX+MFPZAGdno5HguNRdHq8mKGou08fKRZ282N8/xQjHU/a cdp3hMqQq7iJQa1mUedc9VeVrl4KiRCPeiTNnQne9X5P+Dqq3HoVy7f7WbL3Dna62zYNBvEb4UK mLPWJKvREuB3vs1rM4BMFbYvfW7JTyWJeMaQEvnoK4i02hrX3QMjBi4KjLHLYNDMX6UDJl8Yxtv DDpBwiVTtMyvVpsXVcES3c2fgEI3lus15bGVpJ3EojeZ1zl1dqCGeG2JezO86emJmnDeytpjQvz VU9SN2Df2nHw= X-Google-Smtp-Source: AGHT+IGvT2L6R4gKC8SQZl2Q7Ui3G/sarkbp8axY6Tt74sRDgzk+GXwJP4+oDoqieWz49mouZJzTkQ== X-Received: by 2002:a05:6000:1448:b0:391:952:c74a with SMTP id ffacd0b85a97d-39ef8ba59b9mr2610225f8f.8.1744968680694; Fri, 18 Apr 2025 02:31:20 -0700 (PDT) Received: from localhost.localdomain (82-64-73-52.subs.proxad.net. [82.64.73.52]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4406d5a9df6sm15599595e9.1.2025.04.18.02.31.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Apr 2025 02:31:20 -0700 (PDT) From: Dave Penkler To: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Dave Penkler Subject: [PATCH 1/2] staging: gpib: Remove unused enums from common include file Date: Fri, 18 Apr 2025 11:31:10 +0200 Message-ID: <20250418093111.8820-2-dpenkler@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250418093111.8820-1-dpenkler@gmail.com> References: <20250418093111.8820-1-dpenkler@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The error code and timeout code enums are not used by any of the gpib kernel code. This patch removes them. Signed-off-by: Dave Penkler --- drivers/staging/gpib/uapi/gpib_user.h | 42 --------------------------- 1 file changed, 42 deletions(-) diff --git a/drivers/staging/gpib/uapi/gpib_user.h b/drivers/staging/gpib/u= api/gpib_user.h index 1cb6b6219e67..4ca3cc9e0cd7 100644 --- a/drivers/staging/gpib/uapi/gpib_user.h +++ b/drivers/staging/gpib/uapi/gpib_user.h @@ -53,48 +53,6 @@ enum ibsta_bits { EVENT | LOK | REM | CIC | ATN | TACS | LACS | DTAS | DCAS | SRQI, }; =20 -/* IBERR error codes */ -enum iberr_code { - EDVR =3D 0, /* system error */ - ECIC =3D 1, /* not CIC */ - ENOL =3D 2, /* no listeners */ - EADR =3D 3, /* CIC and not addressed before I/O */ - EARG =3D 4, /* bad argument to function call */ - ESAC =3D 5, /* not SAC */ - EABO =3D 6, /* I/O operation was aborted */ - ENEB =3D 7, /* non-existent board (GPIB interface offline) */ - EDMA =3D 8, /* DMA hardware error detected */ - EOIP =3D 10, /* new I/O attempted with old I/O in progress */ - ECAP =3D 11, /* no capability for intended opeation */ - EFSO =3D 12, /* file system operation error */ - EBUS =3D 14, /* bus error */ - ESTB =3D 15, /* lost serial poll bytes */ - ESRQ =3D 16, /* SRQ stuck on */ - ETAB =3D 20 /* Table Overflow */ -}; - -/* Timeout values and meanings */ -enum gpib_timeout { - TNONE =3D 0, /* Infinite timeout (disabled) */ - T10us =3D 1, /* Timeout of 10 usec (ideal) */ - T30us =3D 2, /* Timeout of 30 usec (ideal) */ - T100us =3D 3, /* Timeout of 100 usec (ideal) */ - T300us =3D 4, /* Timeout of 300 usec (ideal) */ - T1ms =3D 5, /* Timeout of 1 msec (ideal) */ - T3ms =3D 6, /* Timeout of 3 msec (ideal) */ - T10ms =3D 7, /* Timeout of 10 msec (ideal) */ - T30ms =3D 8, /* Timeout of 30 msec (ideal) */ - T100ms =3D 9, /* Timeout of 100 msec (ideal) */ - T300ms =3D 10, /* Timeout of 300 msec (ideal) */ - T1s =3D 11, /* Timeout of 1 sec (ideal) */ - T3s =3D 12, /* Timeout of 3 sec (ideal) */ - T10s =3D 13, /* Timeout of 10 sec (ideal) */ - T30s =3D 14, /* Timeout of 30 sec (ideal) */ - T100s =3D 15, /* Timeout of 100 sec (ideal) */ - T300s =3D 16, /* Timeout of 300 sec (ideal) */ - T1000s =3D 17 /* Timeout of 1000 sec (maximum) */ -}; - /* End-of-string (EOS) modes for use with ibeos */ =20 enum eos_flags { --=20 2.49.0 From nobody Sun Dec 14 06:42:25 2025 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 181D0270EAF for ; Fri, 18 Apr 2025 09:31:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744968687; cv=none; b=Ue/nfrxElrNcJxh96dwcHHtHXTq8mIV1BkK0MO6Ae90JdBSf8nLZxjd1IyJdFyeYy+l3W4EIHBj9pm9m0h/AI0OfdrGX0CSw4DekYBsL7dcJYFwlTx21WPWRK2M8EkduXk7LCioaLPbWshnbuBsKBbDi0JfpnhBu5+IGjYjcP34= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744968687; c=relaxed/simple; bh=bf1QPLQ982jUYGjff53G/vojBk6fxXpw9Om2goquwfI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=B49PbNpyQpgGgQser+tJv7MJfsgnhP9C+1waUsSoQsgC51iXMFlVgLKS+UMfBRf7wG4tPyIjsJLRaFVOoDA7ejqGbNln49P3RZ/+eNKhHp38KsAzCxDEfL6W5Bo9X+9v1nhN89PqPp35Fzz8hRMJeDHpoNX+A2Nh1rwbf61FUPM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=WAbk5uRG; arc=none smtp.client-ip=209.85.221.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WAbk5uRG" Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-39c266c2dd5so1826255f8f.3 for ; Fri, 18 Apr 2025 02:31:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744968684; x=1745573484; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ziEWnqr68bl6EYzUSY5rbxDyqDTwrndaf3K3nBdL2T8=; b=WAbk5uRGYT491nzJbvjONoPPwYdOxJNm4/LkED+0WHHg7rrzdJ3CJDAiLPOpUljC9R AMjZyVkDPe+SWVRX8SvEHtzeju3ilXHR3VR6DTV14LMoLjQRvEWy/5ZStPNjfAwmIvoy kT5LnD0jl2O+F6sZo5VqZlYUG8Q1uW0RVPaLaEa3XYqf5IdOrusHOQ6GCd8p4e7Ujlpj HHBfikQmTZ6HSf0goyefzKmKAeVj/Xw1LXh8+D12mVY9CnasSqWB9DKwoZCupvehuBGv CzcsqFXcs4qdn9tMKItDt2fLooTnJGJkzuplEHquOUlX0g4rAFlUcJeV7EB2yQhCTq/t Gnzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744968684; x=1745573484; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ziEWnqr68bl6EYzUSY5rbxDyqDTwrndaf3K3nBdL2T8=; b=hvqc1ydTJwHy/hYIVNXv6CkPA79pbnuQrshSZ3aEkd7kh+3CjxDqxOZ3dxYXyFwCie qnJJEaabprUEPb/7NwiMRaYq9WiWsuOy5XOzDg/waYdPQ1v6yciIS1qV9tF7j77pchIB rdZvL0zLZHdNFF+IdCl7T1PF4Xbnzv7meL53ZkxVt73unGiTQzhLDNUS0OxGtiyGi9fZ WGv3s/Z+r+DFSteDZcAC+OFWTXtb2TBrbdeS7YrAf5HV6XxAsA9Tr40IClc1WC8ct+dt 4g/1zTbqEqtkfN73cdYM/HkYcBjv1HwG86m/xbugZ1H+advBXeed55kndywmMdkHesz4 GkdQ== X-Forwarded-Encrypted: i=1; AJvYcCWNvaqtCMGNJcPQMpudvAGmgzQsu1gnFtsVu3K0ScvMy7wA2XEpg5dmMyLjTZUOJ4mCZLPICVCwo9heSyc=@vger.kernel.org X-Gm-Message-State: AOJu0YzVP5NI66FTPm2Mfij9K6vqU3Algl8LY8FCOXjMOMu1wtFPDZuS kxqd4NtbzuQ/6cUJBPHW1Jyk2SUgSre1rzWJc5TjDJDw9o0y5FuV X-Gm-Gg: ASbGncvXo5PIcuo+okDRQKH24kkYFUck/bevo9b5XHvGCncFmZBZOANAmC4dwC2BMDU Vl12oU7YS3HnMudHubDn5pupbBnOpc3GHaw9TzlFntyAeg71nhTwbRUwidK+FGGfWtk2u4hNjJn b6JfEW/ssYacbZ99hvCi0lZS/QjVtrqm0PCvMgAED+F4XUnPAtlfiDhbf0/xjTsxDP4z7sZMTit BEymkw2KlzzwIMMr135MNSItavmZXjlxO2CnbVAsReQb/KXqYGUHMdQQLcFo17MfSc6czUZ+9fd m/ELVg76AMvtR9vHLvtZesxKmi1Ft5tte9qki2b2fCADhzjMx58r2FEFX5NoLKdimyR0MajmvFC o X-Google-Smtp-Source: AGHT+IEkgWk/w496CaaXwuS7ubgZL54PSfX59h5yXTZtwL7fxskSCMm62/oqb2JCKljM/a15kDDOmQ== X-Received: by 2002:a5d:588b:0:b0:398:fd9b:b935 with SMTP id ffacd0b85a97d-39efbaf6f36mr1633392f8f.53.1744968684326; Fri, 18 Apr 2025 02:31:24 -0700 (PDT) Received: from localhost.localdomain (82-64-73-52.subs.proxad.net. [82.64.73.52]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4406d5a9df6sm15599595e9.1.2025.04.18.02.31.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Apr 2025 02:31:23 -0700 (PDT) From: Dave Penkler To: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Dave Penkler Subject: [PATCH 2/2] staging: gpib: Rename common include file Date: Fri, 18 Apr 2025 11:31:11 +0200 Message-ID: <20250418093111.8820-3-dpenkler@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250418093111.8820-1-dpenkler@gmail.com> References: <20250418093111.8820-1-dpenkler@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" User code includes gpib_user.h. Since this include has diverged from the original by - removing unused functions and defines - changing camel-case identifiers - removing typedefs we need to change the name of the kernel include. This include will be included in the userland gpib_user.h ensuring backward compatibility for application programmes. Rename the file and change the references to it. Signed-off-by: Dave Penkler --- drivers/staging/gpib/include/gpibP.h | 2 +- drivers/staging/gpib/include/gpib_types.h | 2 +- drivers/staging/gpib/uapi/{gpib_user.h =3D> gpib.h} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename drivers/staging/gpib/uapi/{gpib_user.h =3D> gpib.h} (100%) diff --git a/drivers/staging/gpib/include/gpibP.h b/drivers/staging/gpib/in= clude/gpibP.h index 6461b330a3c3..0af72934ce24 100644 --- a/drivers/staging/gpib/include/gpibP.h +++ b/drivers/staging/gpib/include/gpibP.h @@ -11,7 +11,7 @@ =20 #include "gpib_types.h" #include "gpib_proto.h" -#include "gpib_user.h" +#include "gpib.h" #include "gpib_ioctl.h" =20 #include diff --git a/drivers/staging/gpib/include/gpib_types.h b/drivers/staging/gp= ib/include/gpib_types.h index 9e0dfdb9904d..2af4574d400c 100644 --- a/drivers/staging/gpib/include/gpib_types.h +++ b/drivers/staging/gpib/include/gpib_types.h @@ -8,7 +8,7 @@ #define _GPIB_TYPES_H =20 #ifdef __KERNEL__ -#include "gpib_user.h" +#include "gpib.h" #include #include #include diff --git a/drivers/staging/gpib/uapi/gpib_user.h b/drivers/staging/gpib/u= api/gpib.h similarity index 100% rename from drivers/staging/gpib/uapi/gpib_user.h rename to drivers/staging/gpib/uapi/gpib.h --=20 2.49.0