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.

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>

authored by

Dave Penkler and committed by
Greg Kroah-Hartman
b6167146 bd10acae

+7 -7
+7 -7
drivers/staging/gpib/uapi/gpib_ioctl.h
··· 40 40 __u32 pad; 41 41 __s32 sad; 42 42 __u8 status_byte; 43 - __u8 padding[3]; // align to 32 bit boundary 43 + __u8 padding[3]; /* align to 32 bit boundary */ 44 44 }; 45 45 46 46 struct gpib_eos_ioctl { ··· 80 80 __u32 t1_delay; 81 81 unsigned ist : 1; 82 82 unsigned no_7_bit_eos : 1; 83 - unsigned padding :30; // align to 32 bit boundary 83 + unsigned padding :30; /* align to 32 bit boundary */ 84 84 }; 85 85 86 86 struct gpib_select_pci_ioctl { ··· 92 92 __u8 config; 93 93 unsigned set_ist : 1; 94 94 unsigned clear_ist : 1; 95 - unsigned padding :22; // align to 32 bit boundary 95 + unsigned padding :22; /* align to 32 bit boundary */ 96 96 }; 97 97 98 98 struct gpib_pad_ioctl { ··· 105 105 __s32 sad; 106 106 }; 107 107 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 */ 109 109 struct gpib_select_device_path_ioctl { 110 110 char device_path[0x1000]; 111 111 }; 112 112 113 - // update status byte and request service 113 + /* update status byte and request service */ 114 114 struct gpib_request_service2 { 115 115 __u8 status_byte; 116 - __u8 padding[3]; // align to 32 bit boundary 116 + __u8 padding[3]; /* align to 32 bit boundary */ 117 117 __s32 new_reason_for_service; 118 118 }; 119 119 ··· 160 160 IBPP2_SET = _IOW(GPIB_CODE, 40, __s16), 161 161 IBPP2_GET = _IOR(GPIB_CODE, 41, __s16), 162 162 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 */ 164 164 IBRSV2 = _IOW(GPIB_CODE, 45, struct gpib_request_service2) 165 165 }; 166 166