Title: [7929] trunk/net/ethernet/eth.c: print_mac hack attack
- Revision
- 7929
- Author
- vapier
- Date
- 2009-12-03 18:42:16 -0500 (Thu, 03 Dec 2009)
Log Message
print_mac hack attack
disable this crap:
net/ethernet/eth.c:404: warning: ?\226?\128?\152print_mac?\226?\128?\153 is deprecated (declared at net/ethernet/eth.c:400)
net/ethernet/eth.c:404: warning: ?\226?\128?\152print_mac?\226?\128?\153 is deprecated (declared at net/ethernet/eth.c:400)
Modified Paths
Diff
Modified: trunk/net/ethernet/eth.c (7928 => 7929)
--- trunk/net/ethernet/eth.c 2009-12-03 23:40:27 UTC (rev 7928)
+++ trunk/net/ethernet/eth.c 2009-12-03 23:42:16 UTC (rev 7929)
@@ -37,6 +37,7 @@
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
+#define print_mac __disable_print_mac_warning
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
@@ -60,6 +61,7 @@
#include <net/dsa.h>
#include <asm/uaccess.h>
#include <asm/system.h>
+#undef print_mac
__setup("ether=", netdev_boot_setup);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits