Patch "staging: emxx_udc: remove incorrect __init annotations" has been added to the 3.18-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
staging: emxx_udc: remove incorrect __init annotations
to the 3.18-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
staging-emxx_udc-remove-incorrect-__init-annotations.patch
and it can be found in the queue-3.18 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
4f3445067d5f78fb8d1970b02610f85c2f377ea4Mon Sep 17 00:00:00 2001
From: Arnd Bergmann <[email protected]>
Date: Fri, 16 Dec 2016 10:09:39 +0100
Subject: staging: emxx_udc: remove incorrect __init annotations
From: Arnd Bergmann <[email protected]>
commit 4f3445067d5f78fb8d1970b02610f85c2f377ea4 upstream.
The probe function is not marked __init, but some other functions are. This leads to a warning on older compilers (e.g. gcc-4.3), and can cause executing freed memory when built with those compilers:
WARNING: drivers/staging/emxx_udc/emxx_udc.o(.text+0x2d78): Section mismatch in reference from the function nbu2ss_drv_probe() to the function .init.text:nbu2ss_drv_contest_init()
This removes the annotations.
--- drivers/staging/emxx_udc/emxx_udc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/emxx_udc/emxx_udc.c +2 -2
@@ -3286,7 +3286,7 @@ static void __init nbu2ss_drv_set_ep_inf }/*-------------------------------------------------------------------------*/ -static void __init nbu2ss_drv_ep_init (struct nbu2ss_udc *udc) +static void nbu2ss_drv_ep_init (struct nbu2ss_udc *udc) {int i;
@@ -3302,7 +3302,7 @@ static void __init nbu2ss_drv_ep_init(st/*-------------------------------------------------------------------------*/ /* platform_driver */ -static int __init nbu2ss_drv_contest_init ( +static int nbu2ss_drv_contest_init (struct platform_device *pdev,struct nbu2ss_udc *udc) {
Patches currently in stable-queue which might be from [email protected] are
queue-3.18/staging-emxx_udc-remove-incorrect-__init-annotations.patch queue-3.18/mtd-cfi-reduce-stack-size.patch queue-3.18/tty-remove-platform_sysrq_reset_seq.patch queue-3.18/arm-8452-3-pj4-make-coprocessor-access-sequences-buildable-in-thumb2-mode.patch