Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1427578rwl; Fri, 7 Apr 2023 16:16:41 -0700 (PDT) X-Google-Smtp-Source: AKy350YHxQBDthKOXbHOuTYbUtdV9Dw/lmUDlljKdZVJOwrCsQhvN2tVlEpoZ/EhZBaw5g1QH/T/ X-Received: by 2002:aa7:c2c8:0:b0:4fe:9621:ffdc with SMTP id m8-20020aa7c2c8000000b004fe9621ffdcmr89241edp.16.1680909401583; Fri, 07 Apr 2023 16:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680909401; cv=none; d=google.com; s=arc-20160816; b=x0WoZGIiunh0+p9iaPwM7EzGqnK5ll8UFD8jVxnDVH+uVp2Bv/rO5dLJDv7rDFiPyU +Obpe9H+08NrsYUM0vUoWAL5U4oj2im9KPUOHstrc9/Pm+Glry6sVsr10Kwg3SP+I8dK VAjV5/XPstMUGzpncs2UxTCGcOTvjNpjcpT03qKsH8pGh+4uLDe0EdnamL/2VnlruV7h L8oC0JrOqrvuWEf8CVg/LjJcSgejhbGSqzxIjmNixnNBv6SA9NwQBQOwjsC1wBVSY5UZ 4z8r4HJyy8p3XUKRFT64oCjL6e97VfqJuNGoH9j1gmTxKneIg2t9ULdK0PUlmmgDmgJb wQxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YtmRzBRXZ6Oh42WgK1Ykjyi9Pbq9GLBbCGDBq7LPpUw=; b=a2ytBf6y9V7/OliG+yfs6JGOQP+6jDCzA5NSkNpoj8H9PeoNYT2d3lq4cLh8T6wL2x KdMjn9Kpp4uEIaMPSWvk/E7fCjhHnvbP4VgGXho1aZ9fr7C/3THIW2vBKoXPKLEgVRly ZxeZpdgxs3YIyPRruUtuiU0xuVMNbu262aF3Ya4N+hraFwc42a2tMsMHDpi3bapXzba9 yfvpu69PG4C+NNKCiRIwTiVLlSdqyWIYSjHU4loow8+OCGqOWCZRwgIxq++MQ1qQyHKa 4b0sKaHf5K1cKhXSwF/yF6UwidaD0GksvUMXqYJK4OaSpQB0/MbP+AZmd6AlECN9BBI2 Wgtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ByBI9RNP; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n13-20020aa7c44d000000b00501dbb1760esi4213677edr.49.2023.04.07.16.16.16; Fri, 07 Apr 2023 16:16:41 -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=@kernel.org header.s=k20201202 header.b=ByBI9RNP; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229786AbjDGXPF (ORCPT + 99 others); Fri, 7 Apr 2023 19:15:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229760AbjDGXPE (ORCPT ); Fri, 7 Apr 2023 19:15:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8EE910D7 for ; Fri, 7 Apr 2023 16:15:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1336B6554D for ; Fri, 7 Apr 2023 23:15:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 187AAC433EF; Fri, 7 Apr 2023 23:15:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680909302; bh=eVPMrVHJu8S6/AV9JoIyXesIKaGwbrhFt6Aeyu8JnC0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ByBI9RNPnH/VZd+G7KFu2un4q2UzvQdABlt08r22ZeBJfq/eck31eQXZA5747D3LK PTdt5dqFr84muP7tva6/V7KcEEGDCNF6R7tEw1puEFitkPw4Mn3bKNiuqtTrZYwwLA BymZnTGmzYLa3UJCXZZD6pwVBUs/NFfXC7RrK7XY4uR5gDLdU4XNUn+AwsdaNeJdiF OcNkRJtK/JM2TFtspLumgbeYT/jVNlbDVjr3ESpxd+HpJVbXBJzD5+X+/z/skQYMLs nTS2sNz6mbe8mCznT64v9r8SXliA05v1zQS85iCqyu3oq1US5mE+U8esF9svexREUc rmC4rPAhB3f4g== Date: Fri, 7 Apr 2023 16:15:00 -0700 From: Nathan Chancellor To: Nick Desaulniers Cc: Masahiro Yamada , linuxppc-dev , oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, kernel test robot Subject: Re: arch/powerpc/kvm/../kernel/head_booke.h:20:6: warning: "THREAD_SHIFT" is not defined, evaluates to 0 Message-ID: <20230407231500.GA2598451@dev-arch.thelio-3990X> References: <202304050954.yskLdczH-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 Fri, Apr 07, 2023 at 04:08:43PM -0700, Nick Desaulniers wrote: > On Tue, Apr 4, 2023 at 6:29 PM kernel test robot wrote: > > > > Hi Masahiro, > > > > FYI, the error/warning still remains. > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > head: 76f598ba7d8e2bfb4855b5298caedd5af0c374a8 > > commit: 80b6093b55e31c2c40ff082fb32523d4e852954f kbuild: add -Wundef to KBUILD_CPPFLAGS for W=1 builds > > date: 4 months ago > > config: powerpc-buildonly-randconfig-r003-20230405 (https://download.01.org/0day-ci/archive/20230405/202304050954.yskLdczH-lkp@intel.com/config) > > compiler: powerpc-linux-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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=80b6093b55e31c2c40ff082fb32523d4e852954f > > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > git fetch --no-tags linus master > > git checkout 80b6093b55e31c2c40ff082fb32523d4e852954f > > # 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=powerpc olddefconfig > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/kernel/ arch/powerpc/kvm/ virt/ > > > > If you fix the issue, kindly add following tag where applicable > > | Reported-by: kernel test robot > > | Link: https://lore.kernel.org/oe-kbuild-all/202304050954.yskLdczH-lkp@intel.com/ > > > > All warnings (new ones prefixed by >>): > > > > In file included from arch/powerpc/kvm/bookehv_interrupts.S:26: > > >> arch/powerpc/kvm/../kernel/head_booke.h:20:6: warning: "THREAD_SHIFT" is not defined, evaluates to 0 [-Wundef] > > 20 | #if (THREAD_SHIFT < 15) > > | ^~~~~~~~~~~~ > > Should arch/powerpc/kernel/head_booke.h be #include'ing > asm/thread_info.h before using THREAD_SHIFT? I think so, sorry for not cc'ing you on https://lore.kernel.org/linuxppc-dev/20230406-wundef-thread_shift_booke-v1-1-8deffa4d84f9@kernel.org/ > > > > > > vim +/THREAD_SHIFT +20 arch/powerpc/kvm/../kernel/head_booke.h > > > > 1a4b739bbb4f88 Christophe Leroy 2019-04-30 10 > > 63dafe5728e735 Becky Bruce 2006-01-14 11 /* > > 63dafe5728e735 Becky Bruce 2006-01-14 12 * Macros used for common Book-e exception handling > > 63dafe5728e735 Becky Bruce 2006-01-14 13 */ > > 63dafe5728e735 Becky Bruce 2006-01-14 14 > > 63dafe5728e735 Becky Bruce 2006-01-14 15 #define SET_IVOR(vector_number, vector_label) \ > > 63dafe5728e735 Becky Bruce 2006-01-14 16 li r26,vector_label@l; \ > > 63dafe5728e735 Becky Bruce 2006-01-14 17 mtspr SPRN_IVOR##vector_number,r26; \ > > 63dafe5728e735 Becky Bruce 2006-01-14 18 sync > > 63dafe5728e735 Becky Bruce 2006-01-14 19 > > e12401222f749c Yuri Tikhonov 2009-01-29 @20 #if (THREAD_SHIFT < 15) > > e12401222f749c Yuri Tikhonov 2009-01-29 21 #define ALLOC_STACK_FRAME(reg, val) \ > > e12401222f749c Yuri Tikhonov 2009-01-29 22 addi reg,reg,val > > e12401222f749c Yuri Tikhonov 2009-01-29 23 #else > > e12401222f749c Yuri Tikhonov 2009-01-29 24 #define ALLOC_STACK_FRAME(reg, val) \ > > e12401222f749c Yuri Tikhonov 2009-01-29 25 addis reg,reg,val@ha; \ > > e12401222f749c Yuri Tikhonov 2009-01-29 26 addi reg,reg,val@l > > e12401222f749c Yuri Tikhonov 2009-01-29 27 #endif > > e12401222f749c Yuri Tikhonov 2009-01-29 28 > > > > :::::: The code at line 20 was first introduced by commit > > :::::: e12401222f749c37277a313d631dc024bbfd3b00 powerpc/44x: Support for 256KB PAGE_SIZE > > > > :::::: TO: Yuri Tikhonov > > :::::: CC: Josh Boyer > > > > -- > > 0-DAY CI Kernel Test Service > > https://github.com/intel/lkp-tests > > > > -- > Thanks, > ~Nick Desaulniers