if ((pos & 3) && cnt > 2) {
unsigned short val;
pci_read_config_word(dev, pos, &val);
- __put_user(cpu_to_le16(val), (unsigned short *) buf);
+ __put_user(cpu_to_le16(val), (unsigned short __user *) buf);
buf += 2;
pos += 2;
cnt -= 2;
while (cnt >= 4) {
unsigned int val;
pci_read_config_dword(dev, pos, &val);
- __put_user(cpu_to_le32(val), (unsigned int *) buf);
+ __put_user(cpu_to_le32(val), (unsigned int __user *) buf);
buf += 4;
pos += 4;
cnt -= 4;
if (cnt >= 2) {
unsigned short val;
pci_read_config_word(dev, pos, &val);
- __put_user(cpu_to_le16(val), (unsigned short *) buf);
+ __put_user(cpu_to_le16(val), (unsigned short __user *) buf);
buf += 2;
pos += 2;
cnt -= 2;
if ((pos & 3) && cnt > 2) {
unsigned short val;
- __get_user(val, (unsigned short *) buf);
+ __get_user(val, (unsigned short __user *) buf);
pci_write_config_word(dev, pos, le16_to_cpu(val));
buf += 2;
pos += 2;
while (cnt >= 4) {
unsigned int val;
- __get_user(val, (unsigned int *) buf);
+ __get_user(val, (unsigned int __user *) buf);
pci_write_config_dword(dev, pos, le32_to_cpu(val));
buf += 4;
pos += 4;
if (cnt >= 2) {
unsigned short val;
- __get_user(val, (unsigned short *) buf);
+ __get_user(val, (unsigned short __user *) buf);
pci_write_config_word(dev, pos, le16_to_cpu(val));
buf += 2;
pos += 2;