Re: [PATCH] drivers/isdn/hardware/eicon/platform.h: rename prototype parameter from 'register' to 'reg'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx> 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@xxxxxxxxxxxx>
> ---
>  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
>
>
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux