linux_old1/drivers/net/wireless/rt2x00
Stefani Seibold 498d319bb5 kfifo API type safety
This patch enhances the type safety for the kfifo API.  It is now safe
to put const data into a non const FIFO and the API will now generate a
compiler warning when reading from the fifo where the destination
address is pointing to a const variable.

As a side effect the kfifo_put() does now expect the value of an element
instead a pointer to the element.  This was suggested Russell King.  It
make the handling of the kfifo_put easier since there is no need to
create a helper variable for getting the address of a pointer or to pass
integers of different sizes.

IMHO the API break is okay, since there are currently only six users of
kfifo_put().

The code is also cleaner by kicking out the "if (0)" expressions.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Stefani Seibold <stefani@seibold.net>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-11-15 09:32:23 +09:00
..
Kconfig rt2x00: rt2800pci: move SoC specific code into a separate module 2013-10-18 14:07:00 -04:00
Makefile rt2x00: rt2800pci: move SoC specific code into a separate module 2013-10-18 14:07:00 -04:00
rt2x00.h rt2x00: add rt2x00_has_cap_* helpers 2013-10-14 13:39:57 -04:00
rt2x00config.c mac80211: Use a cfg80211_chan_def in ieee80211_hw_conf_chan 2013-03-25 19:19:35 +01:00
rt2x00crypto.c rt2x00: rt2x00lib: use rt2x00_has_cap_* helpers 2013-10-14 13:39:57 -04:00
rt2x00debug.c rt2x00: rt2x00lib: use rt2x00_has_cap_* helpers 2013-10-14 13:39:57 -04:00
rt2x00debug.h rt2x00: Add debugfs access for rfcsr register 2012-05-08 21:53:46 -04:00
rt2x00dev.c rt2x00: rt2x00lib: use rt2x00_has_cap_* helpers 2013-10-14 13:39:57 -04:00
rt2x00dump.h
rt2x00firmware.c rt2x00: Use more current logging styles, shrink object size 2013-04-22 15:20:26 -04:00
rt2x00leds.c rt2x00: Use more current logging styles, shrink object size 2013-04-22 15:20:26 -04:00
rt2x00leds.h
rt2x00lib.h rt2x00: Use GFP_KERNEL for rx buffer allocation on USB devices 2012-04-23 15:35:29 -04:00
rt2x00link.c rt2x00: rt2x00lib: use rt2x00_has_cap_* helpers 2013-10-14 13:39:57 -04:00
rt2x00mac.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless 2013-11-04 14:45:14 -05:00
rt2x00mmio.c rt2x00: Use more current logging styles, shrink object size 2013-04-22 15:20:26 -04:00
rt2x00mmio.h rt2x00: rt2x00mmio: remove unused rt2x00pci_* defines 2013-04-10 14:10:32 -04:00
rt2x00pci.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless 2013-11-04 14:45:14 -05:00
rt2x00pci.h rt2x00: rt2x00pci: fix build error on Ralink RT3x5x SoCs 2013-04-03 14:50:06 -04:00
rt2x00queue.c rt2x00: rt2x00lib: use rt2x00_has_cap_* helpers 2013-10-14 13:39:57 -04:00
rt2x00queue.h rt2x00: remove data_queue_desc struct 2013-06-12 14:59:38 -04:00
rt2x00reg.h
rt2x00soc.c rt2x00: Use more current logging styles, shrink object size 2013-04-22 15:20:26 -04:00
rt2x00soc.h
rt2x00usb.c rt2x00: do not pause queue on flush 2013-10-10 13:49:28 -04:00
rt2x00usb.h
rt61pci.c rt2x00: rt61pci: use rt2x00_has_cap_* helpers 2013-10-14 13:39:57 -04:00
rt61pci.h rt2x00: Unify GPIO register field namings 2012-09-07 15:08:40 -04:00
rt73usb.c rt2x00: rt73usb: use rt2x00_has_cap_* helpers 2013-10-14 13:39:58 -04:00
rt73usb.h rt2x00: Unify GPIO register field namings 2012-09-07 15:08:40 -04:00
rt2400pci.c rt2400pci: fix RSSI read 2013-10-18 13:41:11 -04:00
rt2400pci.h rt2x00: Unify GPIO register field namings 2012-09-07 15:08:40 -04:00
rt2500pci.c rt2x00: move extra_tx_headroom field from rt2x00_ops to rt2x00_dev 2013-06-12 15:02:15 -04:00
rt2500pci.h rt2x00: Unify GPIO register field namings 2012-09-07 15:08:40 -04:00
rt2500usb.c rt2x00: move extra_tx_headroom field from rt2x00_ops to rt2x00_dev 2013-06-12 15:02:15 -04:00
rt2500usb.h rt2x00: Unify GPIO register field namings 2012-09-07 15:08:40 -04:00
rt2800.h rt2x00: cleanup indentation in rt2800.h 2013-10-14 13:39:57 -04:00
rt2800lib.c rt2x00: rt2800lib: autodetect 5GHz band support 2013-10-18 14:03:54 -04:00
rt2800lib.h rt2x00: rt2800lib: introduce rt2800_get_txwi_rxwi_size helper 2013-08-16 14:17:50 -04:00
rt2800mmio.c kfifo API type safety 2013-11-15 09:32:23 +09:00
rt2800mmio.h rt2x00: rt2800pci: move rt2800mmio_enable_radio function to another module 2013-10-18 14:07:00 -04:00
rt2800pci.c rt2x00: rt2800pci: use module_pci_driver macro 2013-10-18 14:07:00 -04:00
rt2800pci.h rt2x00: rt2800pci: move queue functions to the rt2800mmio module 2013-10-18 14:06:59 -04:00
rt2800soc.c rt2x00: rt2800pci: move SoC specific code into a separate module 2013-10-18 14:07:00 -04:00
rt2800usb.c kfifo API type safety 2013-11-15 09:32:23 +09:00
rt2800usb.h