[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210180435.2LfoESEO-lkp@intel.com>
Date: Tue, 18 Oct 2022 04:13:06 +0800
From: kernel test robot <lkp@...el.com>
To: Asahi Lina <lina@...hilina.net>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Hector Martin <marcan@...can.st>
Subject: [asahilinux:bits/010-mailbox 17/21]
drivers/soc/apple/rtkit.c:937:54: error: 'APPLE_RTKIT_PWR_STATE_INIT'
undeclared; did you mean 'APPLE_RTKIT_PWR_STATE_ON'?
tree: https://github.com/AsahiLinux/linux bits/010-mailbox
head: 80fa09299bbf5d50b2ccd5eaae09e85dc3fcb7d4
commit: a6f1aeb7b6d4719120c2fc65c99960b60858a381 [17/21] soc: apple: rtkit: Check for failure to send mgmt messages & log
config: arc-randconfig-r043-20221017
compiler: arceb-elf-gcc (GCC) 12.1.0
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
# https://github.com/AsahiLinux/linux/commit/a6f1aeb7b6d4719120c2fc65c99960b60858a381
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux bits/010-mailbox
git checkout a6f1aeb7b6d4719120c2fc65c99960b60858a381
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/soc/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from <command-line>:
drivers/soc/apple/rtkit.c: In function 'apple_rtkit_wake':
>> drivers/soc/apple/rtkit.c:937:54: error: 'APPLE_RTKIT_PWR_STATE_INIT' undeclared (first use in this function); did you mean 'APPLE_RTKIT_PWR_STATE_ON'?
937 | msg = FIELD_PREP(APPLE_RTKIT_MGMT_PWR_STATE, APPLE_RTKIT_PWR_STATE_INIT);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:337:23: note: in definition of macro '__compiletime_assert'
337 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:357:9: note: in expansion of macro '_compiletime_assert'
357 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:68:17: note: in expansion of macro 'BUILD_BUG_ON_MSG'
68 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
114 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \
| ^~~~~~~~~~~~~~~~
drivers/soc/apple/rtkit.c:937:15: note: in expansion of macro 'FIELD_PREP'
937 | msg = FIELD_PREP(APPLE_RTKIT_MGMT_PWR_STATE, APPLE_RTKIT_PWR_STATE_INIT);
| ^~~~~~~~~~
drivers/soc/apple/rtkit.c:937:54: note: each undeclared identifier is reported only once for each function it appears in
937 | msg = FIELD_PREP(APPLE_RTKIT_MGMT_PWR_STATE, APPLE_RTKIT_PWR_STATE_INIT);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:337:23: note: in definition of macro '__compiletime_assert'
337 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:357:9: note: in expansion of macro '_compiletime_assert'
357 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:68:17: note: in expansion of macro 'BUILD_BUG_ON_MSG'
68 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
114 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \
| ^~~~~~~~~~~~~~~~
drivers/soc/apple/rtkit.c:937:15: note: in expansion of macro 'FIELD_PREP'
937 | msg = FIELD_PREP(APPLE_RTKIT_MGMT_PWR_STATE, APPLE_RTKIT_PWR_STATE_INIT);
| ^~~~~~~~~~
vim +937 drivers/soc/apple/rtkit.c
919
920 int apple_rtkit_wake(struct apple_rtkit *rtk)
921 {
922 u64 msg;
923 int ret;
924
925 if (apple_rtkit_is_running(rtk))
926 return -EINVAL;
927
928 reinit_completion(&rtk->iop_pwr_ack_completion);
929
930 /*
931 * Use open-coded apple_rtkit_set_iop_power_state since apple_rtkit_boot
932 * will wait for the completion anyway.
933 */
934 msg = FIELD_PREP(APPLE_RTKIT_MGMT_PWR_STATE, APPLE_RTKIT_PWR_STATE_ON);
935 apple_rtkit_management_send(rtk, APPLE_RTKIT_MGMT_SET_IOP_PWR_STATE,
936 msg);
> 937 msg = FIELD_PREP(APPLE_RTKIT_MGMT_PWR_STATE, APPLE_RTKIT_PWR_STATE_INIT);
938 ret = apple_rtkit_management_send(rtk, APPLE_RTKIT_MGMT_SET_IOP_PWR_STATE,
939 msg);
940 if (ret)
941 return ret;
942
943 return apple_rtkit_boot(rtk);
944 }
945 EXPORT_SYMBOL_GPL(apple_rtkit_wake);
946
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (139728 bytes)
Powered by blists - more mailing lists