mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 13:46:25 +00:00
scst/include/backport.h: Suppress a compiler warning
Avoid that building SCST with gcc version 8 or later againstkernel v4.14 or before triggers a compiler warning about casting a function pointer to an incompatible type. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7881 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1004,7 +1004,7 @@ struct t10_pi_tuple {
|
||||
#undef DEFINE_TIMER
|
||||
#define DEFINE_TIMER(_name, _function) \
|
||||
struct timer_list _name = TIMER_INITIALIZER( \
|
||||
(void (*)(unsigned long))(_function), 0, \
|
||||
(void (*)(unsigned long))(unsigned long)(_function), 0, \
|
||||
(unsigned long)&(_name))
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user