Summary: | DAHLIN-00077: implicit declaration of function 'module_refcount' when building dahdi | ||
Reporter: | Shaun Ruffell (sruffell) | Labels: | |
Date Opened: | 2009-02-04 09:40:33.000-0600 | Date Closed: | 2009-02-09 00:03:27.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Astribank (xpp) |
Versions: | 2.1.0.4 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Attachments: | ||
Description: | When building dahdi-linux 2.1.0.4 a user received the following error /usr/src/asterisk/1.6/dahdi-linux-2.1.0.4/drivers/dahdi/xpp/xproto.c: In function 'xproto_get': /usr/src/asterisk/1.6/dahdi-linux-2.1.0.4/drivers/dahdi/xpp/xproto.c:96: error: implicit declaration of function 'module_refcount' make[3]: *** This was since his kernel did not define CONFIG_MODULE_UNLOAD and module_refcount is only defined when CONFIG_MODULE_UNLOAD is defined. See line 391 in http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=include/linux/module.h;h=f3b8329eb5b877d7233ab66d566dd280fc78536c;hb=HEAD | ||
Comments: | By: Digium Subversion (svnbot) 2009-02-08 23:58:56.000-0600 Repository: zaptel Revision: 4625 U branches/1.4/kernel/xpp/xproto.c ------------------------------------------------------------------------ r4625 | tzafrir | 2009-02-08 23:58:55 -0600 (Sun, 08 Feb 2009) | 6 lines Fix building Zaptel with module unloading disabled As moduel_refcount is only used for debugging, disable it in this non-common case. (Issue DAHLIN-77) ------------------------------------------------------------------------ http://svn.digium.com/view/zaptel?view=rev&revision=4625 By: Digium Subversion (svnbot) 2009-02-09 00:03:26.000-0600 Repository: dahdi Revision: 5987 U linux/trunk/drivers/dahdi/xpp/xproto.c ------------------------------------------------------------------------ r5987 | tzafrir | 2009-02-09 00:03:26 -0600 (Mon, 09 Feb 2009) | 6 lines Fix building DAHDI with module unloading disabled As moduel_refcount is only used for debugging, disable it in this non-common case. (Closes issue DAHLIN-77) ------------------------------------------------------------------------ http://svn.digium.com/view/dahdi?view=rev&revision=5987 |