All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] bcm/CmHost.c: Fix noisy compile warnings
@ 2014-10-15 19:01 Jeff Kirsher
  2014-10-15 19:55 ` Dan Carpenter
  2014-10-15 22:59 ` Jeff Kirsher
  0 siblings, 2 replies; 8+ messages in thread
From: Jeff Kirsher @ 2014-10-15 19:01 UTC (permalink / raw)
  To: gregkh
  Cc: Fabio Estevam, linux-kernel, mail, devel, Dan Carpenter,
	Joe Perches, Jeff Kirsher

From: Fabio Estevam <fabio.estevam@freescale.com>

The Beceem WIMAX was generating compile warnings on 64bit machines,
which were:

drivers/staging/bcm/CmHost.c: In function ‘StoreCmControlResponseMessage’:
drivers/staging/bcm/CmHost.c:1503:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   (struct bcm_connect_mgr_params *) ntohl(
   ^
drivers/staging/bcm/CmHost.c:1546:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   (struct bcm_connect_mgr_params *) ntohl(
   ^
drivers/staging/bcm/CmHost.c:1564:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   (struct bcm_connect_mgr_params *) ntohl(

This resolves the issue by preventing the driver to compile if CONFIG_64BIT
is enabled, since the driver is known to be broken for 64 bit arch's.

CC: Dan Carpenter <dan.carpenter@oracle.com>
CC: Joe Perches <joe@perches.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---
v2: change fix from using typecast u64 in the code to altering Kconfig to
    prevent the driver from compiling on 64 bit arch's based on feedback

 drivers/staging/bcm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/bcm/Kconfig b/drivers/staging/bcm/Kconfig
index 8acf4b2..273b328 100644
--- a/drivers/staging/bcm/Kconfig
+++ b/drivers/staging/bcm/Kconfig
@@ -1,6 +1,6 @@
 config BCM_WIMAX
        tristate "Beceem BCS200/BCS220-3 and BCSM250 wimax support"
-       depends on USB && NET
+       depends on USB && NET && !64BIT
        help
          This is an experimental driver for the Beceem WIMAX chipset used
 	 by Sprint 4G.
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-10-16  8:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-15 19:01 [PATCH v2] bcm/CmHost.c: Fix noisy compile warnings Jeff Kirsher
2014-10-15 19:55 ` Dan Carpenter
2014-10-15 20:26   ` Jeff Kirsher
2014-10-16  7:52     ` Dan Carpenter
2014-10-16  7:59       ` Jeff Kirsher
2014-10-16  8:09         ` Dan Carpenter
2014-10-15 22:59 ` Jeff Kirsher
2014-10-16  8:13   ` Greg KH

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.