Re: [PATCH v2] staging: rtl8712: Use ether_addr_copy() instead of memcpy()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



#include <stdio.h>

struct foo {
	unsigned char one;
	unsigned char two;
	unsigned char three;
	unsigned char mac_addr[6];
	unsigned short channel_plan;
};

int main(void)
{
	struct foo *p = NULL;

	printf("%x\n", &p->mac_addr);

	return 0;
}

This program does not print an even number so the alignment is off.

regards,
dan carpenter
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux