Two of the three define_fbtft_write_reg() instantiations pass an empty modifier argument, which checkpatch flags as a fragile empty macro argument. Give the no-op case an explicit name instead of leaving it blank.
No functional change. Link: https://lkml.iu.edu/hypermail/linux/kernel/2602.0/01917.html Signed-off-by: anshika <[email protected]> --- drivers/staging/fbtft/fbtft-bus.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/fbtft/fbtft-bus.c b/drivers/staging/fbtft/fbtft-bus.c index 30e436ff1..e03aa251c 100644 --- a/drivers/staging/fbtft/fbtft-bus.c +++ b/drivers/staging/fbtft/fbtft-bus.c @@ -10,6 +10,7 @@ * void (*write_reg)(struct fbtft_par *par, int len, ...); * *****************************************************************************/ +#define cpu_to_cpu_endian(x) (x) #define define_fbtft_write_reg(func, buffer_type, data_type, modifier) \ void func(struct fbtft_par *par, int len, ...) \ @@ -62,9 +63,9 @@ out: \ } \ EXPORT_SYMBOL(func); -define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8, ) +define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8, cpu_to_cpu_endian) define_fbtft_write_reg(fbtft_write_reg16_bus8, __be16, u16, cpu_to_be16) -define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16, ) +define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16, cpu_to_cpu_endian) void fbtft_write_reg8_bus9(struct fbtft_par *par, int len, ...) { -- 2.34.1
