Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp21266562rwd; Thu, 29 Jun 2023 13:29:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlEUaT5sdjeuXnnfzNdk47wiE0MzsiyL73kiytX6/4RgcQOOEBtw2rpM9m9XDZ4ikH7/bjZE X-Received: by 2002:a17:902:dac5:b0:1b3:db5d:e8a0 with SMTP id q5-20020a170902dac500b001b3db5de8a0mr935980plx.28.1688070550268; Thu, 29 Jun 2023 13:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688070550; cv=none; d=google.com; s=arc-20160816; b=RLGuD4zdwM7MoqSzDRFqVR4ZTdAPPJsfrTc6CKfNgG1HKPliJrvqPPiVyApOKpOTu8 t1znWDM4+eeeTIKsPD1vqhKA4h4ILDxDRuatTIImjOtYtEnHimB530sqlCzXb9wJeCEI wLKq25naSGWox3ujtFjXOQ8Uhgvk8TweR8WDBad7SZ3cxSUmCKUM3UQedQMjt2jpFzhU Uv62tyLyogHO0T0DW7ZfzMW4/eE8F/3CG5F1UuMGW9sWcTJ8v8l3yBR/VSjUfuI87Euw bDWKHVWxygnTX8OR0MfoW4J2kfUR4ajEbX4n+eD+b4IxvpN2s+AV31tvztuCJYo9nzuD I+hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=1nfpVkx+nWq0B36vp7DHCBX9gSBsdd45OBB1wBO3r6c=; fh=z3GKBOCWm38UQqTS5zjnbO6qWbqWRnshdZarW3cPmQE=; b=kTvIwKi6BNG7CBCYyd6dVpS7jO0V4GF4xp4xLtRjzqJ+8mGfSaDBW81w86WvAkfk11 etKawLcfA+NztCabMf42IC624eyFoRl/uZNhPCt8TW/QYq4xTOIsRYzfdHb31GK/Dm68 EvBYK0p8M1bqhH7YsyLlNIyfLNy+16wx2O1Im1Vv9PZXtCBIGptY4DBYbsOI76Ld+f8i vK+6Lcy/eLYdP/G13oUtjU415Ig+3ZRTJDJ0+/Shw/AP3OXqlGbeMNqiseDtM3RojSY8 DLXiqvd7N8cYrsG2pkTJEQtOsN10essC56nQsbku+myRXR0M3uecpR8GTkdj5Zz5irj4 vZ9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AcAbFSju; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j7-20020a170903024700b001b54ff18ed1si11772950plh.267.2023.06.29.13.28.53; Thu, 29 Jun 2023 13:29:10 -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=@chromium.org header.s=google header.b=AcAbFSju; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231883AbjF2TwO (ORCPT + 99 others); Thu, 29 Jun 2023 15:52:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231282AbjF2TwM (ORCPT ); Thu, 29 Jun 2023 15:52:12 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C1561BDF for ; Thu, 29 Jun 2023 12:52:11 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2b699a2fe86so17825071fa.3 for ; Thu, 29 Jun 2023 12:52:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1688068328; x=1690660328; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1nfpVkx+nWq0B36vp7DHCBX9gSBsdd45OBB1wBO3r6c=; b=AcAbFSjuY4uOMBRnGK2a9k4LfvqII+4BGTa58GGrD0QvPVIG7FU8o4Bu1fy3NXLwg7 3cQNZj/qKK1u1NJCy3kq9XhXgV9BMQGeBGGqIothlMxgLBYFIuTvNKHgF2Jj6c9snwB4 GyTmcBQKRoKFi2jVxHuOKKmemv3JmP9SgTcH4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688068328; x=1690660328; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1nfpVkx+nWq0B36vp7DHCBX9gSBsdd45OBB1wBO3r6c=; b=ONiVqQgdzy0zbQ8H1ZFOTk7ENRPyFvhUaO2hg11PPKIaYsX/0/SMnfA56Lb5FeKY1I XO6/qzEZPiH/eVc1qZu1I0aNTHY9Se+8gaMklpUfDOo18DggFdAba3DWOPZGhKdKILzH RPCNfjKGa9ykFR9ZbS4djRAJyTOIEoKWCH2Yz6n1sKryoX43evMGRPxS2csoQlZEqUzS mmlYCvg06NHSJx6i8f3v+J5SeXTtac+ORLJRXHPDYFnn06JsW4ew0CVCmprBqt/X6mhk DtbOs5+quV3xFUuEbUV9FE/TiZZ3GgzOzIlSOfDHfUxQls8ZOUA/bk/gn6ibkMPFzY+f dLDg== X-Gm-Message-State: ABy/qLaDe2fGAYfsvXlz5MESq/1A4Kn/0rBfFcLuwK2vUN4Lu/SRfHtx 1O2AzRJRM67G8rJGwLF6xZ1dYSeJgMfrQQQJPDT9YRnE X-Received: by 2002:a2e:918f:0:b0:2b6:9ed2:f61c with SMTP id f15-20020a2e918f000000b002b69ed2f61cmr524494ljg.7.1688068328262; Thu, 29 Jun 2023 12:52:08 -0700 (PDT) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com. [209.85.167.49]) by smtp.gmail.com with ESMTPSA id z7-20020a05651c022700b002b6cfdba3ccsm25561ljn.90.2023.06.29.12.52.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Jun 2023 12:52:07 -0700 (PDT) Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-4f86840c45dso21e87.1 for ; Thu, 29 Jun 2023 12:52:06 -0700 (PDT) X-Received: by 2002:ac2:59c5:0:b0:4f7:4b19:1735 with SMTP id x5-20020ac259c5000000b004f74b191735mr147182lfn.6.1688068326470; Thu, 29 Jun 2023 12:52:06 -0700 (PDT) MIME-Version: 1.0 References: <20230628142751.0527c993@canb.auug.org.au> In-Reply-To: From: Doug Anderson Date: Thu, 29 Jun 2023 12:51:54 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: linux-next: Tree for Jun 28 (arch/powerpc/platforms/pseries/mobility.c) To: Petr Mladek Cc: Randy Dunlap , Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , Michael Ellerman , Andrew Morton Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Hi, On Thu, Jun 29, 2023 at 1:40=E2=80=AFAM Petr Mladek wrot= e: > > 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 include= d > > > 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_migr= ate_partition': > > ../arch/powerpc/platforms/pseries/mobility.c:753:17: error: implicit de= claration of function 'watchdog_hardlockup_set_timeout_pct'; did you mean '= watchdog_hardlockup_stop'? [-Werror=3Dimplicit-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 build= s OK: > > > > //#if defined(CONFIG_HARDLOCKUP_DETECTOR_ARCH) || defined(CONFIG_HARDLO= CKUP_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. > > Well, it could not be always included because it exists only > on 4 architectures: > > $> ls -1 arch/*/include/asm/nmi.h > arch/powerpc/include/asm/nmi.h > arch/s390/include/asm/nmi.h > arch/sparc/include/asm/nmi.h > arch/x86/include/asm/nmi.h > > and include/asm-generic/nmi.h. does not exist. > > 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: > > $> git grep asm/nmi.h > arch/Kconfig: asm/nmi.h, and defines its own arch_touch_nmi_watchdog(= ). > arch/powerpc/kernel/mce.c:#include > arch/powerpc/kernel/traps.c:#include > arch/powerpc/kernel/watchdog.c:#include > arch/s390/kernel/entry.S:#include > arch/s390/kernel/idle.c:#include > arch/s390/kernel/machine_kexec.c:#include > arch/s390/kernel/nmi.c:#include > arch/s390/kernel/process.c:#include > arch/s390/kernel/setup.c:#include > arch/s390/kernel/smp.c:#include > arch/s390/kvm/interrupt.c:#include > arch/s390/kvm/kvm-s390.c:#include > arch/s390/kvm/vsie.c:#include > arch/sparc/kernel/pcr.c:#include > arch/sparc/kernel/perf_event.c:#include > arch/x86/events/amd/core.c:#include > arch/x86/events/amd/ibs.c:#include > arch/x86/events/core.c:#include > arch/x86/kernel/alternative.c:#include > arch/x86/kernel/apic/hw_nmi.c:#include > arch/x86/kernel/cpu/mce/inject.c:#include > arch/x86/kernel/cpu/mshyperv.c:#include > arch/x86/kernel/cpu/perfctr-watchdog.c:#include > arch/x86/kernel/crash.c:#include > arch/x86/kernel/kgdb.c:#include > arch/x86/kernel/nmi.c:#include > arch/x86/kernel/nmi_selftest.c:#include > arch/x86/kernel/process.c:#include > arch/x86/kernel/reboot.c:#include > arch/x86/kernel/smp.c:#include > arch/x86/kernel/smpboot.c:#include > arch/x86/kernel/tsc.c:#include > arch/x86/platform/uv/uv_nmi.c:#include > drivers/char/ipmi/ipmi_watchdog.c:#include > drivers/edac/igen6_edac.c:#include > drivers/s390/cio/cio.c:#include > drivers/watchdog/hpwdt.c:#include > include/linux/nmi.h:#include > include/linux/nmi.h:#include > kernel/sysctl.c:#include > > 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.I55e2f4e7903d686c4484cb23c033c6a= 9e1a9d4c4@changeid > 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. -Doug