Hi Hector,
I love your patch! Yet something to improve:
[auto build test ERROR on drm/drm-next]
[also build test ERROR on v5.16-rc1]
[cannot apply to next-20211118]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Hector-Martin/drm-simpledrm-Appl...
base:
git://anongit.freedesktop.org/drm/drm drm-next
config: riscv-randconfig-r035-20211118 (attached as .config)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
c46becf500df2a7fb4b4fce16178a036c344315a)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
#
https://github.com/0day-ci/linux/commit/0be435c1fb3f0722a7099fee532925717...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Hector-Martin/drm-simpledrm-Apple-M1-DT-platform-support-fixes/20211117-230107
git checkout 0be435c1fb3f0722a7099fee532925717a67a42a
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir
ARCH=riscv SHELL=/bin/bash drivers/gpu/drm/tiny/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/gpu/drm/tiny/simpledrm.c:915:1: error: redefinition of
'__inittest'
fs_initcall(simpledrm_init);
^
include/linux/module.h:119:27: note: expanded from macro 'fs_initcall'
#define fs_initcall(fn) module_init(fn)
^
include/linux/module.h:131:42: note: expanded from macro 'module_init'
static inline initcall_t __maybe_unused __inittest(void) \
^
drivers/gpu/drm/tiny/simpledrm.c:899:1: note: previous definition is here
module_platform_driver(simpledrm_platform_driver);
^
include/linux/platform_device.h:252:2: note: expanded from macro
'module_platform_driver'
module_driver(__platform_driver, platform_driver_register, \
^
include/linux/device/driver.h:262:3: note: expanded from macro 'module_driver'
} \
^
include/linux/module.h:131:42: note: expanded from macro '\
module_init'
static inline initcall_t __maybe_unused __inittest(void) \
^
> drivers/gpu/drm/tiny/simpledrm.c:915:1: error: redefinition of
'init_module'
fs_initcall(simpledrm_init);
^
include/linux/module.h:119:27: note: expanded from macro 'fs_initcall'
#define fs_initcall(fn) module_init(fn)
^
include/linux/module.h:133:6: note: expanded from macro 'module_init'
int init_module(void) __copy(initfn) \
^
drivers/gpu/drm/tiny/simpledrm.c:899:1: note: previous definition is here
module_platform_driver(simpledrm_platform_driver);
^
include/linux/platform_device.h:252:2: note: expanded from macro
'module_platform_driver'
module_driver(__platform_driver, platform_driver_register, \
^
include/linux/device/driver.h:262:3: note: expanded from macro 'module_driver'
} \
^
include/linux/module.h:133:6: note: expanded from macro '\
module_init'
int init_module(void) __copy(initfn) \
^
2 errors generated.
vim +/__inittest +915 drivers/gpu/drm/tiny/simpledrm.c
914
915 fs_initcall(simpledrm_init);
916
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org