Add "name" field to struct device to allow human-readable hardware device
names. Add "dev" pointer in struct net_device to tie network interfaces back to a hardware device. Force natural alignment of data types in __table() macros. This seems to prevent gcc from taking the unilateral decision to occasionally increase their alignment (which screws up the table packing).
This commit is contained in:
+4
-2
@@ -6,8 +6,10 @@
|
||||
|
||||
#include "bios.h"
|
||||
|
||||
static struct console_driver console_drivers[0] __table_start ( console );
|
||||
static struct console_driver console_drivers_end[0] __table_end ( console );
|
||||
static struct console_driver console_drivers[0]
|
||||
__table_start ( struct console_driver, console );
|
||||
static struct console_driver console_drivers_end[0]
|
||||
__table_end ( struct console_driver, console );
|
||||
|
||||
/**
|
||||
* Write a single character to each console device.
|
||||
|
||||
Reference in New Issue
Block a user