From nobody Wed Dec 17 10:17:49 2025 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 E654F26560D for ; Fri, 2 May 2025 07:21:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746170522; cv=none; b=WmLxvMX4UxexcQJ/oZmiOok7ag4rqckd3FYImIQQsLe8wVJRWUeLmunxkJHMdbDCXnBNuk4iKwEjuRDh0MmwV1yAZU2s+pBcCIa/3YaIbnJb7HzpdsxQyN7XnJStk5cqFb9plHeY0AKZ7ooMmG6lkdVhQMo8mTFnho2NaAwLrhI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746170522; c=relaxed/simple; bh=RZJdcAjyimd22DywD5wOE1m6XQEmJDAKxoD3ogG2pZs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=L2699AQEsmuyU02QQ7XYAoP6unK3u1I+GhYDT4ps0biZwMvXAVFm/Girgur3rst2auLnhaycUwXhbxchQHV5f/tycF+1z5yr556ZhqtmdIval3qkLls3d3JVVRmIZxJi2cUcdBbuNScDDNT2D58JAgkjk7YO1+jyiMlFy5miOwE= 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=kOCbnk8v; arc=none smtp.client-ip=209.85.218.41 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="kOCbnk8v" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-ac6ed4ab410so284876166b.1 for ; Fri, 02 May 2025 00:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746170518; x=1746775318; 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=IJ/nFA68bcSOcsO0RPS+enF9OOXSeic2MUkRaM0A0LA=; b=kOCbnk8v6bwWKn/uizgP1kHRIh2Hz7SRPyKfAqO5sBDqtsi3i1eQpY34QkPKUeselv XGOxczAUJ1dkBeXnTxpSMRLgI2PbqS5ZGJ+PURD4nhc8QMGToucWS4IxLP1N7VyF/2Gl 9SIuKAba+NxPGU/oynmw6tEp6Fg+iSvXZ9sVBUEYiPfv995W8dNhIYRYk/LZgSeKqVzi ZXhNsk6nN4nOJYI+zf5nj9MaVt5eHyzybyjFUWhrzej54Z62fNlVRIFNORrSfgB+qTab CrdiiU4jbgSUR9wbLqD1RRAiPMV3EsnfFWHbY69vYVRy2BkinEpAibkSMckMi7WybFAD lM5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746170518; x=1746775318; 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=IJ/nFA68bcSOcsO0RPS+enF9OOXSeic2MUkRaM0A0LA=; b=QVKNx5ggjSTzcpWtcnR/mxaigr3PQR8JAhL67X2yHN5VN7VM4M4gHMeyeRwjhPRN6C 3F7TMgzSXqaue2lS6YY19EQvFv2qypKU4UWV4unfu/bA2X9NHrdByHwUCwdGKmYw06vQ b6Mu7bCmyG9vI9x3Qyq/H9U/0iL5Cc5BEmcZuyQc0iL0vRy0pWcDA5OumksGDo5oSQ4d ie9Z786yasrugsC8PdpAEu+Yr61RJvpxfWffwLXpQMw727HzHK0h2wbu2PJbxgrI/czk uQxwA3T3eK8ux+j6GNI8t8WEgpP4//Pd6XdlfufpgLt7xWyT7rxi1AJn/XiT8iuHB4sL oBLg== X-Forwarded-Encrypted: i=1; AJvYcCW/24akR6IEQ4qRDdaB/OscCp83xqjvG4DVEPBj+gCdtt27+DNbBOvqnbuoYNCyOFNleS4jUYeMp2UPK1g=@vger.kernel.org X-Gm-Message-State: AOJu0YzQZZQ/PvP9Z9U1tCqeb70bPnXord1l6sw5351HeawZzqBlBmUf 98Tb3igndpyMCNwAJWd0JIf/+3Qjq4luitMGwz5wC3oVCMPepFFb X-Gm-Gg: ASbGncupOSuxggGjxAXUD51rIklyJnd2l8NXShcKO5nT/0a6BjYNM2az5C7YhUNrf4O onUa/l1qqJb1lUBUH21dY1eMhcXSntwgrJPN9jz25W+W//EnCmA8Ph3HTCi0NnKRDlu4RfSwQua xwJijK65pqFwp1jwJ5auWGViwDN+539iz618P/ZhMM3QO1upTMYJWHYupd239yxg+xxsY+5rqYn 1Y7ej1qnWnIXwgGwAnKvPXEi6zXOSj8gJYJh3Z16IN9xnxXfttnY4SS2haazjVmnG1BBn3OtsaB vpNgQPh2R6DPj+lI6Seg+FeL4mYv1KBFVe7gmj3z/u+81jVeoh8= X-Google-Smtp-Source: AGHT+IE6pLPp7pWg248OKsKwtD7ZbDGEVyJ3oZLyRrEg09KSZAqPuFKSx5M0FQFt9aS02HJFv9kscw== X-Received: by 2002:a17:906:6a2a:b0:ace:cb59:6c47 with SMTP id a640c23a62f3a-ad17ad88ddfmr202137566b.25.1746170518052; Fri, 02 May 2025 00:21:58 -0700 (PDT) Received: from localhost.localdomain ([178.25.124.12]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ad1891f3c6bsm5691966b.82.2025.05.02.00.21.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 May 2025 00:21:57 -0700 (PDT) From: Dave Penkler To: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: dan.carpenter@linaro.org, Dave Penkler Subject: [PATCH 2/3 V2] staging: gpib: Declare driver entry points static Date: Fri, 2 May 2025 09:21:49 +0200 Message-ID: <20250502072150.32714-3-dpenkler@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250502072150.32714-1-dpenkler@gmail.com> References: <20250502072150.32714-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" Many of this driver's entry points were unecessarily not declared static. Remove the declarations from the include file. Make the declarations static in the .c file. Remove an uneccessary forward declaration in the .c file. Signed-off-by: Dave Penkler --- drivers/staging/gpib/ines/ines.h | 44 ------------- drivers/staging/gpib/ines/ines_gpib.c | 92 ++++++++++++++------------- 2 files changed, 47 insertions(+), 89 deletions(-) diff --git a/drivers/staging/gpib/ines/ines.h b/drivers/staging/gpib/ines/i= nes.h index 07b82f790c4b..f0210ce2470d 100644 --- a/drivers/staging/gpib/ines/ines.h +++ b/drivers/staging/gpib/ines/ines.h @@ -35,45 +35,6 @@ struct ines_priv { u8 extend_mode_bits; }; =20 -// interface functions -int ines_read(struct gpib_board *board, u8 *buffer, size_t length, - int *end, size_t *bytes_read); -int ines_write(struct gpib_board *board, u8 *buffer, size_t length, - int send_eoi, size_t *bytes_written); -int ines_accel_read(struct gpib_board *board, u8 *buffer, size_t length, - int *end, size_t *bytes_read); -int ines_accel_write(struct gpib_board *board, u8 *buffer, size_t length, - int send_eoi, size_t *bytes_written); -int ines_command(struct gpib_board *board, u8 *buffer, size_t length, size= _t *bytes_written); -int ines_take_control(struct gpib_board *board, int synchronous); -int ines_go_to_standby(struct gpib_board *board); -int ines_request_system_control(struct gpib_board *board, int request_cont= rol); -void ines_interface_clear(struct gpib_board *board, int assert); -void ines_remote_enable(struct gpib_board *board, int enable); -int ines_enable_eos(struct gpib_board *board, u8 eos_byte, int compare_8_b= its); -void ines_disable_eos(struct gpib_board *board); -unsigned int ines_update_status(struct gpib_board *board, unsigned int cle= ar_mask); -int ines_primary_address(struct gpib_board *board, unsigned int address); -int ines_secondary_address(struct gpib_board *board, unsigned int address,= int enable); -int ines_parallel_poll(struct gpib_board *board, u8 *result); -void ines_parallel_poll_configure(struct gpib_board *board, u8 config); -void ines_parallel_poll_response(struct gpib_board *board, int ist); -void ines_serial_poll_response(struct gpib_board *board, u8 status); -u8 ines_serial_poll_status(struct gpib_board *board); -int ines_line_status(const struct gpib_board *board); -int ines_t1_delay(struct gpib_board *board, unsigned int nano_sec); -void ines_return_to_local(struct gpib_board *board); - -// interrupt service routines -irqreturn_t ines_pci_interrupt(int irq, void *arg); -irqreturn_t ines_interrupt(struct gpib_board *board); - -// utility functions -void ines_free_private(struct gpib_board *board); -int ines_generic_attach(struct gpib_board *board); -void ines_online(struct ines_priv *priv, const struct gpib_board *board, i= nt use_accel); -void ines_set_xfer_counter(struct ines_priv *priv, unsigned int count); - /* inb/outb wrappers */ static inline unsigned int ines_inb(struct ines_priv *priv, unsigned int r= egister_number) { @@ -88,11 +49,6 @@ static inline void ines_outb(struct ines_priv *priv, uns= igned int value, register_number * priv->nec7210_priv.offset); } =20 -// pcmcia init/cleanup - -int ines_pcmcia_init_module(void); -void ines_pcmcia_cleanup_module(void); - enum ines_regs { // read FIFO_STATUS =3D 0x8, diff --git a/drivers/staging/gpib/ines/ines_gpib.c b/drivers/staging/gpib/i= nes/ines_gpib.c index 5168811ee850..a16219c0f7c8 100644 --- a/drivers/staging/gpib/ines/ines_gpib.c +++ b/drivers/staging/gpib/ines/ines_gpib.c @@ -25,7 +25,9 @@ MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("GPIB driver for Ines iGPIB 72010"); =20 -int ines_line_status(const struct gpib_board *board) +static irqreturn_t ines_interrupt(struct gpib_board *board); + +static int ines_line_status(const struct gpib_board *board) { int status =3D VALID_ALL; int bcm_bits; @@ -55,7 +57,7 @@ int ines_line_status(const struct gpib_board *board) return status; } =20 -void ines_set_xfer_counter(struct ines_priv *priv, unsigned int count) +static void ines_set_xfer_counter(struct ines_priv *priv, unsigned int cou= nt) { if (count > 0xffff) { pr_err("bug! tried to set xfer counter > 0xffff\n"); @@ -65,7 +67,7 @@ void ines_set_xfer_counter(struct ines_priv *priv, unsign= ed int count) ines_outb(priv, count & 0xff, XFER_COUNT_LOWER); } =20 -int ines_t1_delay(struct gpib_board *board, unsigned int nano_sec) +static int ines_t1_delay(struct gpib_board *board, unsigned int nano_sec) { struct ines_priv *ines_priv =3D board->private_data; struct nec7210_priv *nec_priv =3D &ines_priv->nec7210_priv; @@ -133,8 +135,8 @@ static ssize_t pio_read(struct gpib_board *board, struc= t ines_priv *ines_priv, u return retval; } =20 -int ines_accel_read(struct gpib_board *board, u8 *buffer, - size_t length, int *end, size_t *bytes_read) +static int ines_accel_read(struct gpib_board *board, u8 *buffer, + size_t length, int *end, size_t *bytes_read) { ssize_t retval =3D 0; struct ines_priv *ines_priv =3D board->private_data; @@ -213,8 +215,8 @@ static int ines_write_wait(struct gpib_board *board, st= ruct ines_priv *ines_priv return 0; } =20 -int ines_accel_write(struct gpib_board *board, u8 *buffer, size_t length, - int send_eoi, size_t *bytes_written) +static int ines_accel_write(struct gpib_board *board, u8 *buffer, size_t l= ength, + int send_eoi, size_t *bytes_written) { size_t count =3D 0; ssize_t retval =3D 0; @@ -264,7 +266,7 @@ int ines_accel_write(struct gpib_board *board, u8 *buff= er, size_t length, return retval; } =20 -irqreturn_t ines_pci_interrupt(int irq, void *arg) +static irqreturn_t ines_pci_interrupt(int irq, void *arg) { struct gpib_board *board =3D arg; struct ines_priv *priv =3D board->private_data; @@ -281,7 +283,7 @@ irqreturn_t ines_pci_interrupt(int irq, void *arg) return ines_interrupt(board); } =20 -irqreturn_t ines_interrupt(struct gpib_board *board) +static irqreturn_t ines_interrupt(struct gpib_board *board) { struct ines_priv *priv =3D board->private_data; struct nec7210_priv *nec_priv =3D &priv->nec7210_priv; @@ -393,8 +395,8 @@ static struct ines_pci_id pci_ids[] =3D { static const int num_pci_chips =3D ARRAY_SIZE(pci_ids); =20 // wrappers for interface functions -int ines_read(struct gpib_board *board, u8 *buffer, size_t length, - int *end, size_t *bytes_read) +static int ines_read(struct gpib_board *board, u8 *buffer, size_t length, + int *end, size_t *bytes_read) { struct ines_priv *priv =3D board->private_data; struct nec7210_priv *nec_priv =3D &priv->nec7210_priv; @@ -412,127 +414,127 @@ int ines_read(struct gpib_board *board, u8 *buffer,= size_t length, return retval; } =20 -int ines_write(struct gpib_board *board, u8 *buffer, size_t length, int se= nd_eoi, - size_t *bytes_written) +static int ines_write(struct gpib_board *board, u8 *buffer, size_t length,= int send_eoi, + size_t *bytes_written) { struct ines_priv *priv =3D board->private_data; =20 return nec7210_write(board, &priv->nec7210_priv, buffer, length, send_eoi= , bytes_written); } =20 -int ines_command(struct gpib_board *board, u8 *buffer, size_t length, size= _t *bytes_written) +static int ines_command(struct gpib_board *board, u8 *buffer, size_t lengt= h, size_t *bytes_written) { struct ines_priv *priv =3D board->private_data; =20 return nec7210_command(board, &priv->nec7210_priv, buffer, length, bytes_= written); } =20 -int ines_take_control(struct gpib_board *board, int synchronous) +static int ines_take_control(struct gpib_board *board, int synchronous) { struct ines_priv *priv =3D board->private_data; =20 return nec7210_take_control(board, &priv->nec7210_priv, synchronous); } =20 -int ines_go_to_standby(struct gpib_board *board) +static int ines_go_to_standby(struct gpib_board *board) { struct ines_priv *priv =3D board->private_data; =20 return nec7210_go_to_standby(board, &priv->nec7210_priv); } =20 -int ines_request_system_control(struct gpib_board *board, int request_cont= rol) +static int ines_request_system_control(struct gpib_board *board, int reque= st_control) { struct ines_priv *priv =3D board->private_data; =20 return nec7210_request_system_control(board, &priv->nec7210_priv, request= _control); } =20 -void ines_interface_clear(struct gpib_board *board, int assert) +static void ines_interface_clear(struct gpib_board *board, int assert) { struct ines_priv *priv =3D board->private_data; =20 nec7210_interface_clear(board, &priv->nec7210_priv, assert); } =20 -void ines_remote_enable(struct gpib_board *board, int enable) +static void ines_remote_enable(struct gpib_board *board, int enable) { struct ines_priv *priv =3D board->private_data; =20 nec7210_remote_enable(board, &priv->nec7210_priv, enable); } =20 -int ines_enable_eos(struct gpib_board *board, u8 eos_byte, int compare_8_b= its) +static int ines_enable_eos(struct gpib_board *board, u8 eos_byte, int comp= are_8_bits) { struct ines_priv *priv =3D board->private_data; =20 return nec7210_enable_eos(board, &priv->nec7210_priv, eos_byte, compare_8= _bits); } =20 -void ines_disable_eos(struct gpib_board *board) +static void ines_disable_eos(struct gpib_board *board) { struct ines_priv *priv =3D board->private_data; =20 nec7210_disable_eos(board, &priv->nec7210_priv); } =20 -unsigned int ines_update_status(struct gpib_board *board, unsigned int cle= ar_mask) +static unsigned int ines_update_status(struct gpib_board *board, unsigned = int clear_mask) { struct ines_priv *priv =3D board->private_data; =20 return nec7210_update_status(board, &priv->nec7210_priv, clear_mask); } =20 -int ines_primary_address(struct gpib_board *board, unsigned int address) +static int ines_primary_address(struct gpib_board *board, unsigned int add= ress) { struct ines_priv *priv =3D board->private_data; =20 return nec7210_primary_address(board, &priv->nec7210_priv, address); } =20 -int ines_secondary_address(struct gpib_board *board, unsigned int address,= int enable) +static int ines_secondary_address(struct gpib_board *board, unsigned int a= ddress, int enable) { struct ines_priv *priv =3D board->private_data; =20 return nec7210_secondary_address(board, &priv->nec7210_priv, address, ena= ble); } =20 -int ines_parallel_poll(struct gpib_board *board, u8 *result) +static int ines_parallel_poll(struct gpib_board *board, u8 *result) { struct ines_priv *priv =3D board->private_data; =20 return nec7210_parallel_poll(board, &priv->nec7210_priv, result); } =20 -void ines_parallel_poll_configure(struct gpib_board *board, u8 config) +static void ines_parallel_poll_configure(struct gpib_board *board, u8 conf= ig) { struct ines_priv *priv =3D board->private_data; =20 nec7210_parallel_poll_configure(board, &priv->nec7210_priv, config); } =20 -void ines_parallel_poll_response(struct gpib_board *board, int ist) +static void ines_parallel_poll_response(struct gpib_board *board, int ist) { struct ines_priv *priv =3D board->private_data; =20 nec7210_parallel_poll_response(board, &priv->nec7210_priv, ist); } =20 -void ines_serial_poll_response(struct gpib_board *board, u8 status) +static void ines_serial_poll_response(struct gpib_board *board, u8 status) { struct ines_priv *priv =3D board->private_data; =20 nec7210_serial_poll_response(board, &priv->nec7210_priv, status); } =20 -u8 ines_serial_poll_status(struct gpib_board *board) +static u8 ines_serial_poll_status(struct gpib_board *board) { struct ines_priv *priv =3D board->private_data; =20 return nec7210_serial_poll_status(board, &priv->nec7210_priv); } =20 -void ines_return_to_local(struct gpib_board *board) +static void ines_return_to_local(struct gpib_board *board) { struct ines_priv *priv =3D board->private_data; =20 @@ -664,13 +666,13 @@ static int ines_allocate_private(struct gpib_board *b= oard) return 0; } =20 -void ines_free_private(struct gpib_board *board) +static void ines_free_private(struct gpib_board *board) { kfree(board->private_data); board->private_data =3D NULL; } =20 -int ines_generic_attach(struct gpib_board *board) +static int ines_generic_attach(struct gpib_board *board) { struct ines_priv *ines_priv; struct nec7210_priv *nec_priv; @@ -690,7 +692,7 @@ int ines_generic_attach(struct gpib_board *board) return 0; } =20 -void ines_online(struct ines_priv *ines_priv, const struct gpib_board *boa= rd, int use_accel) +static void ines_online(struct ines_priv *ines_priv, const struct gpib_boa= rd *board, int use_accel) { struct nec7210_priv *nec_priv =3D &ines_priv->nec7210_priv; =20 @@ -852,7 +854,7 @@ static int ines_common_pci_attach(struct gpib_board *bo= ard, const struct gpib_bo return 0; } =20 -int ines_pci_attach(struct gpib_board *board, const struct gpib_board_conf= ig *config) +static int ines_pci_attach(struct gpib_board *board, const struct gpib_boa= rd_config *config) { struct ines_priv *ines_priv; int retval; @@ -867,7 +869,7 @@ int ines_pci_attach(struct gpib_board *board, const str= uct gpib_board_config *co return 0; } =20 -int ines_pci_accel_attach(struct gpib_board *board, const struct gpib_boar= d_config *config) +static int ines_pci_accel_attach(struct gpib_board *board, const struct gp= ib_board_config *config) { struct ines_priv *ines_priv; int retval; @@ -884,7 +886,7 @@ int ines_pci_accel_attach(struct gpib_board *board, con= st struct gpib_board_conf =20 static const int ines_isa_iosize =3D 0x20; =20 -int ines_isa_attach(struct gpib_board *board, const struct gpib_board_conf= ig *config) +static int ines_isa_attach(struct gpib_board *board, const struct gpib_boa= rd_config *config) { struct ines_priv *ines_priv; struct nec7210_priv *nec_priv; @@ -915,7 +917,7 @@ int ines_isa_attach(struct gpib_board *board, const str= uct gpib_board_config *co return 0; } =20 -void ines_pci_detach(struct gpib_board *board) +static void ines_pci_detach(struct gpib_board *board) { struct ines_priv *ines_priv =3D board->private_data; struct nec7210_priv *nec_priv; @@ -949,7 +951,7 @@ void ines_pci_detach(struct gpib_board *board) ines_free_private(board); } =20 -void ines_isa_detach(struct gpib_board *board) +static void ines_isa_detach(struct gpib_board *board) { struct ines_priv *ines_priv =3D board->private_data; struct nec7210_priv *nec_priv; @@ -1005,7 +1007,6 @@ static int ines_pcmcia_attach(struct gpib_board *boar= d, const struct gpib_board_ static int ines_pcmcia_accel_attach(struct gpib_board *board, const struct gpib_board_config *config); static void ines_pcmcia_detach(struct gpib_board *board); -static irqreturn_t ines_pcmcia_interrupt(int irq, void *arg); static int ines_common_pcmcia_attach(struct gpib_board *board); /* * A linked list of "instances" of the gpib device. Each actual @@ -1213,7 +1214,7 @@ static struct pcmcia_driver ines_gpib_cs_driver =3D { .resume =3D ines_gpib_resume, }; =20 -void ines_pcmcia_cleanup_module(void) +static void ines_pcmcia_cleanup_module(void) { pcmcia_unregister_driver(&ines_gpib_cs_driver); } @@ -1302,14 +1303,14 @@ static struct gpib_interface ines_pcmcia_interface = =3D { .return_to_local =3D ines_return_to_local, }; =20 -irqreturn_t ines_pcmcia_interrupt(int irq, void *arg) +static irqreturn_t ines_pcmcia_interrupt(int irq, void *arg) { struct gpib_board *board =3D arg; =20 return ines_interrupt(board); } =20 -int ines_common_pcmcia_attach(struct gpib_board *board) +static int ines_common_pcmcia_attach(struct gpib_board *board) { struct ines_priv *ines_priv; struct nec7210_priv *nec_priv; @@ -1348,7 +1349,7 @@ int ines_common_pcmcia_attach(struct gpib_board *boar= d) return 0; } =20 -int ines_pcmcia_attach(struct gpib_board *board, const struct gpib_board_c= onfig *config) +static int ines_pcmcia_attach(struct gpib_board *board, const struct gpib_= board_config *config) { struct ines_priv *ines_priv; int retval; @@ -1363,7 +1364,8 @@ int ines_pcmcia_attach(struct gpib_board *board, cons= t struct gpib_board_config return 0; } =20 -int ines_pcmcia_accel_attach(struct gpib_board *board, const struct gpib_b= oard_config *config) +static int ines_pcmcia_accel_attach(struct gpib_board *board, + const struct gpib_board_config *config) { struct ines_priv *ines_priv; int retval; @@ -1378,7 +1380,7 @@ int ines_pcmcia_accel_attach(struct gpib_board *board= , const struct gpib_board_c return 0; } =20 -void ines_pcmcia_detach(struct gpib_board *board) +static void ines_pcmcia_detach(struct gpib_board *board) { struct ines_priv *ines_priv =3D board->private_data; struct nec7210_priv *nec_priv; --=20 2.49.0