Message ID | efd8783178f9d15e6d57f10e2e5090a14d5bc923.1673381735.git.christophe.jaillet@wanadoo.fr |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2954061wrt; Tue, 10 Jan 2023 12:27:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXuuXRNH5Vn63Qo0ImNZYQBCaQQeHNHDRALF61WEnrqwdvfjdioNjPHhyLQAInduod9WQwcG X-Received: by 2002:a17:906:6a91:b0:844:d342:3566 with SMTP id p17-20020a1709066a9100b00844d3423566mr51238322ejr.22.1673382454571; Tue, 10 Jan 2023 12:27:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673382454; cv=none; d=google.com; s=arc-20160816; b=g5OTb8Bguyo8s5t2jH3T4GenzL6bju26GuL9THdu+oaZRLh+72hYgNvo4+Wu5fMZgO /Jpp+epPhYVjaP16YyV7k9N7B4JeB0EvgIBNZP3xP1B4VOjAl0JX2ZHb5baPJ0FTUAOD Vw8F1uiNsUa3c/3//KSSWJpr3wIu2jL/jLeegwaPgXVHMlVvRqqG3kDLlmHA8K1AJZ9X 6xBKiwRzoJ0kMAx5IvtN15ivZB2RInEiUdMpxVtaUDXkYyfSINHJw33wIhifM60CV8x6 pGKnHpyyTmru9NXn1FP4dAO9cSWDs2dtubAPq2gtrQLWLLaglIdYC1/lOZQkAqgO8mtK i1qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=8siYKIDJXJxjsG9k1V2lLUsjioxECFgobqUc+B9rhR8=; b=C0v6+wXdwrH/x9PtKsaA7RRlWkICI1sIhOt3/FHUyDWcmSkiXnPlh0dPyN6GqX4Uty w6ezoRGTgSvpj65tGzqcMt+axEOoaeZWJz4nrpmGvMkWFWGCV483morsOnX1+73LzO77 nfo4K+0fKs6u5UjWUU0QZn6CMtALc2VHKlfn0tGETTRLI1ikjRWa9/LqVNUkPbhOGFPC fAfUzxGT89kaq/Oy93RDzxUOiZV1OnyA17w4SniW4DIjiJ9qM/CgT+26928sbhwoO6Ps JhBOD6UpG8XvYB+dxWxivREi2mFMulpRTmFZjPLJ8YH6mak0VToj/pmZ0eV/C5ewllQr r6aA== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s19-20020a170906455300b007c10ac8f9afsi9904983ejq.807.2023.01.10.12.27.10; Tue, 10 Jan 2023 12:27:34 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231939AbjAJUVf (ORCPT <rfc822;syz17693488234@gmail.com> + 99 others); Tue, 10 Jan 2023 15:21:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231948AbjAJUVc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 10 Jan 2023 15:21:32 -0500 Received: from smtp.smtpout.orange.fr (smtp-24.smtpout.orange.fr [80.12.242.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59CC795BB for <linux-kernel@vger.kernel.org>; Tue, 10 Jan 2023 12:21:29 -0800 (PST) Received: from pop-os.home ([86.243.100.34]) by smtp.orange.fr with ESMTPA id FL7cpSMgVPNsNFL7dpVOK1; Tue, 10 Jan 2023 21:21:27 +0100 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 10 Jan 2023 21:21:27 +0100 X-ME-IP: 86.243.100.34 From: Christophe JAILLET <christophe.jaillet@wanadoo.fr> To: Andrew Morton <akpm@linux-foundation.org>, Vineet Gupta <vgupta@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Dan Carpenter <error27@gmail.com> Cc: linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET <christophe.jaillet@wanadoo.fr> Subject: [PATCH v2] bit_spinlock: Include <linux/processor.h> Date: Tue, 10 Jan 2023 21:21:13 +0100 Message-Id: <efd8783178f9d15e6d57f10e2e5090a14d5bc923.1673381735.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754668680697421189?= X-GMAIL-MSGID: =?utf-8?q?1754668680697421189?= |
Series |
[v2] bit_spinlock: Include <linux/processor.h>
|
|
Commit Message
Christophe JAILLET
Jan. 10, 2023, 8:21 p.m. UTC
In an attempt to simplify some includes in <include/dcache.h>, it
appeared, when compiling fs/ecryptfs/dentry.c, that <linux/bit_spinlock.h>
was relying on other includes to get the definition of cpu_relax().
(see [1])
It broke on ARC.
Include <linux/processor.h> in <linux/bit_spinlock.h> to fix the issue.
This will help to remove some un-needed includes from <include/dcache.h>.
[1]: https://lore.kernel.org/all/202301082130.LXMj5qkD-lkp@intel.com/
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
Change in v2:
- include <linux/processor.h> instead of <asm/processor.h> (Andrew Morton)
v1:
https://lore.kernel.org/all/8b81101d59a31f4927016c17e49be96754a23380.1673204461.git.christophe.jaillet@wanadoo.fr/
---
include/linux/bit_spinlock.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/bit_spinlock.h b/include/linux/bit_spinlock.h index bbc4730a6505..4e3b407963f6 100644 --- a/include/linux/bit_spinlock.h +++ b/include/linux/bit_spinlock.h @@ -4,9 +4,9 @@ #include <linux/kernel.h> #include <linux/preempt.h> +#include <linux/processor.h> #include <linux/atomic.h> #include <linux/bug.h> - /* * bit-based spin_lock() *