Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1615496rwn; Fri, 9 Sep 2022 00:55:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR7DORZNvOXGTy7TQfz6VX/iZzZ+gMZuTOPUtIPVSKRv0mB2Bnc/0uBrrwf+7Q4vrRO+Tl+3 X-Received: by 2002:a05:6512:138e:b0:47f:77cc:327a with SMTP id p14-20020a056512138e00b0047f77cc327amr4139444lfa.277.1662710151365; Fri, 09 Sep 2022 00:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662710151; cv=none; d=google.com; s=arc-20160816; b=nIJaanHCsK4PLEknx3MFm/Dx5BRTJv+GwYWcn1A6BZFpVojlu1g2VoVaqvG30zXKgL Zz4g6sNMzz72Nr7LtxQ2JxW0tVjxQgEaj149Ybzo+jN930b7A/LkFBjMc1esuHxvofgX 4bm5TOMv4MxSbmnWhkJbr9wtsM54yh5uUYWONuNlnsg4Wz3x2YiawXyV/JOphp3rvZa0 lzJ62AG8wPtqv5TyADw/r+/5MON2FU49A7Lrocbur7kD8WqJ5YaHmExQIbqBVhd41J42 sCuvNaIRJLKZ94m8dthWZRzjhtT67xlMioNtkgOwVU8JVesmqhm9ZYI4O7zrQg+fhqgz IaNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=5aQOmj4o6dy+y08Ndf5GP3ShJjdt3XzOKjEopk6m/lE=; b=yCiM1MiR/BBoNXcnlrBlKVwK5BB7+TZ4ZPvxCWQOs6MjzmtG0PiPPKfFpa0aXMiRkD 3CXeYZ3xjjrXxGnUvb5OnjtfOAAQ1lcm7Tje+YE1NqO2GmXKu+zruRUYCsvW3PR1oRtU nbhNj9FnICHdXYT1HIEcoyZ9sS9wJqUQQ0M0Zkr1kAR/E1zagiAaMi7yDK/qY/vMHrFW obaprmNajhHbmh8JASK1kwnfkaThR/A1AXr1SGTorNdlw4dCvXVOuLPODkjslktwd8+Y 2hN3LOEBul6V/71veDNEr/JvzH4QURWAF12PjDKEGOu9TTXiLE3ke/zziPccS0WtA1ii T/hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=TPbzxpyP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w25-20020a2e9bd9000000b0026ad03ec45dsi560197ljj.389.2022.09.09.00.55.21; Fri, 09 Sep 2022 00:55:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=TPbzxpyP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230218AbiIIHHr (ORCPT + 99 others); Fri, 9 Sep 2022 03:07:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230129AbiIIHHq (ORCPT ); Fri, 9 Sep 2022 03:07:46 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E1A1E3D78 for ; Fri, 9 Sep 2022 00:07:42 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id iw17so1003162plb.0 for ; Fri, 09 Sep 2022 00:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=5aQOmj4o6dy+y08Ndf5GP3ShJjdt3XzOKjEopk6m/lE=; b=TPbzxpyPzcDS/2Mu6bTugXg7Evw4zdwAU0ETEKmg6oSWWB2dTr0yCd8rRlVpzZTD1l A1JKGtlEa0KKAHnmb+DDf+HKhQB668P2MfErJ6E5wZHnjAIL1mElQWdH5FKfI3W14tdy l9eT1NqeubKDL1nNpHkATVRpnvKrBACw0b5+ALb4uPettYoqHeky9E7npLq2k5gWqO9T qCFcN6LLBYM+d0vhgF6eip5CM28zPLH4E8FAWfobeL7XGAzzvBC6zy8nNm3bH5ef4aHu TJvYlg09bqHC4hAh5HmNT8ubJngGXLekNnWPU7Stnvz7/UNY8A8x4NOke49aPy9HmgqU qbsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=5aQOmj4o6dy+y08Ndf5GP3ShJjdt3XzOKjEopk6m/lE=; b=FgdMFkUNFvjEDQFapTUZ8g+673bEYe+FB/3Y8e9Qpsj8BRoqsuGX6xQwD0pYOcDTmQ 1KUaWfhgcoqkbSsBjzFCUtQQEBZZqtZCMx7xLkHXYX4oLxJmYcs/6vFqW+PHII5QFQZP ZmqjTKY4sSAhW7LDDgv/OJPGyjYAuTKZBHBZhrPj40WAH4czbFEoUDx9XMeTBpB0MPk1 HSAGt6+ziILCdVgmhQ9zyX54d2k6VeKo1z0I9eA5yKVTRF9UNQs8EUep3tq+8+wOZl18 lMyXGddKvJ+PxhwriIisxBqVn1JrVX3pcbGJCohTI11HEVq60RTiD+k4tCnH5ifLuXHb 4trg== X-Gm-Message-State: ACgBeo0G5PV0nJow9Z1MLFlM8U2G5ofYKE34oYM7Qu2jPPzClGX33D06 pxcNCgrEGV2XxL43womO9cCznA== X-Received: by 2002:a17:90a:c711:b0:202:5cda:765c with SMTP id o17-20020a17090ac71100b002025cda765cmr8330639pjt.35.1662707262018; Fri, 09 Sep 2022 00:07:42 -0700 (PDT) Received: from [10.4.108.105] ([139.177.225.250]) by smtp.gmail.com with ESMTPSA id cv8-20020a17090afd0800b001fb53587166sm656041pjb.28.2022.09.09.00.07.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Sep 2022 00:07:41 -0700 (PDT) Message-ID: <69409ea6-6daa-7973-c950-c6ca9ad96f50@bytedance.com> Date: Fri, 9 Sep 2022 15:07:36 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Subject: Re: [ammarfaizi2-block:arm64/linux/for-next/misc 2/2] arch/arm64/kernel/irq.c:81:6: warning: no previous prototype for function 'do_softirq_own_stack' Content-Language: en-US To: Arnd Bergmann , kernel test robot , Catalin Marinas Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Ammar Faizi , GNU/Weeb Mailing List , linux-kernel@vger.kernel.org References: <202209091157.akimiv18-lkp@intel.com> From: Qi Zheng In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 2022/9/9 14:30, Arnd Bergmann wrote: > On Fri, Sep 9, 2022, at 5:12 AM, kernel test robot wrote: >> tree: https://github.com/ammarfaizi2/linux-block >> arm64/linux/for-next/misc >> head: 2d2f3bb897a3de4190b1b6b296c3429d01327554 >> commit: 2d2f3bb897a3de4190b1b6b296c3429d01327554 [2/2] arm64: run >> softirqs on the per-CPU IRQ stack >> config: arm64-randconfig-r023-20220907 >> compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project >> 1546df49f5a6d09df78f569e4137ddb365a3e827) >> 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 arm64 cross compiling tool for clang build >> # apt-get install binutils-aarch64-linux-gnu >> # >> https://github.com/ammarfaizi2/linux-block/commit/2d2f3bb897a3de4190b1b6b296c3429d01327554 >> git remote add ammarfaizi2-block >> https://github.com/ammarfaizi2/linux-block >> git fetch --no-tags ammarfaizi2-block arm64/linux/for-next/misc >> git checkout 2d2f3bb897a3de4190b1b6b296c3429d01327554 >> # save the config file >> mkdir build_dir && cp config build_dir/.config >> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 >> O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kernel/ >> >> If you fix the issue, kindly add following tag where applicable >> Reported-by: kernel test robot >> >> All warnings (new ones prefixed by >>): >> >>>> arch/arm64/kernel/irq.c:81:6: warning: no previous prototype for function 'do_softirq_own_stack' [-Wmissing-prototypes] >> void do_softirq_own_stack(void) >> ^ >> arch/arm64/kernel/irq.c:81:1: note: declare 'static' if the function >> is not intended to be used outside of this translation unit >> void do_softirq_own_stack(void) >> ^ >> static > > > I think we are missing an "#include " > in arch/arm64/kernel/irq.c Indeed. Hi Catalin, do I need to resend the v4 version? Or can you help me to apply the following code change to the for-next/misc directly? Both are fine for me, depending on which way is convenient for you. :) diff --git a/arch/arm64/kernel/irq.c b/arch/arm64/kernel/irq.c index c36ad20a52f3..181df57c812b 100644 --- a/arch/arm64/kernel/irq.c +++ b/arch/arm64/kernel/irq.c @@ -23,6 +23,7 @@ #include #include #include +#include /* Only access this in an NMI enter/exit */ DEFINE_PER_CPU(struct nmi_ctx, nmi_contexts); BTW, when I just compiled the kernel with W=1, I found a lot of compilation warnings, which is somewhat unexpected. Thanks, Qi > > Arnd -- Thanks, Qi