Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752580AbdGGT5Y (ORCPT ); Fri, 7 Jul 2017 15:57:24 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34153 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751091AbdGGT5W (ORCPT ); Fri, 7 Jul 2017 15:57:22 -0400 From: Stafford Horne To: LKML Cc: Stafford Horne , Peter Zijlstra , Ingo Molnar Subject: [PATCH] locking/qspinlock: explicitly include asm/prefetch.h Date: Sat, 8 Jul 2017 04:56:58 +0900 Message-Id: <20170707195658.23840-1-shorne@gmail.com> X-Mailer: git-send-email 2.9.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 767 Lines: 26 In architectures that use qspinlock, like x86, prefetch is loaded indirectly via the asm/qspinlock.h include. On other architectures, like OpenRISC, which may want to use asm-generic/qspinlock.h the built will fail without the asm/prefetch.h include. Fix this by including directly. Signed-off-by: Stafford Horne --- kernel/locking/qspinlock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/locking/qspinlock.c b/kernel/locking/qspinlock.c index b2caec7..fd24153 100644 --- a/kernel/locking/qspinlock.c +++ b/kernel/locking/qspinlock.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include -- 2.9.4