From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46612C2D0DA for ; Wed, 25 Dec 2019 16:08:26 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AE3312072A for ; Wed, 25 Dec 2019 16:08:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="A7dgdOh8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AE3312072A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 47jdKz0k7YzDqLC for ; Thu, 26 Dec 2019 03:08:23 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::541; helo=mail-pg1-x541.google.com; envelope-from=groeck7@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="A7dgdOh8"; dkim-atps=neutral Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 47jdHv2N7bzDqKH for ; Thu, 26 Dec 2019 03:06:32 +1100 (AEDT) Received: by mail-pg1-x541.google.com with SMTP id x8so11746746pgk.8 for ; Wed, 25 Dec 2019 08:06:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gSfzJ6ds8IXkEBlYekF/JAP35cE9VK7DVuScN5rtr4Q=; b=A7dgdOh8g5N+5kh1Nip9xO4MOjiOO1NC9oH4BnLHzUEL2fsL79kLU1+F8zs4r4Esgc vt9uqhl0x6oOcXLODLAdn806O93r9fUjdQ7eLoLnM0oRJnVd4oCZpJuVplmXE8kwwOzP oOoZJ5yBr30pbzmZxmLzvIVp1gb3Bo774Tdp2gaW8BOpzFyVlDBuLwAknHlLXNN4jVSL b3zSNzbSXu2zneY79KuJy2JT0qkV8ph/9XFXFFyxx69pZwnh73sk2unq5yYZqMb2cbC2 oDiGYKCmOQ4qX336e6ckeW1ZDDQTjAlWHi+8h5pwqGPHD62h1zPJe5Z4v+X9dVnznV01 NWZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=gSfzJ6ds8IXkEBlYekF/JAP35cE9VK7DVuScN5rtr4Q=; b=iX/RAXIrB/cevtBjNpoW69ZkTXYlseOFbkQNRpVnPuL9vbsHrcybfb2C4zvPGWsGjw HpLy+9yOtmbrfA5YqlX/GEHtBAdoU0KdkD9j/LbQ31GhhFXYLwCid1U5EuuvCrcRM1mn VDzOpaJ7kYoS9Jde3Tp7n27hv5zklhuOWxILmwcmqS3yecMX/SxDh3tHgUVqDzp5rwum CDZ0NkHh6saqySP9ZU9BWVbQcKX0UPBhHAUdPMcf+/TVl5DyuV5pEmyvEN/jHGxhyRfN +DY3/fmSqitYWa/sWpQHHAXGc+z5R1DFuztTIrdjPYhyXVGZ7xbMw7g0npqKSyU9bY93 faVA== X-Gm-Message-State: APjAAAWy+srt9iFu8qlgza4SFscj/a+CWI2IoWAgvO+uOTLuLHvdrFj0 Pj8+B+xu+GA6Lj1VXcamACs= X-Google-Smtp-Source: APXvYqyxeBrcyEJVROE3Qu5C3iF+WCirFJ1Gck5i/SgcUM2Blnu+Sf/LotuqHbPg5QD1kJmrsYrN6Q== X-Received: by 2002:a63:2ad8:: with SMTP id q207mr43853722pgq.45.1577289989451; Wed, 25 Dec 2019 08:06:29 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id z30sm33510680pff.131.2019.12.25.08.06.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Dec 2019 08:06:28 -0800 (PST) From: Guenter Roeck To: Michael Ellerman Subject: [PATCH] powerpc/shared: Fix build problem Date: Wed, 25 Dec 2019 08:06:26 -0800 Message-Id: <20191225160626.968-1-linux@roeck-us.net> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Juri Lelli , Phil Auld , Srikar Dronamraju , Peter Zijlstra , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Ingo Molnar , Paul Mackerras , Waiman Long , Will Deacon , Guenter Roeck Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Since commit 656c21d6af5d ("powerpc/shared: Use static key to detect shared processor") and 14c73bd344da ("powerpc/vcpu: Assume dedicated processors as non-preempt"), powerpc test builds may fail with the following build errors. ./arch/powerpc/include/asm/spinlock.h:39:1: error: type defaults to ‘int’ in declaration of ‘DECLARE_STATIC_KEY_FALSE’ ./arch/powerpc/include/asm/spinlock.h: In function ‘vcpu_is_preempted’: ./arch/powerpc/include/asm/spinlock.h:44:7: error: implicit declaration of function ‘static_branch_unlikely’ ./arch/powerpc/include/asm/spinlock.h:44:31: error: ‘shared_processor’ undeclared The offending commits use static_branch_unlikely and shared_processor without adding the include file declaring it. Cc: Srikar Dronamraju Cc: Phil Auld Cc: Waiman Long Cc: Michael Ellerman Cc: Juri Lelli Fixes: 656c21d6af5d ("powerpc/shared: Use static key to detect shared processor") Fixes: 14c73bd344da ("powerpc/vcpu: Assume dedicated processors as non-preempt") Signed-off-by: Guenter Roeck --- arch/powerpc/include/asm/spinlock.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/include/asm/spinlock.h b/arch/powerpc/include/asm/spinlock.h index 1b55fc08f853..5ddd48616b1c 100644 --- a/arch/powerpc/include/asm/spinlock.h +++ b/arch/powerpc/include/asm/spinlock.h @@ -16,6 +16,7 @@ * (the type definitions are in asm/spinlock_types.h) */ #include +#include #ifdef CONFIG_PPC64 #include #include -- 2.17.1