![Peter Huewe](/assets/img/avatar_default.png)
sparse complains about the following functions ozhcd.c:330:20: warning: symbol 'oz_uncancel_urb' was not declared. Should it be static? ozhcd.c:420:6: warning: symbol 'oz_complete_buffered_urb' was not declared. Should it be static? ozmain.c:25:6: warning: symbol 'g_net_dev' was not declared. Should it be static? ozevent.c:95:5: warning: symbol 'oz_events_open' was not declared. Should it be static? ozevent.c:110:5: warning: symbol 'oz_events_release' was not declared. Should it be static? ozevent.c:121:9: warning: symbol 'oz_events_read' was not declared. Should it be static? ozevent.c:160:30: warning: symbol 'oz_events_fops' was not declared. Should it be static? ozcdev.c:47:14: warning: symbol 'g_oz_class' was not declared. Should it be static? ozcdev.c:74:5: warning: symbol 'oz_cdev_open' was not declared. Should it be static? ozcdev.c:86:5: warning: symbol 'oz_cdev_release' was not declared. Should it be static? ozcdev.c:94:9: warning: symbol 'oz_cdev_read' was not declared. Should it be static? ozcdev.c:146:9: warning: symbol 'oz_cdev_write' was not declared. Should it be static? ozcdev.c:236:6: warning: symbol 'oz_cdev_ioctl' was not declared. Should it be static? ozcdev.c:300:14: warning: symbol 'oz_cdev_poll' was not declared. Should it be static? ozcdev.c:321:30: warning: symbol 'oz_fops' was not declared. Should it be static? ozproto.c:958:6: warning: context imbalance in 'oz_polling_lock_bh' - wrong count at exit ozproto.c:964:6: warning: context imbalance in 'oz_polling_unlock_bh' - unexpected unlock ozusbsvc1.c:308:6: warning: symbol 'oz_usb_handle_ep_data' was not declared. Should it be static? ozpd.c:410:6: warning: symbol 'oz_set_more_bit' was not declared. Should it be static? ozpd.c:418:6: warning: symbol 'oz_set_last_pkt_nb' was not declared. Should it be static? -> add static keyword to silence the warning and make sparse happy. Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
65 lines
1.9 KiB
C
65 lines
1.9 KiB
C
/* -----------------------------------------------------------------------------
|
|
* Copyright (c) 2011 Ozmo Inc
|
|
* Released under the GNU General Public License Version 2 (GPLv2).
|
|
* -----------------------------------------------------------------------------
|
|
*/
|
|
#include <linux/init.h>
|
|
#include <linux/module.h>
|
|
#include <linux/timer.h>
|
|
#include <linux/sched.h>
|
|
#include <linux/netdevice.h>
|
|
#include <linux/errno.h>
|
|
#include <linux/ieee80211.h>
|
|
#include "ozconfig.h"
|
|
#include "ozpd.h"
|
|
#include "ozproto.h"
|
|
#include "ozcdev.h"
|
|
#include "oztrace.h"
|
|
#include "ozevent.h"
|
|
/*------------------------------------------------------------------------------
|
|
* The name of the 802.11 mac device. Empty string is the default value but a
|
|
* value can be supplied as a parameter to the module. An empty string means
|
|
* bind to nothing. '*' means bind to all netcards - this includes non-802.11
|
|
* netcards. Bindings can be added later using an IOCTL.
|
|
*/
|
|
static char *g_net_dev = "";
|
|
/*------------------------------------------------------------------------------
|
|
* Context: process
|
|
*/
|
|
static int __init ozwpan_init(void)
|
|
{
|
|
oz_event_init();
|
|
oz_cdev_register();
|
|
oz_protocol_init(g_net_dev);
|
|
oz_app_enable(OZ_APPID_USB, 1);
|
|
oz_apps_init();
|
|
#ifdef CONFIG_DEBUG_FS
|
|
oz_debugfs_init();
|
|
#endif
|
|
return 0;
|
|
}
|
|
/*------------------------------------------------------------------------------
|
|
* Context: process
|
|
*/
|
|
static void __exit ozwpan_exit(void)
|
|
{
|
|
oz_protocol_term();
|
|
oz_apps_term();
|
|
oz_cdev_deregister();
|
|
oz_event_term();
|
|
#ifdef CONFIG_DEBUG_FS
|
|
oz_debugfs_remove();
|
|
#endif
|
|
}
|
|
/*------------------------------------------------------------------------------
|
|
*/
|
|
module_param(g_net_dev, charp, S_IRUGO);
|
|
module_init(ozwpan_init);
|
|
module_exit(ozwpan_exit);
|
|
|
|
MODULE_AUTHOR("Chris Kelly");
|
|
MODULE_DESCRIPTION("Ozmo Devices USB over WiFi hcd driver");
|
|
MODULE_VERSION("1.0.13");
|
|
MODULE_LICENSE("GPL");
|
|
|