Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ibmaem endianness annotations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Al Viro and committed by
Linus Torvalds
a064d5bd 64e9159f

+6 -6
+6 -6
drivers/hwmon/ibmaem.c
··· 189 189 struct aem_find_firmware_req { 190 190 struct aem_iana_id id; 191 191 u8 rsvd; 192 - u16 index; 193 - u16 module_type_id; 192 + __be16 index; 193 + __be16 module_type_id; 194 194 } __packed; 195 195 196 196 struct aem_find_firmware_resp { ··· 202 202 struct aem_find_instance_req { 203 203 struct aem_iana_id id; 204 204 u8 instance_number; 205 - u16 module_type_id; 205 + __be16 module_type_id; 206 206 } __packed; 207 207 208 208 struct aem_find_instance_resp { ··· 444 444 } 445 445 case 2: { 446 446 u16 *x = buf; 447 - *x = be16_to_cpup((u16 *)rs_resp->bytes); 447 + *x = be16_to_cpup((__be16 *)rs_resp->bytes); 448 448 break; 449 449 } 450 450 case 4: { 451 451 u32 *x = buf; 452 - *x = be32_to_cpup((u32 *)rs_resp->bytes); 452 + *x = be32_to_cpup((__be32 *)rs_resp->bytes); 453 453 break; 454 454 } 455 455 case 8: { 456 456 u64 *x = buf; 457 - *x = be64_to_cpup((u64 *)rs_resp->bytes); 457 + *x = be64_to_cpup((__be64 *)rs_resp->bytes); 458 458 break; 459 459 } 460 460 }