提交 41630959 编写于 作者: L Linus Torvalds

Merge branch 'ibft-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft-2.6

* 'ibft-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft-2.6:
  ibft: Update MAINTAINERS file.
  drivers/firmware/iscsi_ibft.c: remove NIPQUAD_FMT, use %pI4
...@@ -2410,6 +2410,12 @@ L: virtualization@lists.linux-foundation.org ...@@ -2410,6 +2410,12 @@ L: virtualization@lists.linux-foundation.org
S: Maintained S: Maintained
F: drivers/char/virtio_console.c F: drivers/char/virtio_console.c
iSCSI BOOT FIRMWARE TABLE (iBFT) DRIVER
M: Peter Jones <pjones@redhat.com>
M: Konrad Rzeszutek Wilk <konrad@kernel.org>
S: Maintained
F: drivers/firmware/iscsi_ibft*
GSPCA FINEPIX SUBDRIVER GSPCA FINEPIX SUBDRIVER
M: Frank Zago <frank@zago.net> M: Frank Zago <frank@zago.net>
L: linux-media@vger.kernel.org L: linux-media@vger.kernel.org
......
...@@ -381,7 +381,7 @@ static ssize_t ibft_attr_show_nic(struct ibft_kobject *entry, ...@@ -381,7 +381,7 @@ static ssize_t ibft_attr_show_nic(struct ibft_kobject *entry,
void *ibft_loc = entry->header; void *ibft_loc = entry->header;
char *str = buf; char *str = buf;
char *mac; char *mac;
int val; __be32 val;
if (!nic) if (!nic)
return 0; return 0;
...@@ -397,10 +397,8 @@ static ssize_t ibft_attr_show_nic(struct ibft_kobject *entry, ...@@ -397,10 +397,8 @@ static ssize_t ibft_attr_show_nic(struct ibft_kobject *entry,
str += sprintf_ipaddr(str, nic->ip_addr); str += sprintf_ipaddr(str, nic->ip_addr);
break; break;
case ibft_eth_subnet_mask: case ibft_eth_subnet_mask:
val = ~((1 << (32-nic->subnet_mask_prefix))-1); val = cpu_to_be32(~((1 << (32-nic->subnet_mask_prefix))-1));
str += sprintf(str, NIPQUAD_FMT, str += sprintf(str, "%pI4", &val);
(u8)(val >> 24), (u8)(val >> 16),
(u8)(val >> 8), (u8)(val));
break; break;
case ibft_eth_origin: case ibft_eth_origin:
str += sprintf(str, "%d\n", nic->origin); str += sprintf(str, "%d\n", nic->origin);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册