Conflict resolution for function name set_endian when building for powerpc
The name changed to gdm_set_endian
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Won Kang <wonkang@gctsemi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
#include <linux/slab.h>
#include "gdm_endian.h"
-void set_endian(struct gdm_endian *ed, u8 dev_endian)
+void gdm_set_endian(struct gdm_endian *ed, u8 dev_endian)
{
u8 a[2] = {0x12, 0x34};
u8 b[2] = {0, };
u8 host_ed;
};
-void set_endian(struct gdm_endian *ed, u8 dev_endian);
+void gdm_set_endian(struct gdm_endian *ed, u8 dev_endian);
u16 gdm_cpu_to_dev16(struct gdm_endian *ed, u16 x);
u16 gdm_dev16_to_cpu(struct gdm_endian *ed, u16 x);
u32 gdm_cpu_to_dev32(struct gdm_endian *ed, u32 x);
/* List up hosts with big endians, otherwise, defaults to little endian */
if (idProduct == PID_GDM7243)
- set_endian(&udev->gdm_ed, ENDIANNESS_BIG);
+ gdm_set_endian(&udev->gdm_ed, ENDIANNESS_BIG);
else
- set_endian(&udev->gdm_ed, ENDIANNESS_LITTLE);
+ gdm_set_endian(&udev->gdm_ed, ENDIANNESS_LITTLE);
ret = request_mac_address(udev);
if (ret < 0) {