Skip to content

Commit 1980bfa

Browse files
committed
media: dvbdev: fix building on ia64
Not sure why, but, on ia64, with Linaro's gcc 7.3 compiler, using #ifdef (CONFIG_I2C) is not OK. So, replace it by IS_ENABLED(CONFIG_I2C), in order to fix the builds there. Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
1 parent 779c79d commit 1980bfa

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/media/dvb-core/dvbdev.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ int dvb_usercopy(struct file *file,
942942
return err;
943943
}
944944

945-
#ifdef CONFIG_I2C
945+
#if IS_ENABLED(CONFIG_I2C)
946946
struct i2c_client *dvb_module_probe(const char *module_name,
947947
const char *name,
948948
struct i2c_adapter *adap,

‎include/media/dvbdev.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ long dvb_generic_ioctl(struct file *file,
358358
int dvb_usercopy(struct file *file, unsigned int cmd, unsigned long arg,
359359
int (*func)(struct file *file, unsigned int cmd, void *arg));
360360

361-
#ifdef CONFIG_I2C
361+
#if IS_ENABLED(CONFIG_I2C)
362362

363363
struct i2c_adapter;
364364
struct i2c_client;

0 commit comments

Comments
 (0)