All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers/isdn/hardware/eicon/platform.h: rename prototype parameter from 'register' to 'reg'
@ 2011-09-15  6:36 Chris Peterson
  2011-09-15  6:49 ` [PATCH] drivers/isdn/hardware/eicon/platform.h: rename prototype Chris Peterson
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Peterson @ 2011-09-15  6:36 UTC (permalink / raw)
  To: kernel-janitors

gcc -Wextra warns "‘register’ is not at beginning of declaration" because the
compiler thinks the parameter has been marked as a 'register' variable, but
the function prototype intended to name the parameter "register" (which is a
reserved keyword).

Signed-off-by: Chris Peterson <cpeterso@cpeterso.com>
---
 drivers/isdn/hardware/eicon/platform.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/isdn/hardware/eicon/platform.h b/drivers/isdn/hardware/eicon/platform.h
index 15d4942..c36fffe 100644
--- a/drivers/isdn/hardware/eicon/platform.h
+++ b/drivers/isdn/hardware/eicon/platform.h
@@ -206,7 +206,7 @@ void PCIread (byte bus, byte func, int offset, void* data, int length, void* pci
 /*
 **  I/O Port utilities
 */
-int diva_os_register_io_port (void *adapter, int register, unsigned long port,
+int diva_os_register_io_port (void *adapter, int on, unsigned long port,
 				unsigned long length, const char* name, int id);
 /*
 **  I/O port access abstraction
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drivers/isdn/hardware/eicon/platform.h: rename prototype
  2011-09-15  6:36 [PATCH] drivers/isdn/hardware/eicon/platform.h: rename prototype parameter from 'register' to 'reg' Chris Peterson
@ 2011-09-15  6:49 ` Chris Peterson
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Peterson @ 2011-09-15  6:49 UTC (permalink / raw)
  To: kernel-janitors

Sorry, my email's subject should read "rename prototype parameter from
'register' to 'on'" (not 'reg').

chris



On Wed, Sep 14, 2011 at 11:36 PM, Chris Peterson <cpeterso@cpeterso.com> wrote:
> gcc -Wextra warns "‘register’ is not at beginning of declaration" because the
> compiler thinks the parameter has been marked as a 'register' variable, but
> the function prototype intended to name the parameter "register" (which is a
> reserved keyword).
>
> Signed-off-by: Chris Peterson <cpeterso@cpeterso.com>
> ---
>  drivers/isdn/hardware/eicon/platform.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/isdn/hardware/eicon/platform.h b/drivers/isdn/hardware/eicon/platform.h
> index 15d4942..c36fffe 100644
> --- a/drivers/isdn/hardware/eicon/platform.h
> +++ b/drivers/isdn/hardware/eicon/platform.h
> @@ -206,7 +206,7 @@ void PCIread (byte bus, byte func, int offset, void* data, int length, void* pci
>  /*
>  **  I/O Port utilities
>  */
> -int diva_os_register_io_port (void *adapter, int register, unsigned long port,
> +int diva_os_register_io_port (void *adapter, int on, unsigned long port,
>                                unsigned long length, const char* name, int id);
>  /*
>  **  I/O port access abstraction
> --
> 1.7.4.1
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-15  6:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-15  6:36 [PATCH] drivers/isdn/hardware/eicon/platform.h: rename prototype parameter from 'register' to 'reg' Chris Peterson
2011-09-15  6:49 ` [PATCH] drivers/isdn/hardware/eicon/platform.h: rename prototype Chris Peterson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.