From: Ian Abbott <abbotti@mev.co.uk>
To: H Hartley Sweeten <hartleys@visionengravers.com>
Cc: Greg KH <gregkh@linuxfoundation.org>,
Linux Kernel <linux-kernel@vger.kernel.org>,
"devel@driverdev.osuosl.org" <devel@driverdev.osuosl.org>,
Ian Abbott <ian.abbott@mev.co.uk>
Subject: Re: [PATCH 1/2 v2] staging: comedi: new adl_pci7x3x driver
Date: Tue, 14 Aug 2012 09:58:52 +0100 [thread overview]
Message-ID: <502A134C.4000406@mev.co.uk> (raw)
In-Reply-To: <ADE657CA350FB648AAC2C43247A983F00206AAE977F3@AUSP01VMBX24.collaborationhost.net>
On 2012-08-14 02:36, H Hartley Sweeten wrote:
> On Monday, August 13, 2012 6:30 PM, Greg KH wrote:
>> On Fri, Aug 03, 2012 at 10:28:18AM -0700, H Hartley Sweeten wrote:
>>> Currently the ADLink PCI-7230 and PCI-7432 Isolated Digital
>>> I/O Boards are supported using two drivers (adl_pci7230 and
>>> adl_pci7432). These drivers are very similar and only differ
>>> in the total number of di/do channels provided.
>>>
>>> This driver combines the support for both boards into one
>>> common driver. In addition, it adds PCI PnP support for the
>>> other boards in the ADLink PCI-723x and PCI-743x series.
>>>
>>> This driver only supports the comedi PCI auto config attach
>>> mechanism. The legacy attach using the comedi_config utility
>>> is not supported or required by this driver.
>>
>> I now get the following build warnings on my box with this patch
>> applied:
>>
>> drivers/staging/comedi/drivers/adl_pci7x3x.c: In function ‘adl_pci7x3x_do_insn_bits’:
>> drivers/staging/comedi/drivers/adl_pci7x3x.c:124:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
>> drivers/staging/comedi/drivers/adl_pci7x3x.c: In function ‘adl_pci7x3x_di_insn_bits’:
>> drivers/staging/comedi/drivers/adl_pci7x3x.c:150:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
>
> Hmm.. My build does not have the [-Wpointer-to-int-cast] for some reason
> so I didn't see this. I was trying to save having to allocate any private data but
> I guess it's cleaner if I do. BTW, there is another comedi driver that does this
> but I can't recall which one of the top of my head...
You could always cast to unsigned long as that is the same size as a
pointer, at least in the Linux kernel.
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=-
-=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
next prev parent reply other threads:[~2012-08-14 8:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-03 17:28 [PATCH 1/2 v2] staging: comedi: new adl_pci7x3x driver H Hartley Sweeten
2012-08-14 1:29 ` Greg KH
2012-08-14 1:36 ` H Hartley Sweeten
2012-08-14 8:58 ` Ian Abbott [this message]
2012-08-14 18:23 ` H Hartley Sweeten
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=502A134C.4000406@mev.co.uk \
--to=abbotti@mev.co.uk \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=hartleys@visionengravers.com \
--cc=ian.abbott@mev.co.uk \
--cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.