lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.LNX.2.00.1108161309300.23471@swampdragon.chaosbits.net>
Date:	Tue, 16 Aug 2011 13:11:03 +0200 (CEST)
From:	Jesper Juhl <jj@...osbits.net>
To:	Ravishankar <ravishankarkm32@...il.com>
cc:	gregkh@...e.de, wfp5p@...ginia.edu, devel@...verdev.osuosl.org,
	linux-kernel@...r.kernel.org, root <root@...alhost.localdomain>
Subject: Re: [PATCH 1/2] Staging: comedi: fix warning issue in cb_pcidda.c

On Tue, 16 Aug 2011, Ravishankar wrote:

> From: root <root@...alhost.localdomain>
> 

>From should be a real person.


> This is a patch to the cb_pcidda.c file that fixes up a line over 80 charcter warning found by the checkpatch.pl tool
> 
> Signed-off-by: Ravishankar <ravishankarkm32@...il.com>
> ---
>  drivers/staging/comedi/drivers/cb_pcidda.c |   15 ++++++++++-----
>  1 files changed, 10 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/staging/comedi/drivers/cb_pcidda.c b/drivers/staging/comedi/drivers/cb_pcidda.c
> index 9716f19..4882005 100644
> --- a/drivers/staging/comedi/drivers/cb_pcidda.c
> +++ b/drivers/staging/comedi/drivers/cb_pcidda.c
> @@ -51,9 +51,11 @@ Please report success/failure with other different cards to
>  #include "comedi_pci.h"
>  #include "8255.h"
>  
> -#define PCI_VENDOR_ID_CB	0x1307	/*  PCI vendor number of ComputerBoards */
> +/* PCI vendor number of ComputerBoards */
> +#define PCI_VENDOR_ID_CB        0x1307
>  #define EEPROM_SIZE	128	/*  number of entries in eeprom */
> -#define MAX_AO_CHANNELS 8	/*  maximum number of ao channels for supported boards */
> +/* maximum number of ao channels for supported boards */
> +#define MAX_AO_CHANNELS 8
>  

IMHO these comments are better placed where they were originally.


>  /* PCI-DDA base addresses */
>  #define DIGITALIO_BADRINDEX	2
> @@ -227,8 +229,10 @@ struct cb_pcidda_private {
>  	/* unsigned long control_status; */
>  	/* unsigned long adc_fifo; */
>  
> -	unsigned int dac_cal1_bits;	/*  bits last written to da calibration register 1 */
> -	unsigned int ao_range[MAX_AO_CHANNELS];	/*  current range settings for output channels */
> +	/* bits last written to da calibration register 1 */
> +	unsigned int dac_cal1_bits;
> +	/* current range settings for output channels */
> +	unsigned int ao_range[MAX_AO_CHANNELS];
>  	u16 eeprom_data[EEPROM_SIZE];	/*  software copy of board's eeprom */
>  };
>  
> @@ -378,7 +382,8 @@ found:
>  	printk(KERN_CONT " eeprom:");
>  	for (index = 0; index < EEPROM_SIZE; index++) {
>  		devpriv->eeprom_data[index] = cb_pcidda_read_eeprom(dev, index);
> -		printk(KERN_CONT " %i:0x%x ", index, devpriv->eeprom_data[index]);
> +		printk(KERN_CONT " %i:0x%x ", index,
> +				devpriv->eeprom_data[index]);
>  	}
>  	printk(KERN_CONT "\n");
>  
> 

-- 
Jesper Juhl <jj@...osbits.net>       http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ