提交 9723f38e 编写于 作者: D David S. Miller

sparc32: Fix sun4c build warnings.

Reported by Stephen Rothwell.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8aef7278
...@@ -1108,7 +1108,7 @@ static void sun4c_unlockarea(char *vaddr, unsigned long size) ...@@ -1108,7 +1108,7 @@ static void sun4c_unlockarea(char *vaddr, unsigned long size)
* by implication and fool the page locking code above * by implication and fool the page locking code above
* if passed to by mistake. * if passed to by mistake.
*/ */
static __u32 sun4c_get_scsi_one(char *bufptr, unsigned long len, struct sbus_bus *sbus) static __u32 sun4c_get_scsi_one(struct device *dev, char *bufptr, unsigned long len)
{ {
unsigned long page; unsigned long page;
...@@ -1120,7 +1120,7 @@ static __u32 sun4c_get_scsi_one(char *bufptr, unsigned long len, struct sbus_bus ...@@ -1120,7 +1120,7 @@ static __u32 sun4c_get_scsi_one(char *bufptr, unsigned long len, struct sbus_bus
return (__u32)sun4c_lockarea(bufptr, len); return (__u32)sun4c_lockarea(bufptr, len);
} }
static void sun4c_get_scsi_sgl(struct scatterlist *sg, int sz, struct sbus_bus *sbus) static void sun4c_get_scsi_sgl(struct device *dev, struct scatterlist *sg, int sz)
{ {
while (sz != 0) { while (sz != 0) {
--sz; --sz;
...@@ -1130,14 +1130,14 @@ static void sun4c_get_scsi_sgl(struct scatterlist *sg, int sz, struct sbus_bus * ...@@ -1130,14 +1130,14 @@ static void sun4c_get_scsi_sgl(struct scatterlist *sg, int sz, struct sbus_bus *
} }
} }
static void sun4c_release_scsi_one(__u32 bufptr, unsigned long len, struct sbus_bus *sbus) static void sun4c_release_scsi_one(struct device *dev, __u32 bufptr, unsigned long len)
{ {
if (bufptr < sun4c_iobuffer_start) if (bufptr < sun4c_iobuffer_start)
return; /* On kernel stack or similar, see above */ return; /* On kernel stack or similar, see above */
sun4c_unlockarea((char *)bufptr, len); sun4c_unlockarea((char *)bufptr, len);
} }
static void sun4c_release_scsi_sgl(struct scatterlist *sg, int sz, struct sbus_bus *sbus) static void sun4c_release_scsi_sgl(struct device *dev, struct scatterlist *sg, int sz)
{ {
while (sz != 0) { while (sz != 0) {
--sz; --sz;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册