Files
s390-tools/zpcimon/optics_sclp.h
Niklas Schnelle 7586a1ad59 zpcimon: Add missing include for __packed attribute
The __packed attribute is used without including the necessary
zt_common.h header, add it. Note that luckily the struct as it currently
exists doesn't actually required __packed as the natural alignment
leaves no holes. Still if in the future the reserved field is split up
it would need it and this keeps it consistent with the kernel
declaration.

Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
2026-07-24 18:21:51 +02:00

23 lines
471 B
C

#include <stdint.h>
#include "lib/pci_list.h"
#include "lib/zt_common.h"
#include "optics_info.h"
struct sclp_optics_data {
/* Status */
uint32_t module_present : 1;
uint32_t rx_los : 1;
uint32_t tx_fault : 1;
uint32_t reserved_status : 29;
/* Data Identifier */
uint32_t data_identifier;
/* Reserved */
uint64_t reserved[3];
/* Additional Log Data */
uint8_t data[];
} __packed;
int sclp_issue_optics_report(struct zpci_dev *zdev, struct optics *oi);