tree: https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git wip-inline-encryption head: 3455f60bc837b8b07c981de9f2cde8d757976433 commit: 89e6d5477a78f3b0577c34a470dde58047858a65 [9974/9999] soc: qcom: rpmh: Allow RPMH driver to be loaded as a module config: x86_64-allmodconfig (attached as .config) compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project ef455a55bcf2cfea04a99c361b182ad18b7f03f1) 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 x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu git checkout 89e6d5477a78f3b0577c34a470dde58047858a65 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/soc/qcom/rpmh-rsc.c:491:3: error: implicit declaration of function 'trace_rpmh_send_msg_rcuidle' [-Werror,-Wimplicit-function-declaration] trace_rpmh_send_msg_rcuidle(drv, tcs_id, j, msgid, cmd); ^ drivers/soc/qcom/rpmh-rsc.c:491:3: note: did you mean 'trace_rpmh_send_msg_enabled'? drivers/soc/qcom/./trace-rpmh.h:42:1: note: 'trace_rpmh_send_msg_enabled' declared here TRACE_EVENT(rpmh_send_msg, ^ include/linux/tracepoint.h:512:2: note: expanded from macro 'TRACE_EVENT' DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) ^ include/linux/tracepoint.h:376:2: note: expanded from macro 'DECLARE_TRACE' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^ include/linux/tracepoint.h:271:2: note: expanded from macro '__DECLARE_TRACE' trace_##name##_enabled(void) \ ^ :171:1: note: expanded from here trace_rpmh_send_msg_enabled ^ 1 error generated. vim +/trace_rpmh_send_msg_rcuidle +491 drivers/soc/qcom/rpmh-rsc.c 658628e7ef78e8 Lina Iyer 2018-06-20 455 e40b0c1628f279 Douglas Anderson 2020-04-13 456 /** e40b0c1628f279 Douglas Anderson 2020-04-13 457 * __tcs_buffer_write() - Write to TCS hardware from a request; don't trigger. e40b0c1628f279 Douglas Anderson 2020-04-13 458 * @drv: The controller. e40b0c1628f279 Douglas Anderson 2020-04-13 459 * @tcs_id: The global ID of this TCS. e40b0c1628f279 Douglas Anderson 2020-04-13 460 * @cmd_id: The index within the TCS to start writing. e40b0c1628f279 Douglas Anderson 2020-04-13 461 * @msg: The message we want to send, which will contain several addr/data e40b0c1628f279 Douglas Anderson 2020-04-13 462 * pairs to program (but few enough that they all fit in one TCS). e40b0c1628f279 Douglas Anderson 2020-04-13 463 * e40b0c1628f279 Douglas Anderson 2020-04-13 464 * This is used for all types of transfers (active, sleep, and wake). e40b0c1628f279 Douglas Anderson 2020-04-13 465 */ 658628e7ef78e8 Lina Iyer 2018-06-20 466 static void __tcs_buffer_write(struct rsc_drv *drv, int tcs_id, int cmd_id, 658628e7ef78e8 Lina Iyer 2018-06-20 467 const struct tcs_request *msg) 658628e7ef78e8 Lina Iyer 2018-06-20 468 { 658628e7ef78e8 Lina Iyer 2018-06-20 469 u32 msgid, cmd_msgid; 658628e7ef78e8 Lina Iyer 2018-06-20 470 u32 cmd_enable = 0; 658628e7ef78e8 Lina Iyer 2018-06-20 471 u32 cmd_complete; 658628e7ef78e8 Lina Iyer 2018-06-20 472 struct tcs_cmd *cmd; 658628e7ef78e8 Lina Iyer 2018-06-20 473 int i, j; 658628e7ef78e8 Lina Iyer 2018-06-20 474 658628e7ef78e8 Lina Iyer 2018-06-20 475 cmd_msgid = CMD_MSGID_LEN; 658628e7ef78e8 Lina Iyer 2018-06-20 476 cmd_msgid |= msg->wait_for_compl ? CMD_MSGID_RESP_REQ : 0; 658628e7ef78e8 Lina Iyer 2018-06-20 477 cmd_msgid |= CMD_MSGID_WRITE; 658628e7ef78e8 Lina Iyer 2018-06-20 478 3b5e3d50f83a37 Douglas Anderson 2020-04-13 479 cmd_complete = read_tcs_reg(drv, RSC_DRV_CMD_WAIT_FOR_CMPL, tcs_id); 658628e7ef78e8 Lina Iyer 2018-06-20 480 658628e7ef78e8 Lina Iyer 2018-06-20 481 for (i = 0, j = cmd_id; i < msg->num_cmds; i++, j++) { 658628e7ef78e8 Lina Iyer 2018-06-20 482 cmd = &msg->cmds[i]; 658628e7ef78e8 Lina Iyer 2018-06-20 483 cmd_enable |= BIT(j); 658628e7ef78e8 Lina Iyer 2018-06-20 484 cmd_complete |= cmd->wait << j; 658628e7ef78e8 Lina Iyer 2018-06-20 485 msgid = cmd_msgid; 658628e7ef78e8 Lina Iyer 2018-06-20 486 msgid |= cmd->wait ? CMD_MSGID_RESP_REQ : 0; fc087fe5a45e72 Lina Iyer 2018-06-20 487 658628e7ef78e8 Lina Iyer 2018-06-20 488 write_tcs_cmd(drv, RSC_DRV_CMD_MSGID, tcs_id, j, msgid); 658628e7ef78e8 Lina Iyer 2018-06-20 489 write_tcs_cmd(drv, RSC_DRV_CMD_ADDR, tcs_id, j, cmd->addr); 658628e7ef78e8 Lina Iyer 2018-06-20 490 write_tcs_cmd(drv, RSC_DRV_CMD_DATA, tcs_id, j, cmd->data); efde2659b0fe83 Stephen Boyd 2020-01-14 @491 trace_rpmh_send_msg_rcuidle(drv, tcs_id, j, msgid, cmd); 658628e7ef78e8 Lina Iyer 2018-06-20 492 } 658628e7ef78e8 Lina Iyer 2018-06-20 493 658628e7ef78e8 Lina Iyer 2018-06-20 494 write_tcs_reg(drv, RSC_DRV_CMD_WAIT_FOR_CMPL, tcs_id, cmd_complete); 3b5e3d50f83a37 Douglas Anderson 2020-04-13 495 cmd_enable |= read_tcs_reg(drv, RSC_DRV_CMD_ENABLE, tcs_id); 658628e7ef78e8 Lina Iyer 2018-06-20 496 write_tcs_reg(drv, RSC_DRV_CMD_ENABLE, tcs_id, cmd_enable); 658628e7ef78e8 Lina Iyer 2018-06-20 497 } 658628e7ef78e8 Lina Iyer 2018-06-20 498 :::::: The code at line 491 was first introduced by commit :::::: efde2659b0fe835732047357b2902cca14f054d9 drivers: qcom: rpmh-rsc: Use rcuidle tracepoints for rpmh :::::: TO: Stephen Boyd :::::: CC: Bjorn Andersson --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org