PTR_ALIGN(sizeof(uint32_t) * num_page_sizes) +\r
PTR_ALIGN(sizeof(ib_port_attr_t) * num_ports)+\r
PTR_ALIGN(MTHCA_BOARD_ID_LEN)+\r
- sizeof(uplink_info_t); /* uplink info */\r
+ PTR_ALIGN(sizeof(uplink_info_t)); /* uplink info */\r
\r
// get port properties\r
for (port_num = 0; port_num <= end_port(ib_dev) - start_port(ib_dev); ++port_num) {\r
cl_memcpy(last_p,to_mdev(ib_dev)->board_id, MTHCA_BOARD_ID_LEN);\r
last_p += PTR_ALIGN(MTHCA_BOARD_ID_LEN);\r
*(uplink_info_t*)last_p = to_mdev(ib_dev)->uplink_info;\r
- last_p += sizeof(uplink_info_t); /* uplink info */\r
+ last_p += PTR_ALIGN(sizeof(uplink_info_t)); /* uplink info */\r
\r
// Separate the loops to ensure that table pointers are always setup\r
for (port_num = 0; port_num < num_ports; port_num++) {\r