From patchwork Mon Dec 23 13:31:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Jason A. Donenfeld" X-Patchwork-Id: 182407 Delivered-To: patch@linaro.org Received: by 2002:a92:a146:0:0:0:0:0 with SMTP id v67csp433273ili; Mon, 23 Dec 2019 05:32:21 -0800 (PST) X-Google-Smtp-Source: APXvYqwhc37rr6QpmtpQY/cSR6yh0lgVlE1hSrBS3UBLKEKbwMJxnIjrQxZlrR6qyoZVNTb85osH X-Received: by 2002:a05:6830:1248:: with SMTP id s8mr32420887otp.202.1577107941823; Mon, 23 Dec 2019 05:32:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577107941; cv=none; d=google.com; s=arc-20160816; b=oWfLilfVC2yVbKXrm4IppDBVq05Sf2KBmRphb2vCKp/4SeR/MRtGR1LQ6TJ/ndmlnh KzGrOkG+4tMguKHDZ5egsBHphT8H1HqBMtaA1RC8NXxomjgW61lsqCe/48dOP3rMBnho 1Yfki7WRo9x6LEEysKLqEoK/+d4/pfVCN20sBFTQqIybDpjzcDmoSFquMswTAw9HLkYs Fn+/BSgwaZ0q+zAq26qtb1AHCHggKWA+slKPK+UiSCIWzJ0Pa6edP/sV6LbuSMDOP/ru f4WjhGm6VQ0hMY3ogGJIhX6dMn/KWu6JPUU0dUKbkU42yKPNNVflXHf/FqHTTgI0DR7I qH+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=A16aCpw5BGri6DUYa8n4xishTOiyXsW/7595aLyx8cU=; b=0gBsgklgF7iH4pDBMoDFGhFITsLoYKo06vSvs4DeYNubqA7BFXudJGNCb4KiqmDBCZ IoHdByH+Xys/t1V/rtKg6MTx1tSUiaFOlFVI4G94Gy0eT6s6WAb4HAE5Gtrtgx5P0GXh YNeqbEnG4t8WufQ5ULXB1cbUJM0DlQoU9V7k+1rUuIHPZrIdKHFysabx5rHGMJNe/Uv2 VffDwgVHZJmC7Y1HGaw5RKnntIqm08pW1PfDB0UdWuSVmVxh6XlAaoP1KYyZamN377Gm QoP4GBAVcUpn5Z+4asE6LXD/exzPDvB35x9C82UqzycqZJsfj8GfaZe2qUCo2bF+7s+X RJZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=ZzLpjE7U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h7si8445232otm.165.2019.12.23.05.32.21; Mon, 23 Dec 2019 05:32:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=ZzLpjE7U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726933AbfLWNcU (ORCPT + 27 others); Mon, 23 Dec 2019 08:32:20 -0500 Received: from frisell.zx2c4.com ([192.95.5.64]:59833 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726691AbfLWNcT (ORCPT ); Mon, 23 Dec 2019 08:32:19 -0500 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id f2bb46f5; Mon, 23 Dec 2019 12:35:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=from:to:cc :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=mail; bh=mmYcYH4LHMbEDE4plGTi5YEIo M4=; b=ZzLpjE7U0SsNe56JmUu5gMqPyUB/KF/esW1Y6mi0V74n92J0SsHe6Ra0Z NV3N0Yute+5hFoRjc1irW89o83BeyxPb9ph830CkmtjJgi4lyKfC/UKfVveCHo6W c4g4PrZKrFye+HqTCvuTA7jAZf71BVN8WShgCvayOeGF/qMILKi6Pzh+E8UqCEvJ PluzOfT3kjHdSE97ADU3wSVqPDDmCnffPGn1ZUZQDvqEfRl4YcnkXxd2mvhZqD9H 1P+44O5ZI8mKlLsd3MoPo+r8W93B0Brnj0IHyFf3co4XuLlE/b+1U9N4PKM7LCSS qghCpKAHmg/AphSeJs/Ln/FlAan/Q== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 12bd8740 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 23 Dec 2019 12:35:04 +0000 (UTC) From: "Jason A. Donenfeld" To: pauld@redhat.com, longman@redhat.com, mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: "Jason A. Donenfeld" , Srikar Dronamraju Subject: [PATCH] powerpc/shared: include correct header for static key Date: Mon, 23 Dec 2019 14:31:47 +0100 Message-Id: <20191223133147.129983-1-Jason@zx2c4.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Recently, the spinlock implementation grew a static key optimization, but the jump_label.h header include was left out, leading to build errors: linux/arch/powerpc/include/asm/spinlock.h:44:7: error: implicit declaration of function ‘static_branch_unlikely’ [-Werror=implicit-function-declaration] 44 | if (!static_branch_unlikely(&shared_processor)) This commit adds the missing header. Fixes: 656c21d6af5d ("powerpc/shared: Use static key to detect shared processor") Cc: Srikar Dronamraju Signed-off-by: Jason A. Donenfeld --- arch/powerpc/include/asm/spinlock.h | 1 + 1 file changed, 1 insertion(+) -- 2.24.1 diff --git a/arch/powerpc/include/asm/spinlock.h b/arch/powerpc/include/asm/spinlock.h index 1b55fc08f853..860228e917dc 100644 --- a/arch/powerpc/include/asm/spinlock.h +++ b/arch/powerpc/include/asm/spinlock.h @@ -15,6 +15,7 @@ * * (the type definitions are in asm/spinlock_types.h) */ +#include #include #ifdef CONFIG_PPC64 #include