RE: [PATCH] Xilinx: hwicap: cleanup

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Grant Likely <grant.likely@...>
Cc: <linuxppc-dev@...>, git-dev <git-dev@...>, <jirislaby@...>, <linux-kernel@...>
Date: Sunday, February 24, 2008 - 7:21 pm

> -----Original Message-----
Grant Likely
linux.kernel@vger.kernel.org
<stephen.neuendorffer@xilinx.com>
are
++++++++++----------
++++++++++++++++------------
b/drivers/char/xilinx_hwicap/buffer_icap.c
__iomem *base_address,
device.
register.

Actually, it's just the comment that still had the old name.. Fixed it.

-Wall reports one unused static:

drivers/char/xilinx_hwicap/xilinx_hwicap.c:240: warning:
'hwicap_command_capture' defined but not used

I'd intended to leave this in, but I'm thinking it can be done by
userspace code using this driver, so I took it out too.

In verifying this, I discovered that I had inserted a variable names
'register', which doesn't work...  Fixed that too.

hwicap_drvdata *drvdata)
*ppos)
loff_t *ppos)
char *buf'.

Fixed.
 

Fixed.

struct file *file)
mutex_lock())

It's not clear to me how to get 'correct' behavior in these functions if
the interrupt happens.  For instance in probe/setup, if the mutex_lock
is interrupted, it doesn't appear that there is anything to do other
than return an error code that no device is present?  I think this was
suggested by Jiri...

Steve

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RE: [PATCH] Xilinx: hwicap: cleanup, Stephen Neuendorffer, (Sun Feb 24, 7:21 pm)
Re: [PATCH] Xilinx: hwicap: cleanup, Jiri Slaby, (Mon Feb 25, 4:16 am)
[PATCH] [POWERPC] [v2] Xilinx: hwicap: cleanup, Stephen Neuendorffer, (Sun Feb 24, 7:34 pm)
Re: [PATCH] [POWERPC] [v2] Xilinx: hwicap: cleanup, Grant Likely, (Wed Feb 27, 2:20 pm)