[ifmgmt] Optimise prototype for ifcommon_exec()
ifcommon_exec() was long-ago marked as __attribute__((regparm(2))) in order to minimise the size of functions that call into it. Since then, gPXE has added -mregparm=3 as a general compilation option, and this "optimisation" is now counter-productive. Change (and simplify) the prototype to minimise code size given the current compilation conditions.
This commit is contained in:
@@ -23,8 +23,8 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
|
||||
struct net_device;
|
||||
|
||||
extern int ifcommon_exec ( int ( * payload ) ( struct net_device * ),
|
||||
const char *verb, int argc, char **argv )
|
||||
__attribute__ (( regparm ( 2 ) ));
|
||||
extern int ifcommon_exec ( int argc, char **argv,
|
||||
int ( * payload ) ( struct net_device * ),
|
||||
const char *verb );
|
||||
|
||||
#endif /* _IFMGMT_CMD_H */
|
||||
|
||||
Reference in New Issue
Block a user