[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:
Michael Brown
2009-06-28 20:24:54 +01:00
parent ee1d315ac0
commit 6e564323e0
2 changed files with 12 additions and 12 deletions
+3 -3
View File
@@ -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 */