Skip to content

Commit b616714

Browse files
dpenklergregkh
authored andcommitted
staging: gpib: Change // comments in uapi header file
A ppc64 randconfig build complained about the // comments in the uapi header file: error: // comments are not allowed in this language [-Werror,-Wcomment] Change the // comments to /* */ format. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202511141203.sbp27oAR-lkp@intel.com/ Signed-off-by: Dave Penkler <dpenkler@gmail.com> Link: https://patch.msgid.link/20251117144021.23569-2-dpenkler@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent bd10aca commit b616714

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

drivers/staging/gpib/uapi/gpib_ioctl.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ struct gpib_serial_poll_ioctl {
4040
__u32 pad;
4141
__s32 sad;
4242
__u8 status_byte;
43-
__u8 padding[3]; // align to 32 bit boundary
43+
__u8 padding[3]; /* align to 32 bit boundary */
4444
};
4545

4646
struct gpib_eos_ioctl {
@@ -80,7 +80,7 @@ struct gpib_board_info_ioctl {
8080
__u32 t1_delay;
8181
unsigned ist : 1;
8282
unsigned no_7_bit_eos : 1;
83-
unsigned padding :30; // align to 32 bit boundary
83+
unsigned padding :30; /* align to 32 bit boundary */
8484
};
8585

8686
struct gpib_select_pci_ioctl {
@@ -92,7 +92,7 @@ struct gpib_ppoll_config_ioctl {
9292
__u8 config;
9393
unsigned set_ist : 1;
9494
unsigned clear_ist : 1;
95-
unsigned padding :22; // align to 32 bit boundary
95+
unsigned padding :22; /* align to 32 bit boundary */
9696
};
9797

9898
struct gpib_pad_ioctl {
@@ -105,15 +105,15 @@ struct gpib_sad_ioctl {
105105
__s32 sad;
106106
};
107107

108-
// select a piece of hardware to attach by its sysfs device path
108+
/* select a piece of hardware to attach by its sysfs device path */
109109
struct gpib_select_device_path_ioctl {
110110
char device_path[0x1000];
111111
};
112112

113-
// update status byte and request service
113+
/* update status byte and request service */
114114
struct gpib_request_service2 {
115115
__u8 status_byte;
116-
__u8 padding[3]; // align to 32 bit boundary
116+
__u8 padding[3]; /* align to 32 bit boundary */
117117
__s32 new_reason_for_service;
118118
};
119119

@@ -160,7 +160,7 @@ enum gpib_ioctl {
160160
IBPP2_SET = _IOW(GPIB_CODE, 40, __s16),
161161
IBPP2_GET = _IOR(GPIB_CODE, 41, __s16),
162162
IBSELECT_DEVICE_PATH = _IOW(GPIB_CODE, 43, struct gpib_select_device_path_ioctl),
163-
// 44 was IBSELECT_SERIAL_NUMBER
163+
/* 44 was IBSELECT_SERIAL_NUMBER */
164164
IBRSV2 = _IOW(GPIB_CODE, 45, struct gpib_request_service2)
165165
};
166166

0 commit comments

Comments
 (0)