Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22430201rwd; Fri, 30 Jun 2023 07:59:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlF4jJiofK3wb1PcaLjsfpOG0qIynoDOloW1E7chjmu/lU25i6DBfjYc9KvTzr6m1NcbEluN X-Received: by 2002:a05:6870:3c16:b0:1a2:c149:99cd with SMTP id gk22-20020a0568703c1600b001a2c14999cdmr3423708oab.8.1688137174898; Fri, 30 Jun 2023 07:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688137174; cv=none; d=google.com; s=arc-20160816; b=zI+L+9+PDXC7WXcFJbxMoaqechNnPxLNIHhObmi/cAStlC0Im2cTglRi3131cPDWM8 Hwm7cMdVL+Gs44bifnR9Lh9CmDxuSvvPffuOlKnYw0X0/MqnKj0sDUduIm+LEfYDq4rX qMqhwYnyxp7dboRmtpBUTMI2p8vO30xqRSlyNLgEZPMTJn5FgNp0Dq68s/uv+7wfx/8B 2p91IO8kAdszwREPsP/6WPIyCnGdo8AXw6vmldPN3MCgV3OmE/Hko6WRlP53FWFt4jEK 39XYlJa3XRvBULilMNvZcoHuGrjduJkqzDFoW9H1LnK54LvHSIC8sJdslN6RMrRHwbiX aJrw== 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=hbd/fExIFs9vd/uVwFvEulgbuneSaKj7dgqktqkVNeQ=; fh=EbkQRJox9tkODic9hyKHmS82roD2+lbpfVTin6zQUbU=; b=mnVj1GzyJ/Kv8FdFWsdRt1rsa5OvLnUFhvnDlQWrslJiLy4jmjcRXLFqu8xogHqIFF G3B9y15R+e9lnsIKSrsFf3ivQQbLU/HqDIxRkTMXUEuTZTQkzpTUWK8JsGLYOfypVTKU I0mmW+v0pPBSgSAbRjO7UOxUFKwtyp5IOkBiUX/1Ho/0IwzhkbJfnGbpMatLo/hTuEeZ sD2kxGMg48t3kWYW39uFaPPLNFwaypEYIOacHssdla69IEDazbxhem3Egkzg0hXVYlA0 OMzLv+8FZNkrP2qGHmgXT8RbaJt4+Wuvr2fcJafh9/A7y5YS758C2dNem8CFcxrMY+nY uTnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=P9PJQLmN; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 11-20020a17090a004b00b0025bdfe1bc66si14690989pjb.165.2023.06.30.07.59.19; Fri, 30 Jun 2023 07:59:34 -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=@suse.com header.s=susede1 header.b=P9PJQLmN; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232606AbjF3Odx (ORCPT + 99 others); Fri, 30 Jun 2023 10:33:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232561AbjF3Ods (ORCPT ); Fri, 30 Jun 2023 10:33:48 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5596D10CE; Fri, 30 Jun 2023 07:33:46 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id D08131F8C2; Fri, 30 Jun 2023 14:33:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1688135624; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hbd/fExIFs9vd/uVwFvEulgbuneSaKj7dgqktqkVNeQ=; b=P9PJQLmNcmBXYAUh1VS4Pd4Ra85i2iPGeQXJC7OHUflQHAFHHNpQL9jLT+eUxDhwOmTRft khvBg1sYc0TzaZIAfYfLLzcGt60BQ2hIG/YAXTX1+fOpULyZ7zWD3wVFidg/7BJuxzOMvg 7vFOZKOHtzGg72KURffC88j/Mom2VEc= Received: from suse.cz (pmladek.udp.ovpn2.prg.suse.de [10.100.201.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id AA8122C141; Fri, 30 Jun 2023 14:33:43 +0000 (UTC) Date: Fri, 30 Jun 2023 16:33:39 +0200 From: Petr Mladek To: Doug Anderson Cc: Randy Dunlap , Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , Michael Ellerman , Andrew Morton Subject: Re: linux-next: Tree for Jun 28 (arch/powerpc/platforms/pseries/mobility.c) Message-ID: References: <20230628142751.0527c993@canb.auug.org.au> 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=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Thu 2023-06-29 12:51:54, Doug Anderson wrote: > Hi, > > On Thu, Jun 29, 2023 at 1:40 AM Petr Mladek wrote: > > > > On Wed 2023-06-28 22:07:17, Randy Dunlap wrote: > > > > > > > > > On 6/27/23 21:27, Stephen Rothwell wrote: > > > > Hi all, > > > > > > > > Please do *not* add any v5.6 related stuff to your linux-next included > > > > branches until after v5.5-rc1 has been released. > > > > > > > > Changes since 20230627: > > > > > > > > > > on powerpc64, when > > > # CONFIG_HARDLOCKUP_DETECTOR is not set: > > > > > > ../arch/powerpc/platforms/pseries/mobility.c: In function 'pseries_migrate_partition': > > > ../arch/powerpc/platforms/pseries/mobility.c:753:17: error: implicit declaration of function 'watchdog_hardlockup_set_timeout_pct'; did you mean 'watchdog_hardlockup_stop'? [-Werror=implicit-function-declaration] > > > 753 | watchdog_hardlockup_set_timeout_pct(factor); > > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > | watchdog_hardlockup_stop > > > cc1: all warnings being treated as errors > > > > > > > > > Full randconfig file is attached. > > > > > > > > > If I blatantly modify include/linux/nmi.h with these comments, it builds OK: > > > > > > //#if defined(CONFIG_HARDLOCKUP_DETECTOR_ARCH) || defined(CONFIG_HARDLOCKUP_DETECTOR_SPARC64) > > > #include > > > //#endif > > > > This is well describes the probem. > > > > The decision whether to include asm/nmi.h should not depend only on > > CONFIG_HARDLOCKUP_DETECTOR_* when it is needed also for other stuff. > > > > I see two reasonable solutions: > > > > 1. We either create an empty "include/asm-generic/nmi.h" and > > always include asm/nmi.h in linux/nmi.h. > > > > It looks is a bit weird but it might be the easiest solution > > unless it creates another problems elsewhere. > > > > > > 2. Explicitely include asm/nmi.h where needed, in > > arch/powerpc/platforms/pseries/mobility.c and maybe somewhere as > > well. > > > > It is already done in many cases: > > > > > > I would personally prefer the 2nd variant. > > Yes, this seems right to me. I'm always inclined to get build failures > fixed ASAP, so I've posted a patch for it: > > https://lore.kernel.org/r/20230629124500.1.I55e2f4e7903d686c4484cb23c033c6a9e1a9d4c4@changeid Thanks a lot for the patch. > > I am going to check other locations where it might be needed. > > If you find anything else, we can either do a v2 or another patch. I have found one more suspicious usage in arch/powerpc/kernel/exceptions-64s.S. It calls soft_nmi_interrupt() which is defined in powerpc/include/asm/nmi.h as well. But it seems that it compiles even when asm/nmi.h is not included. In fact, it has never been included. I have double checked this with cross compilation. So, this hopefully was the last build problem /o\ Best Regards, Petr