From: David Miller <davem@davemloft.net>
To: vbridgers2013@gmail.com
Cc: devicetree@vger.kernel.org, netdev@vger.kernel.org,
linux-doc@vger.kernel.org, robh+dt@kernel.org,
pawel.moll@arm.com, mark.rutland@arm.com,
ijc+devicetree@hellion.org.uk, galak@codeaurora.org,
rob@landley.net
Subject: Re: [PATCH net-next V5 0/9] Altera Triple Speed Ethernet (TSE) Driver
Date: Fri, 14 Mar 2014 15:15:24 -0400 (EDT) [thread overview]
Message-ID: <20140314.151524.753884730788957176.davem@davemloft.net> (raw)
In-Reply-To: <20140314.150720.734350362080616095.davem@davemloft.net>
From: David Miller <davem@davemloft.net>
Date: Fri, 14 Mar 2014 15:07:20 -0400 (EDT)
> From: Vince Bridgers <vbridgers2013@gmail.com>
> Date: Fri, 14 Mar 2014 09:04:38 -0500
>
>> This is the version 5 submission for the Altera Triple Speed Ethernet (TSE)
>> driver. All comments received during the version 2, 3, and 4 submissions have
>> been accepted. Please find the change log and a description of the submission
>> below.
>
> Series applied to net-next, thanks.
Actually, I had to revert, your driver adds new warnings to the build:
drivers/net/ethernet/altera/altera_tse_main.c: In function ‘altera_tse_probe’:
drivers/net/ethernet/altera/altera_tse_main.c:1238:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
priv->tx_dma_desc = (void *)descmap;
^
drivers/net/ethernet/altera/altera_tse_main.c:1242:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
priv->rx_dma_desc = (void *)(descmap+priv->txdescmem);
^
A pointer can be larger than an "unsigned int", you therefore cannot
cast it to a pointer.
In fact this code path has a lot of problems, we pass a pointer to an unsigned int
as a "void __iomem *" to request_and_map(). It's not, don't pretend that it is,
and don't use casts to try and make the compiler also not see the problem.
next prev parent reply other threads:[~2014-03-14 19:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-14 14:04 [PATCH net-next V5 0/9] Altera Triple Speed Ethernet (TSE) Driver Vince Bridgers
2014-03-14 14:04 ` [PATCH net-next V5 1/9] dts: Add bindings for the Altera Triple Speed Ethernet driver Vince Bridgers
2014-03-14 14:04 ` [PATCH net-next V5 2/9] Documentation: networking: Add Altera Ethernet (TSE) Documentation Vince Bridgers
2014-03-14 14:04 ` [PATCH net-next V5 3/9] Altera TSE: Add Altera Ethernet Driver MSGDMA File Components Vince Bridgers
2014-03-14 14:04 ` [PATCH net-next V5 4/9] Altera TSE: Add Altera Ethernet Driver SGDMA file components Vince Bridgers
2014-03-14 14:04 ` [PATCH net-next V5 5/9] Altera TSE: Add Miscellaneous Files for Altera Ethernet Driver Vince Bridgers
2014-03-14 14:04 ` [PATCH net-next V5 6/9] Altera TSE: Add main and header file " Vince Bridgers
2014-03-14 14:39 ` Richard Cochran
2014-03-14 18:52 ` Vince Bridgers
2014-03-14 19:05 ` David Miller
2014-03-14 14:04 ` [PATCH net-next V5 7/9] Altera TSE: Add Altera Ethernet Driver Makefile and Kconfig Vince Bridgers
2014-03-14 14:04 ` [PATCH net-next V5 8/9] MAINTAINERS: Add entry for Altera Triple Speed Ethernet Driver Vince Bridgers
2014-03-14 14:04 ` [PATCH net-next V5 9/9] net: ethernet: Change Ethernet Makefile and Kconfig for Altera TSE driver Vince Bridgers
2014-03-14 19:07 ` [PATCH net-next V5 0/9] Altera Triple Speed Ethernet (TSE) Driver David Miller
2014-03-14 19:15 ` David Miller [this message]
2014-03-15 20:52 ` Vince Bridgers
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=20140314.151524.753884730788957176.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-doc@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=netdev@vger.kernel.org \
--cc=pawel.moll@arm.com \
--cc=rob@landley.net \
--cc=robh+dt@kernel.org \
--cc=vbridgers2013@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).