mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 05:26:51 +07:00
0cbb4f9c69
It seems that we shouldn't try to include the include/linux/ path to
unaligned functions. Just include asm/unaligned.h instead so that we
don't run into compilation warnings like below.
In file included from drivers/platform/chrome/wilco_ec/properties.c:8:0:
include/linux/unaligned/le_memmove.h:7:19: error: redefinition of 'get_unaligned_le16'
static inline u16 get_unaligned_le16(const void *p)
^~~~~~~~~~~~~~~~~~
In file included from arch/ia64/include/asm/unaligned.h:5:0,
from arch/ia64/include/asm/io.h:23,
from arch/ia64/include/asm/smp.h:21,
from include/linux/smp.h:68,
from include/linux/percpu.h:7,
from include/linux/arch_topology.h:9,
from include/linux/topology.h:30,
from include/linux/gfp.h:9,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:18,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/platform_data/wilco-ec.h:11,
from drivers/platform/chrome/wilco_ec/properties.c:6:
include/linux/unaligned/le_struct.h:7:19: note: previous definition of 'get_unaligned_le16' was here
static inline u16 get_unaligned_le16(const void *p)
^~~~~~~~~~~~~~~~~~
Reported-by: kbuild test robot <lkp@intel.com>
Fixes:
|
||
---|---|---|
.. | ||
wilco_ec | ||
chromeos_laptop.c | ||
chromeos_pstore.c | ||
chromeos_tbmc.c | ||
cros_ec_chardev.c | ||
cros_ec_debugfs.c | ||
cros_ec_i2c.c | ||
cros_ec_ishtp.c | ||
cros_ec_lightbar.c | ||
cros_ec_lpc_mec.c | ||
cros_ec_lpc_mec.h | ||
cros_ec_lpc.c | ||
cros_ec_proto.c | ||
cros_ec_rpmsg.c | ||
cros_ec_sensorhub.c | ||
cros_ec_spi.c | ||
cros_ec_sysfs.c | ||
cros_ec_trace.c | ||
cros_ec_trace.h | ||
cros_ec_vbc.c | ||
cros_ec.c | ||
cros_ec.h | ||
cros_kbd_led_backlight.c | ||
cros_usbpd_logger.c | ||
Kconfig | ||
Makefile |