Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1614730pxp; Thu, 17 Mar 2022 12:46:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7ENaK02DDRmaAJ4W0fqp5nUZb3hU7/Ejr2CrMTSEaQFPP4NweGcupEUZWVs9FB6OfymyM X-Received: by 2002:a17:903:41d1:b0:153:b1ac:a25f with SMTP id u17-20020a17090341d100b00153b1aca25fmr6602433ple.69.1647546374765; Thu, 17 Mar 2022 12:46:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647546374; cv=none; d=google.com; s=arc-20160816; b=nvKXxrL61vqK73dVmH0oYJDcEAnsBYhFcBdxa39lBnJRTi3cLsLxdP1lAmMKPkDw47 efcLL57gsL8LJQKNmrI39IGErZCvqOw61kIfaKXkTRf38dvD6JzZZTDx4RnkvcOfLkZT fF1IoFW0gmHE/ng8zuLjmOtr7Ge1C9tnmf/G2culXDLIydt3Rw+DM5aZBFk+TKZ6hj5a t77nCqk0RQn0dZgDb5+uftsZJsiK8Cun5LetW7Dvy1apVXmiMOvmmBJ4KVk/sHMgh36R /aaEhJiOMtgRO9ntMYk/HzacIfbw7wPide7XVyejYpzNEDJEERzpEbnipbSlbQh5mHMX ToLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=c8H54sfvdL/4X++pvjE1/MSrXb+cFUQ9o4BK+QFfxJU=; b=Q1t8uzH9O8HuQNpWVC+IEfJcPQa80mkhZa5ei7uG7xE8UehpJm073M+3WvZhjXjWsz PJZHpX8LrbMkuu55eBzNWpOwYMKYU/ab5GfRQbSLWLCNTZfMwWd4ZcC2Y+OLNe6QIc1V U05eSVelSwHz0tUslOoZ1GIHvi9Iun68j8hZLOZy3fwjFRBwpegBq4mf00pdYJcGnO9h o5By5jGXDF+Dr0+gn/kRokzk5FYmGg/c+znTTxAFso8pAvs5d8SuvMSIO2rI3wyE7TFG oiDz07M3oXeDiKlMuRTp1RxluLhfXhH/0YUrbqrlDCxHFuFcjAyXiQ+8gXksMidUiEKE RZPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pRA6Up9d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c7-20020a621c07000000b004f6c8a72391si5213226pfc.257.2022.03.17.12.46.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 12:46:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pRA6Up9d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0ACE1F55F5; Thu, 17 Mar 2022 12:43:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230379AbiCQPYE (ORCPT + 99 others); Thu, 17 Mar 2022 11:24:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231197AbiCQPX7 (ORCPT ); Thu, 17 Mar 2022 11:23:59 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 052AF205BC5; Thu, 17 Mar 2022 08:22:43 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id y22so7012274eds.2; Thu, 17 Mar 2022 08:22:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=c8H54sfvdL/4X++pvjE1/MSrXb+cFUQ9o4BK+QFfxJU=; b=pRA6Up9dD0rUtPDJrB0AH/PWFD3oL2KdsZ7UzFHwBtyggyUH+P1ttBKYKdq21kAZbO NHgNoruf07++8kDBgjGi4Bxc6/Tw69F2DywP+RgvHTdTGB5q0UHUY09M/A8pW+v1gQC1 8UxPQXw3FYnpiFMu24s0e8tZGVdvyo/uiacheqL14Q0miLdmTZk8e44JIUl318H9WtHG gYAV1u47M5iQ7orKFXTWShCSBF35S9AOHxQN2f8TnZbYPxXMqwPBZdGumksy+fmEgaCU JGuNlip3ZDJmtdTS5Zn64xE3YIjTMS6W+uU8kvwiPnLqq1ZI+DJlhWmkJyDbVmcC4e5G hknQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=c8H54sfvdL/4X++pvjE1/MSrXb+cFUQ9o4BK+QFfxJU=; b=7xblLGAO6qw+mSs4MaYKLJ13i1jANjVtyDCQQlrvUEx39BBLZzVFTD41JDTV5shuvk sPD3pAc/2yNz7wiXCszRvI0PwoLY16CtiRwx0FGilqEfxAmQB4iW99ntgaN1XWJYBocj Kc0k3x6cdArMMZOWYqYCJAmr8A72AXmxvPI5TOTyMDmwUHRv9o84BKT0i8GzI1as4SzA eXC3qEsNo9iJ6BpI/fnQGuCVGPtjcSkPgky8DB2b6zjJC2ApDgiZ0Ll5eywWpVG2/LYS sF3o6y4INdPP9Zh9yM/fvGKEJDDjoNXfVhaBbdO/66+o8noi+EdsQjFG0wACxzNY+cYF Ig3Q== X-Gm-Message-State: AOAM533GXwF85+v58IF9eQmT6rlYgOq2yzFOkCs76U9ANBCUGGO/fjic eksn0L04DDW2XzQaAplJ1jD05XFe8Qpm2lA+mTM= X-Received: by 2002:a05:6402:3715:b0:410:a415:fd95 with SMTP id ek21-20020a056402371500b00410a415fd95mr5017644edb.288.1647530561296; Thu, 17 Mar 2022 08:22:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Zhouyi Zhou Date: Thu, 17 Mar 2022 23:22:28 +0800 Message-ID: Subject: Re: RCU: undefined reference to irq_work_queue To: Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: rcu , "Paul E. McKenney" , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Joel Fernandes , linux-kernel Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Mar 17, 2022 at 8:48 PM Hyeonggon Yoo <42.hyeyoo@gmail.com> wrote: > > Hello RCU folks, > > I like to use minimal configuration for kernel development. > when building with tinyconfig + CONFIG_PREEMPT=y on arm64: I invoke cross compiler to reproduce the bug on my X86 machine $make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- CC=aarch64-linux-gnu-gcc-10 tinyconfig let CONFIG_PREEMPT=y in .config $make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- CC=aarch64-linux-gnu-gcc-10 -j 16 LD vmlinux aarch64-linux-gnu-ld: kernel/rcu/update.o: in function `call_rcu_tasks': update.c:(.text+0xb30): undefined reference to `irq_work_queue' update.c:(.text+0xb30): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `irq_work_queue' > > ld: kernel/rcu/update.o: in function `call_rcu_tasks': > update.c:(.text+0xb2c): undefined reference to `irq_work_queue' > update.c:(.text+0xb2c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `irq_work_queue' > make: *** [Makefile:1155: vmlinux] Error 1 > > It seems RCU calls irq_work_queue() without checking if CONFIG_IRQ_WORK is enabled. > > -- > Thank you, You are awesome! > Hyeonggon :-) Meanwhile, there is no error for doing the same to build X86 kernel. I think the reason is: arch/x86/Kconfig select PERF_EVENT and PERF_EVENT select IRQ_WORK Hope my little research could provide some clues to solve the problem ;-) You are welcome Cheers Zhouyi