LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] fix warnings that occur on make *docs
@ 2007-03-01 18:39 Thomas Davies
  2007-03-01 18:49 ` Randy Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Davies @ 2007-03-01 18:39 UTC (permalink / raw)
  To: kernel-janitors, linux-kernel

From: Thomas Davies <daviesth@onid.orst.edu>

Cleaned up comments and whitespace in /drivers/message/fusion/*.c and also
/lib/bitmap.c to remove make *docs warnings.  An attempt by a newbie
to contribute
in some small way to the codebase.  Did I do it right?

Signed-off-by: Thomas Davies <daviesth@onid.orst.edu>
---
diff -uprN -X linux-2.6/Documentation/dontdiff
linux-2.6/drivers/message/fusion/mptbase.c
linux-2.6-new/drivers/message/fusion/mptbase.c
--- linux-2.6/drivers/message/fusion/mptbase.c	2007-02-27
21:46:49.000000000 -0800
+++ linux-2.6-new/drivers/message/fusion/mptbase.c	2007-02-28
23:03:26.000000000 -0800
@@ -4743,7 +4743,7 @@ mpt_readScsiDevicePageHeaders(MPT_ADAPTE
  *
  * This clears this link list.
  *
- * @ioc - pointer to per adapter structure
+ * @ioc: pointer to per adapter structure
  *
  **/
 static void
@@ -4768,9 +4768,9 @@ mpt_inactive_raid_list_free(MPT_ADAPTER
  *
  * This sets up link list of phy_disk_nums for devices belonging in
an inactive volume
  *
- * @ioc - pointer to per adapter structure
- * @channel - volume channel
- * @id - volume target id
+ * @ioc: pointer to per adapter structure
+ * @channel: volume channel
+ * @id: volume target id
  *
  *
  **/
@@ -4782,7 +4782,7 @@ mpt_inactive_raid_volumes(MPT_ADAPTER *i
 	dma_addr_t			dma_handle;
 	pRaidVolumePage0_t		buffer = NULL;
 	int				i;
-	RaidPhysDiskPage0_t 		phys_disk;
+	RaidPhysDiskPage0_t		phys_disk;
 	struct inactive_raid_component_info *component_info;
 	int				handle_inactive_volumes;

@@ -6663,7 +6663,7 @@ union loginfo_type {
 /**
  *	mpt_iocstatus_info_config - IOCSTATUS information for config pages
  *	@ioc: Pointer to MPT_ADAPTER structure
- *	ioc_status: U32 IOCStatus word from IOC
+ *	@ioc_status: U32 IOCStatus word from IOC
  *	@mf: Pointer to MPT request frame
  *
  *	Refer to lsi/mpi.h.
diff -uprN -X linux-2.6/Documentation/dontdiff
linux-2.6/drivers/message/fusion/mptscsih.c
linux-2.6-new/drivers/message/fusion/mptscsih.c
--- linux-2.6/drivers/message/fusion/mptscsih.c	2007-02-27
21:46:49.000000000 -0800
+++ linux-2.6-new/drivers/message/fusion/mptscsih.c	2007-02-28
23:03:26.000000000 -0800
@@ -1540,11 +1540,13 @@ mptscsih_freeChainBuffers(MPT_ADAPTER *i
  *	Fall through to mpt_HardResetHandler if: not operational, too many
  *	failed TM requests or handshake failure.
  *
- *	@ioc: Pointer to MPT_ADAPTER structure
+ *	@hd: Pointer to MPT_SCSI_HOST structure
  *	@type: Task Management type
+ *	@channel: Logical bus number of the device
  *	@id: Logical Target ID for reset (if appropriate)
  *	@lun: Logical Unit for reset (if appropriate)
  *	@ctx2abort: Context for the task to be aborted (if appropriate)
+ *	@timeout: Time to wait in seconds before giving up
  *
  *	Remark: Currently invoked from a non-interrupt thread (_bh).
  *
@@ -1650,9 +1652,11 @@ mptscsih_TMHandler(MPT_SCSI_HOST *hd, u8
  *	mptscsih_IssueTaskMgmt - Generic send Task Management function.
  *	@hd: Pointer to MPT_SCSI_HOST structure
  *	@type: Task Management type
+ *	@channel: Logical bus number of the device
  *	@id: Logical Target ID for reset (if appropriate)
  *	@lun: Logical Unit for reset (if appropriate)
  *	@ctx2abort: Context for the task to be aborted (if appropriate)
+ *	@timeout: time to wait in seconds before giving up
  *
  *	Remark: _HardResetHandler can be invoked from an interrupt thread (timer)
  *	or a non-interrupt thread.  In the former, must not call schedule().
@@ -2022,6 +2026,7 @@ mptscsih_tm_pending_wait(MPT_SCSI_HOST *
 /**
  *	mptscsih_tm_wait_for_completion - wait for completion of TM task
  *	@hd: Pointer to MPT host structure.
+ *	@timeout: time to wait in seconds before giving up
  *
  *	Returns {SUCCESS,FAILED}.
  */
diff -uprN -X linux-2.6/Documentation/dontdiff
linux-2.6/drivers/message/fusion/mptspi.c
linux-2.6-new/drivers/message/fusion/mptspi.c
--- linux-2.6/drivers/message/fusion/mptspi.c	2007-02-27
21:46:49.000000000 -0800
+++ linux-2.6-new/drivers/message/fusion/mptspi.c	2007-02-28
23:03:26.000000000 -0800
@@ -101,7 +101,7 @@ static int	mptspiInternalCtx = -1; /* Us
  *	and NVRAM settings
  *
  *	@hd: Pointer to a SCSI Host Structure
- *	@vtarget: per target private data
+ *	@target: per target private data
  *	@sdev: SCSI device
  *
  **/
@@ -232,9 +232,9 @@ mptspi_setTargetNegoParms(MPT_SCSI_HOST
 }

 /**
- * 	mptspi_writeIOCPage4  - write IOC Page 4
+ *	mptspi_writeIOCPage4  - write IOC Page 4
  *	@hd: Pointer to a SCSI Host Structure
- *	@channel:
+ *	@channel: Logical bus number of the device
  *	@id: write IOC Page4 for this ID & Bus
  *
  *	Return: -EAGAIN if unable to obtain a Message Frame
@@ -243,7 +243,7 @@ mptspi_setTargetNegoParms(MPT_SCSI_HOST
  *	Remark: We do not wait for a return, write pages sequentially.
  **/
 static int
-mptspi_writeIOCPage4(MPT_SCSI_HOST *hd, u8 channel , u8 id)
+mptspi_writeIOCPage4(MPT_SCSI_HOST *hd, u8 channel, u8 id)
 {
 	MPT_ADAPTER		*ioc = hd->ioc;
 	Config_t		*pReq;
diff -uprN -X linux-2.6/Documentation/dontdiff linux-2.6/lib/bitmap.c
linux-2.6-new/lib/bitmap.c
--- linux-2.6/lib/bitmap.c	2007-02-28 23:15:13.000000000 -0800
+++ linux-2.6-new/lib/bitmap.c	2007-02-28 23:15:19.000000000 -0800
@@ -97,10 +97,10 @@ EXPORT_SYMBOL(__bitmap_complement);

 /**
  * __bitmap_shift_right - logical right shift of the bits in a bitmap
- *   @dst - destination bitmap
- *   @src - source bitmap
- *   @nbits - shift by this many bits
- *   @bits - bitmap size, in bits
+ *   @dst: destination bitmap
+ *   @src: source bitmap
+ *   @shift: shift by this many bits
+ *   @bits: bitmap size, in bits
  *
  * Shifting right (dividing) means moving bits in the MS -> LS bit
  * direction.  Zeros are fed into the vacated MS positions and the
@@ -141,10 +141,10 @@ EXPORT_SYMBOL(__bitmap_shift_right);

 /**
  * __bitmap_shift_left - logical left shift of the bits in a bitmap
- *   @dst - destination bitmap
- *   @src - source bitmap
- *   @nbits - shift by this many bits
- *   @bits - bitmap size, in bits
+ *   @dst: destination bitmap
+ *   @src: source bitmap
+ *   @shift: shift by this many bits
+ *   @bits: bitmap size, in bits
  *
  * Shifting left (multiplying) means moving bits in the LS -> MS
  * direction.  Zeros are fed into the vacated LS bit positions

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

* Re: [PATCH] fix warnings that occur on make *docs
  2007-03-01 18:39 [PATCH] fix warnings that occur on make *docs Thomas Davies
@ 2007-03-01 18:49 ` Randy Dunlap
  2007-03-01 21:38   ` Thomas Davies
  0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2007-03-01 18:49 UTC (permalink / raw)
  To: Thomas Davies; +Cc: kernel-janitors, linux-kernel

On Thu, 1 Mar 2007 10:39:41 -0800 Thomas Davies wrote:

> From: Thomas Davies <daviesth@onid.orst.edu>
> 
> Cleaned up comments and whitespace in /drivers/message/fusion/*.c and also
> /lib/bitmap.c to remove make *docs warnings.  An attempt by a newbie
> to contribute
> in some small way to the codebase.  Did I do it right?

Hi,

Your patch looks fine (until I tested it), but I have already
corrected these warnings.  The patches have been in the -mm patchset
for awhile and Andrew has sent some of it to Linus to be merged.
Other parts need to go thru other maintainers.


> Signed-off-by: Thomas Davies <daviesth@onid.orst.edu>
> ---
> diff -uprN -X linux-2.6/Documentation/dontdiff
> linux-2.6/drivers/message/fusion/mptbase.c
> linux-2.6-new/drivers/message/fusion/mptbase.c

Looks like your mail client split these lines (above and below)
so that 'patch' cannot apply the patch.
lkml.org shows the same splitting, so I guess it's not my
mail client on the reading end that is doing this.


> --- linux-2.6/drivers/message/fusion/mptbase.c	2007-02-27
> 21:46:49.000000000 -0800
> +++ linux-2.6-new/drivers/message/fusion/mptbase.c	2007-02-28
> 23:03:26.000000000 -0800
> @@ -4743,7 +4743,7 @@ mpt_readScsiDevicePageHeaders(MPT_ADAPTE
>   *
>   * This clears this link list.
>   *
> - * @ioc - pointer to per adapter structure
> + * @ioc: pointer to per adapter structure
>   *
>   **/
>  static void
> @@ -4768,9 +4768,9 @@ mpt_inactive_raid_list_free(MPT_ADAPTER
>   *
>   * This sets up link list of phy_disk_nums for devices belonging in
> an inactive volume
>   *
> - * @ioc - pointer to per adapter structure
> - * @channel - volume channel
> - * @id - volume target id
> + * @ioc: pointer to per adapter structure
> + * @channel: volume channel
> + * @id: volume target id
>   *
>   *
>   **/
> @@ -4782,7 +4782,7 @@ mpt_inactive_raid_volumes(MPT_ADAPTER *i
>  	dma_addr_t			dma_handle;
>  	pRaidVolumePage0_t		buffer = NULL;
>  	int				i;
> -	RaidPhysDiskPage0_t 		phys_disk;
> +	RaidPhysDiskPage0_t		phys_disk;
>  	struct inactive_raid_component_info *component_info;
>  	int				handle_inactive_volumes;
> 
> @@ -6663,7 +6663,7 @@ union loginfo_type {
>  /**
>   *	mpt_iocstatus_info_config - IOCSTATUS information for config pages
>   *	@ioc: Pointer to MPT_ADAPTER structure
> - *	ioc_status: U32 IOCStatus word from IOC
> + *	@ioc_status: U32 IOCStatus word from IOC
>   *	@mf: Pointer to MPT request frame
>   *
>   *	Refer to lsi/mpi.h.
> diff -uprN -X linux-2.6/Documentation/dontdiff
> linux-2.6/drivers/message/fusion/mptscsih.c
> linux-2.6-new/drivers/message/fusion/mptscsih.c
> --- linux-2.6/drivers/message/fusion/mptscsih.c	2007-02-27
> 21:46:49.000000000 -0800
> +++ linux-2.6-new/drivers/message/fusion/mptscsih.c	2007-02-28
> 23:03:26.000000000 -0800
> @@ -1540,11 +1540,13 @@ mptscsih_freeChainBuffers(MPT_ADAPTER *i
>   *	Fall through to mpt_HardResetHandler if: not operational, too many
>   *	failed TM requests or handshake failure.
>   *
> - *	@ioc: Pointer to MPT_ADAPTER structure
> + *	@hd: Pointer to MPT_SCSI_HOST structure
>   *	@type: Task Management type
> + *	@channel: Logical bus number of the device
>   *	@id: Logical Target ID for reset (if appropriate)
>   *	@lun: Logical Unit for reset (if appropriate)
>   *	@ctx2abort: Context for the task to be aborted (if appropriate)
> + *	@timeout: Time to wait in seconds before giving up
>   *
>   *	Remark: Currently invoked from a non-interrupt thread (_bh).
>   *
> @@ -1650,9 +1652,11 @@ mptscsih_TMHandler(MPT_SCSI_HOST *hd, u8
>   *	mptscsih_IssueTaskMgmt - Generic send Task Management function.
>   *	@hd: Pointer to MPT_SCSI_HOST structure
>   *	@type: Task Management type
> + *	@channel: Logical bus number of the device
>   *	@id: Logical Target ID for reset (if appropriate)
>   *	@lun: Logical Unit for reset (if appropriate)
>   *	@ctx2abort: Context for the task to be aborted (if appropriate)
> + *	@timeout: time to wait in seconds before giving up
>   *
>   *	Remark: _HardResetHandler can be invoked from an interrupt thread (timer)
>   *	or a non-interrupt thread.  In the former, must not call schedule().
> @@ -2022,6 +2026,7 @@ mptscsih_tm_pending_wait(MPT_SCSI_HOST *
>  /**
>   *	mptscsih_tm_wait_for_completion - wait for completion of TM task
>   *	@hd: Pointer to MPT host structure.
> + *	@timeout: time to wait in seconds before giving up
>   *
>   *	Returns {SUCCESS,FAILED}.
>   */
> diff -uprN -X linux-2.6/Documentation/dontdiff
> linux-2.6/drivers/message/fusion/mptspi.c
> linux-2.6-new/drivers/message/fusion/mptspi.c
> --- linux-2.6/drivers/message/fusion/mptspi.c	2007-02-27
> 21:46:49.000000000 -0800
> +++ linux-2.6-new/drivers/message/fusion/mptspi.c	2007-02-28
> 23:03:26.000000000 -0800
> @@ -101,7 +101,7 @@ static int	mptspiInternalCtx = -1; /* Us
>   *	and NVRAM settings
>   *
>   *	@hd: Pointer to a SCSI Host Structure
> - *	@vtarget: per target private data
> + *	@target: per target private data
>   *	@sdev: SCSI device
>   *
>   **/
> @@ -232,9 +232,9 @@ mptspi_setTargetNegoParms(MPT_SCSI_HOST
>  }
> 
>  /**
> - * 	mptspi_writeIOCPage4  - write IOC Page 4
> + *	mptspi_writeIOCPage4  - write IOC Page 4
>   *	@hd: Pointer to a SCSI Host Structure
> - *	@channel:
> + *	@channel: Logical bus number of the device
>   *	@id: write IOC Page4 for this ID & Bus
>   *
>   *	Return: -EAGAIN if unable to obtain a Message Frame
> @@ -243,7 +243,7 @@ mptspi_setTargetNegoParms(MPT_SCSI_HOST
>   *	Remark: We do not wait for a return, write pages sequentially.
>   **/
>  static int
> -mptspi_writeIOCPage4(MPT_SCSI_HOST *hd, u8 channel , u8 id)
> +mptspi_writeIOCPage4(MPT_SCSI_HOST *hd, u8 channel, u8 id)
>  {
>  	MPT_ADAPTER		*ioc = hd->ioc;
>  	Config_t		*pReq;
> diff -uprN -X linux-2.6/Documentation/dontdiff linux-2.6/lib/bitmap.c
> linux-2.6-new/lib/bitmap.c
> --- linux-2.6/lib/bitmap.c	2007-02-28 23:15:13.000000000 -0800
> +++ linux-2.6-new/lib/bitmap.c	2007-02-28 23:15:19.000000000 -0800
> @@ -97,10 +97,10 @@ EXPORT_SYMBOL(__bitmap_complement);
> 
>  /**
>   * __bitmap_shift_right - logical right shift of the bits in a bitmap
> - *   @dst - destination bitmap
> - *   @src - source bitmap
> - *   @nbits - shift by this many bits
> - *   @bits - bitmap size, in bits
> + *   @dst: destination bitmap
> + *   @src: source bitmap
> + *   @shift: shift by this many bits
> + *   @bits: bitmap size, in bits
>   *
>   * Shifting right (dividing) means moving bits in the MS -> LS bit
>   * direction.  Zeros are fed into the vacated MS positions and the
> @@ -141,10 +141,10 @@ EXPORT_SYMBOL(__bitmap_shift_right);
> 
>  /**
>   * __bitmap_shift_left - logical left shift of the bits in a bitmap
> - *   @dst - destination bitmap
> - *   @src - source bitmap
> - *   @nbits - shift by this many bits
> - *   @bits - bitmap size, in bits
> + *   @dst: destination bitmap
> + *   @src: source bitmap
> + *   @shift: shift by this many bits
> + *   @bits: bitmap size, in bits
>   *
>   * Shifting left (multiplying) means moving bits in the LS -> MS
>   * direction.  Zeros are fed into the vacated LS bit positions
> -


---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

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

* Re: [PATCH] fix warnings that occur on make *docs
  2007-03-01 18:49 ` Randy Dunlap
@ 2007-03-01 21:38   ` Thomas Davies
  2007-03-01 21:44     ` Randy Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Davies @ 2007-03-01 21:38 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: kernel-janitors, linux-kernel

On 3/1/07, Randy Dunlap <randy.dunlap@oracle.com> wrote:
> On Thu, 1 Mar 2007 10:39:41 -0800 Thomas Davies wrote:
>
> > From: Thomas Davies <daviesth@onid.orst.edu>
> >
> > Cleaned up comments and whitespace in /drivers/message/fusion/*.c and also
> > /lib/bitmap.c to remove make *docs warnings.  An attempt by a newbie
> > to contribute
> > in some small way to the codebase.  Did I do it right?
>
> Hi,
>
> Your patch looks fine (until I tested it), but I have already
> corrected these warnings.  The patches have been in the -mm patchset
> for awhile and Andrew has sent some of it to Linus to be merged.
> Other parts need to go thru other maintainers.

Thank you for the feedback Randy.  Looks like I missed a step in the cycle;
I cloned Linus' tree with git from
git://git.kernel.org/pub/[...]/torvalds/linux-2.6.git,
was this wrong?  Is there another tree I should be cloning, or do I
apply the -mm
patch from kernel.org before making this sort of change? (The latter I suspect.)

> > Signed-off-by: Thomas Davies <daviesth@onid.orst.edu>
> > ---
> > diff -uprN -X linux-2.6/Documentation/dontdiff
> > linux-2.6/drivers/message/fusion/mptbase.c
> > linux-2.6-new/drivers/message/fusion/mptbase.c
>
> Looks like your mail client split these lines (above and below)
> so that 'patch' cannot apply the patch.
> lkml.org shows the same splitting, so I guess it's not my
> mail client on the reading end that is doing this.

I thought I could get away with using gmail in plain text mode, guess
I'll go back to using mutt.

-Tom

> ---
> ~Randy
> *** Remember to use Documentation/SubmitChecklist when testing your code ***
>
>

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

* Re: [PATCH] fix warnings that occur on make *docs
  2007-03-01 21:38   ` Thomas Davies
@ 2007-03-01 21:44     ` Randy Dunlap
  0 siblings, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2007-03-01 21:44 UTC (permalink / raw)
  To: Thomas Davies; +Cc: kernel-janitors, linux-kernel

Thomas Davies wrote:
> On 3/1/07, Randy Dunlap <randy.dunlap@oracle.com> wrote:
>> On Thu, 1 Mar 2007 10:39:41 -0800 Thomas Davies wrote:
>>
>> > From: Thomas Davies <daviesth@onid.orst.edu>
>> >
>> > Cleaned up comments and whitespace in /drivers/message/fusion/*.c 
>> and also
>> > /lib/bitmap.c to remove make *docs warnings.  An attempt by a newbie
>> > to contribute
>> > in some small way to the codebase.  Did I do it right?
>>
>> Hi,
>>
>> Your patch looks fine (until I tested it), but I have already
>> corrected these warnings.  The patches have been in the -mm patchset
>> for awhile and Andrew has sent some of it to Linus to be merged.
>> Other parts need to go thru other maintainers.
> 
> Thank you for the feedback Randy.  Looks like I missed a step in the cycle;
> I cloned Linus' tree with git from
> git://git.kernel.org/pub/[...]/torvalds/linux-2.6.git,
> was this wrong?  Is there another tree I should be cloning, or do I
> apply the -mm
> patch from kernel.org before making this sort of change? (The latter I 
> suspect.)

I don't think that my patches have been merged by Linus yet (sent by
Andrew, but there must be some delay there :) .

To see if anything has already been patched, it often takes reviewing
both Linus's tree and Andrew's -mm patches.  Hopefully we don't also
need to review all gits of all maintainers, since Andrew tries to
merge all of those into the -mm patchset.

>> > Signed-off-by: Thomas Davies <daviesth@onid.orst.edu>
>> > ---
>> > diff -uprN -X linux-2.6/Documentation/dontdiff
>> > linux-2.6/drivers/message/fusion/mptbase.c
>> > linux-2.6-new/drivers/message/fusion/mptbase.c
>>
>> Looks like your mail client split these lines (above and below)
>> so that 'patch' cannot apply the patch.
>> lkml.org shows the same splitting, so I guess it's not my
>> mail client on the reading end that is doing this.
> 
> I thought I could get away with using gmail in plain text mode, guess
> I'll go back to using mutt.

gmail works if you use the SMTP interface to it (or probably with
attachments, but they aren't good for reviews/reviewers).
Yes, mutt works.

-- 
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

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

end of thread, other threads:[~2007-03-01 21:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-01 18:39 [PATCH] fix warnings that occur on make *docs Thomas Davies
2007-03-01 18:49 ` Randy Dunlap
2007-03-01 21:38   ` Thomas Davies
2007-03-01 21:44     ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).