stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch added to the 3.12 stable tree] netfilter: nfnetlink_cthelper: Remove 'const' and '&' to avoid warnings
@ 2015-07-27  8:01 Jiri Slaby
  2015-07-27  8:01 ` [patch added to the 3.12 stable tree] Btrfs: make xattr replace operations atomic Jiri Slaby
                   ` (47 more replies)
  0 siblings, 48 replies; 53+ messages in thread
From: Jiri Slaby @ 2015-07-27  8:01 UTC (permalink / raw)
  To: jslaby; +Cc: Chen Gang, Pablo Neira Ayuso

From: Chen Gang <gang.chen.5i5j@gmail.com>

This patch has been added to the 3.12 stable tree. If you have any
objections, please let us know.

===============

commit b18c5d15e8714336365d9d51782d5b53afa0443c upstream.

The related code can be simplified, and also can avoid related warnings
(with allmodconfig under parisc):

    CC [M]  net/netfilter/nfnetlink_cthelper.o
  net/netfilter/nfnetlink_cthelper.c: In function ‘nfnl_cthelper_from_nlattr’:
  net/netfilter/nfnetlink_cthelper.c:97:9: warning: passing argument 1 o ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-array-qualifiers]
    memcpy(&help->data, nla_data(attr), help->helper->data_len);
           ^
  In file included from include/linux/string.h:17:0,
                   from include/uapi/linux/uuid.h:25,
                   from include/linux/uuid.h:23,
                   from include/linux/mod_devicetable.h:12,
                   from ./arch/parisc/include/asm/hardware.h:4,
                   from ./arch/parisc/include/asm/processor.h:15,
                   from ./arch/parisc/include/asm/spinlock.h:6,
                   from ./arch/parisc/include/asm/atomic.h:21,
                   from include/linux/atomic.h:4,
                   from ./arch/parisc/include/asm/bitops.h:12,
                   from include/linux/bitops.h:36,
                   from include/linux/kernel.h:10,
                   from include/linux/list.h:8,
                   from include/linux/module.h:9,
                   from net/netfilter/nfnetlink_cthelper.c:11:
  ./arch/parisc/include/asm/string.h:8:8: note: expected ‘void *’ but argument is of type ‘const char (*)[]’
   void * memcpy(void * dest,const void *src,size_t count);
          ^

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@soleta.eu>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
---
 net/netfilter/nfnetlink_cthelper.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/netfilter/nfnetlink_cthelper.c b/net/netfilter/nfnetlink_cthelper.c
index 7f035f0772ee..54330fb5efaf 100644
--- a/net/netfilter/nfnetlink_cthelper.c
+++ b/net/netfilter/nfnetlink_cthelper.c
@@ -89,7 +89,7 @@ nfnl_cthelper_parse_tuple(struct nf_conntrack_tuple *tuple,
 static int
 nfnl_cthelper_from_nlattr(struct nlattr *attr, struct nf_conn *ct)
 {
-	const struct nf_conn_help *help = nfct_help(ct);
+	struct nf_conn_help *help = nfct_help(ct);
 
 	if (attr == NULL)
 		return -EINVAL;
@@ -97,7 +97,7 @@ nfnl_cthelper_from_nlattr(struct nlattr *attr, struct nf_conn *ct)
 	if (help->helper->data_len == 0)
 		return -EINVAL;
 
-	memcpy(&help->data, nla_data(attr), help->helper->data_len);
+	memcpy(help->data, nla_data(attr), help->helper->data_len);
 	return 0;
 }
 
-- 
2.4.6



^ permalink raw reply related	[flat|nested] 53+ messages in thread
* [patch added to the 3.12 stable tree] ath3k: Add support of 0489:e076 AR3012 device
@ 2015-06-30 13:35 Jiri Slaby
  2015-06-30 13:36 ` [patch added to the 3.12 stable tree] revert "softirq: Add support for triggering softirq work on softirqs" Jiri Slaby
  0 siblings, 1 reply; 53+ messages in thread
From: Jiri Slaby @ 2015-06-30 13:35 UTC (permalink / raw)
  To: stable; +Cc: Dmitry Tunin, Marcel Holtmann, Jiri Slaby

From: Dmitry Tunin <hanipouspilot@gmail.com>

This patch has been added to the 3.12 stable tree. If you have any
objections, please let us know.

===============

commit 692c062e7c282164fd7cda68077f79dafd176eaf upstream.

BugLink: https://bugs.launchpad.net/bugs/1462614

This device requires new firmware files
 AthrBT_0x11020100.dfu and ramps_0x11020100_40.dfu added to
/lib/firmware/ar3k/ that are not included in linux-firmware yet.

T: Bus=03 Lev=01 Prnt=01 Port=09 Cnt=06 Dev#= 7 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0489 ProdID=e076 Rev= 0.01
C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=(none)
E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=1ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=(none)
E: Ad=83(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms
E: Ad=03(O) Atr=01(Isoc) MxPS= 0 Ivl=1ms
I: If#= 1 Alt= 1 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=(none)
E: Ad=83(I) Atr=01(Isoc) MxPS= 9 Ivl=1ms
E: Ad=03(O) Atr=01(Isoc) MxPS= 9 Ivl=1ms
I: If#= 1 Alt= 2 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=(none)
E: Ad=83(I) Atr=01(Isoc) MxPS= 17 Ivl=1ms
E: Ad=03(O) Atr=01(Isoc) MxPS= 17 Ivl=1ms
I: If#= 1 Alt= 3 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=(none)
E: Ad=83(I) Atr=01(Isoc) MxPS= 25 Ivl=1ms
E: Ad=03(O) Atr=01(Isoc) MxPS= 25 Ivl=1ms
I: If#= 1 Alt= 4 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=(none)
E: Ad=83(I) Atr=01(Isoc) MxPS= 33 Ivl=1ms
E: Ad=03(O) Atr=01(Isoc) MxPS= 33 Ivl=1ms
I: If#= 1 Alt= 5 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=(none)
E: Ad=83(I) Atr=01(Isoc) MxPS= 49 Ivl=1ms
E: Ad=03(O) Atr=01(Isoc) MxPS= 49 Ivl=1ms

Signed-off-by: Dmitry Tunin <hanipouspilot@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
---
 drivers/bluetooth/ath3k.c | 2 ++
 drivers/bluetooth/btusb.c | 1 +
 2 files changed, 3 insertions(+)

diff --git a/drivers/bluetooth/ath3k.c b/drivers/bluetooth/ath3k.c
index 0e3978496339..73f5ad101e53 100644
--- a/drivers/bluetooth/ath3k.c
+++ b/drivers/bluetooth/ath3k.c
@@ -80,6 +80,7 @@ static struct usb_device_id ath3k_table[] = {
 	{ USB_DEVICE(0x0489, 0xe057) },
 	{ USB_DEVICE(0x0489, 0xe056) },
 	{ USB_DEVICE(0x0489, 0xe05f) },
+	{ USB_DEVICE(0x0489, 0xe076) },
 	{ USB_DEVICE(0x0489, 0xe078) },
 	{ USB_DEVICE(0x04c5, 0x1330) },
 	{ USB_DEVICE(0x04CA, 0x3004) },
@@ -135,6 +136,7 @@ static struct usb_device_id ath3k_blist_tbl[] = {
 	{ USB_DEVICE(0x0489, 0xe056), .driver_info = BTUSB_ATH3012 },
 	{ USB_DEVICE(0x0489, 0xe057), .driver_info = BTUSB_ATH3012 },
 	{ USB_DEVICE(0x0489, 0xe05f), .driver_info = BTUSB_ATH3012 },
+	{ USB_DEVICE(0x0489, 0xe076), .driver_info = BTUSB_ATH3012 },
 	{ USB_DEVICE(0x0489, 0xe078), .driver_info = BTUSB_ATH3012 },
 	{ USB_DEVICE(0x04c5, 0x1330), .driver_info = BTUSB_ATH3012 },
 	{ USB_DEVICE(0x04ca, 0x3004), .driver_info = BTUSB_ATH3012 },
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 070913737f44..a470fef99728 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -157,6 +157,7 @@ static struct usb_device_id blacklist_table[] = {
 	{ USB_DEVICE(0x0489, 0xe056), .driver_info = BTUSB_ATH3012 },
 	{ USB_DEVICE(0x0489, 0xe057), .driver_info = BTUSB_ATH3012 },
 	{ USB_DEVICE(0x0489, 0xe05f), .driver_info = BTUSB_ATH3012 },
+	{ USB_DEVICE(0x0489, 0xe076), .driver_info = BTUSB_ATH3012 },
 	{ USB_DEVICE(0x0489, 0xe078), .driver_info = BTUSB_ATH3012 },
 	{ USB_DEVICE(0x04c5, 0x1330), .driver_info = BTUSB_ATH3012 },
 	{ USB_DEVICE(0x04ca, 0x3004), .driver_info = BTUSB_ATH3012 },
-- 
2.4.3


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

end of thread, other threads:[~2015-07-30 12:13 UTC | newest]

Thread overview: 53+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-27  8:01 [patch added to the 3.12 stable tree] netfilter: nfnetlink_cthelper: Remove 'const' and '&' to avoid warnings Jiri Slaby
2015-07-27  8:01 ` [patch added to the 3.12 stable tree] Btrfs: make xattr replace operations atomic Jiri Slaby
2015-07-27  8:01 ` [patch added to the 3.12 stable tree] ARM: clk-imx6q: refine sata's parent Jiri Slaby
2015-07-27  8:01 ` [patch added to the 3.12 stable tree] KVM: nSVM: Check for NRIPS support before updating control field Jiri Slaby
2015-07-27  8:01 ` [patch added to the 3.12 stable tree] xfrm: release dst_orig in case of error in xfrm_lookup() Jiri Slaby
2015-07-27  8:01 ` [patch added to the 3.12 stable tree] uninline destroy_super(), consolidate alloc_super() Jiri Slaby
2015-07-27  8:01 ` [patch added to the 3.12 stable tree] get rid of s_files and files_lock Jiri Slaby
2015-07-27  8:01 ` [patch added to the 3.12 stable tree] revert "softirq: Add support for triggering softirq work on softirqs" Jiri Slaby
2015-07-27  8:04   ` Christoph Hellwig
2015-07-27  8:20     ` Jiri Slaby
2015-07-30 12:13       ` Jiri Slaby
2015-07-27  8:01 ` [patch added to the 3.12 stable tree] PCI: pciehp: Add hotplug_lock to serialize hotplug events Jiri Slaby
2015-07-27  8:01 ` [patch added to the 3.12 stable tree] arm64/mm: Remove hack in mmap randomize layout Jiri Slaby
2015-07-27  8:01 ` [patch added to the 3.12 stable tree] sparc: Use GFP_ATOMIC in ldc_alloc_exp_dring() as it can be called in softirq context Jiri Slaby
2015-07-27  8:01 ` [patch added to the 3.12 stable tree] bridge: fix multicast router rlist endless loop Jiri Slaby
2015-07-27  8:01 ` [patch added to the 3.12 stable tree] net: don't wait for order-3 page allocation Jiri Slaby
2015-07-27  8:01 ` [patch added to the 3.12 stable tree] sctp: fix ASCONF list handling Jiri Slaby
2015-07-27  8:01 ` [patch added to the 3.12 stable tree] bridge: fix br_stp_set_bridge_priority race conditions Jiri Slaby
2015-07-27  8:01 ` [patch added to the 3.12 stable tree] packet: read num_members once in packet_rcv_fanout() Jiri Slaby
2015-07-27  8:01 ` [patch added to the 3.12 stable tree] packet: avoid out of bounds read in round robin fanout Jiri Slaby
2015-07-27  8:01 ` [patch added to the 3.12 stable tree] neigh: do not modify unlinked entries Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] sctp: Fix race between OOTB responce and route removal Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] crypto: talitos - avoid memleak in talitos_alg_alloc() Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] Revert "crypto: talitos - convert to use be16_add_cpu()" Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] iommu/amd: Handle large pages correctly in free_pagetable Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] arm: KVM: force execution of HCPTR access on VM exit Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] powerpc/perf: Fix book3s kernel to userspace backtraces Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] x86/PCI: Use host bridge _CRS info on Foxconn K8M890-8237A Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] MIPS: Fix KVM guest fixmap address Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] KVM: x86: make vapics_in_nmi_mode atomic Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] fs: Fix S_NOSEC handling Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] vfs: Remove incorrect debugging WARN in prepend_path Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] vfs: Ignore unlocked mounts in fs_fully_visible Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] x86/PCI: Use host bridge _CRS info on systems with >32 bit addressing Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] rcu: Correctly handle non-empty Tiny RCU callback list with none ready Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] ipr: Increase default adapter init stage change timeout Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] Disable write buffering on Toshiba ToPIC95 Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] ALSA: hda - Add headset support to Acer Aspire V5 Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] ALSA: hda - Fix the dock headphone output on Fujitsu Lifebook E780 Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] ARC: add compiler barrier to LLSC based cmpxchg Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] arm64: Do not attempt to use init_mm in reset_context() Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] arm64: mm: Fix freeing of the wrong memmap entries with !SPARSEMEM_VMEMMAP Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] arm64: vdso: work-around broken ELF toolchains in Makefile Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] cpuidle / menu: Return (-1) if there are no suitable states Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] regmap: Fix regmap_bulk_read in BE mode Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] regmap: Fix possible shift overflow in regmap_field_init() Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] regulator: core: fix constraints output buffer Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] spi: pl022: Specify 'num-cs' property as required in devicetree binding Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] leds / PM: fix hibernation on arm when gpio-led used with CPU led trigger Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] mtd: fix: avoid race condition when accessing mtd->usecount Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] mtd: dc21285: use raw spinlock functions for nw_gpio_lock Jiri Slaby
2015-07-27  8:02 ` [patch added to the 3.12 stable tree] thermal: step_wise: fix: Prevent from binary overflow when trend is dropping Jiri Slaby
  -- strict thread matches above, loose matches on Subject: below --
2015-06-30 13:35 [patch added to the 3.12 stable tree] ath3k: Add support of 0489:e076 AR3012 device Jiri Slaby
2015-06-30 13:36 ` [patch added to the 3.12 stable tree] revert "softirq: Add support for triggering softirq work on softirqs" Jiri Slaby

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).