public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Brian King <brking@us.ibm.com>
To: Alan Cox <alan@redhat.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: PATCH: Fix assorted dma_addr_t typing errors in ipr driver
Date: Mon, 28 Jun 2004 13:11:15 -0500	[thread overview]
Message-ID: <40E05F43.7040602@us.ibm.com> (raw)
In-Reply-To: <20040628140721.GA10393@devserv.devel.redhat.com>

Alan Cox wrote:
> (Not cc the author since the authors email address seems to be an IBM state
>  secret.. 8))

Yep. I buried it in the MODULE_AUTHOR macro;) I'll add it to the comment 
block at the start of the driver on the next driver update as well, as I 
assume that is where you were looking for it.

Thanks for the patch. It looks fine to me.

-Brian

> diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.6.7/drivers/scsi/ipr.c linux-2.6.7-viroized/drivers/scsi/ipr.c
> --- linux-2.6.7/drivers/scsi/ipr.c	2004-06-16 21:11:36.000000000 +0100
> +++ linux-2.6.7-viroized/drivers/scsi/ipr.c	2004-06-27 20:07:29.218694904 +0100
> @@ -5441,7 +5441,7 @@
>  {
>  	struct ipr_cmnd *ipr_cmd;
>  	struct ipr_ioarcb *ioarcb;
> -	u32 dma_addr;
> +	dma_addr_t dma_addr;
>  	int i;
>  
>  	ioa_cfg->ipr_cmd_pool = pci_pool_create (IPR_NAME, ioa_cfg->pdev,
> diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.6.7/drivers/scsi/ipr.h linux-2.6.7-viroized/drivers/scsi/ipr.h
> --- linux-2.6.7/drivers/scsi/ipr.h	2004-06-16 21:11:36.000000000 +0100
> +++ linux-2.6.7-viroized/drivers/scsi/ipr.h	2004-06-27 20:09:47.231713736 +0100
> @@ -19,6 +19,8 @@
>   * along with this program; if not, write to the Free Software
>   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
>   *
> + * Alan Cox <alan@redhat.com> - Removed several careless u32/dma_addr_t errors
> + *				that broke 64bit platforms.
>   */
>  
>  #ifndef _IPR_H
> @@ -667,7 +669,7 @@
>  
>  struct ipr_hostrcb {
>  	struct ipr_hcam hcam;
> -	u32 hostrcb_dma;
> +	dma_addr_t hostrcb_dma;
>  	struct list_head queue;
>  };
>  
> @@ -850,7 +852,7 @@
>  	char cfg_table_start[8];
>  #define IPR_CFG_TBL_START		"cfg"
>  	struct ipr_config_table *cfg_table;
> -	u32 cfg_table_dma;
> +	dma_addr_t cfg_table_dma;
>  
>  	char resource_table_label[8];
>  #define IPR_RES_TABLE_LABEL		"res_tbl"
> @@ -861,12 +863,12 @@
>  	char ipr_hcam_label[8];
>  #define IPR_HCAM_LABEL			"hcams"
>  	struct ipr_hostrcb *hostrcb[IPR_NUM_HCAMS];
> -	u32 hostrcb_dma[IPR_NUM_HCAMS];
> +	dma_addr_t hostrcb_dma[IPR_NUM_HCAMS];
>  	struct list_head hostrcb_free_q;
>  	struct list_head hostrcb_pending_q;
>  
>  	u32 *host_rrq;
> -	u32 host_rrq_dma;
> +	dma_addr_t host_rrq_dma;
>  #define IPR_HRRQ_REQ_RESP_HANDLE_MASK	0xfffffffc
>  #define IPR_HRRQ_RESP_BIT_SET			0x00000002
>  #define IPR_HRRQ_TOGGLE_BIT				0x00000001
> @@ -905,7 +907,7 @@
>  	enum ipr_sdt_state sdt_state;
>  
>  	struct ipr_misc_cbs *vpd_cbs;
> -	u32 vpd_cbs_dma;
> +	dma_addr_t vpd_cbs_dma;
>  
>  	struct pci_pool *ipr_cmd_pool;
>  
> 
> 
> 
> ----
> 
> Signed-off-by: Alan Cox <alan@redhat.com>
> 
> Developer's Certificate of Origin 1.0 included herein by reference.
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 
Brian King
eServer Storage I/O
IBM Linux Technology Center


  reply	other threads:[~2004-06-28 18:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-28 14:07 PATCH: Fix assorted dma_addr_t typing errors in ipr driver Alan Cox
2004-06-28 18:11 ` Brian King [this message]
2004-06-29  8:20   ` Jeff Garzik
2004-06-29 21:59   ` [PATCH 2.6.7-mm3] ipr: minor fixes and assorted nit Francois Romieu
2004-06-30 15:04     ` Brian King
2004-06-30 15:52       ` James Bottomley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40E05F43.7040602@us.ibm.com \
    --to=brking@us.ibm.com \
    --cc=alan@redhat.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox