]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
staging: emxx_udc: remove incorrect __init annotations
authorArnd Bergmann <arnd@arndb.de>
Fri, 16 Dec 2016 09:09:39 +0000 (10:09 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 20 Jun 2017 08:46:40 +0000 (10:46 +0200)
commitb0c0aa2ff15d68ee54cdff2d40d5d5dd645544e2
treedb80d5b17892bebe759d930576821600e22c885d
parent48141f33c1bd8c9ec223b865215e45d7fcb312d1
staging: emxx_udc: remove incorrect __init annotations

BugLink: http://bugs.launchpad.net/bugs/1691369
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.

Fixes: 33aa8d45a4fe ("staging: emxx_udc: Add Emma Mobile USB Gadget driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/staging/emxx_udc/emxx_udc.c