Message ID | c1d479b39e30fe70c4579a1af035d4db49421f56.1670069909.git.christophe.jaillet@wanadoo.fr |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2436006wrr; Mon, 5 Dec 2022 11:28:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf6foT0wjqyK/gm05JP07fU6cVUFoomjxgXE30duv7rkY/SNREb4MeLeL1N5j7BR2PXWXzUx X-Received: by 2002:a05:6a00:1941:b0:572:6e9b:9fa2 with SMTP id s1-20020a056a00194100b005726e9b9fa2mr66212026pfk.8.1670268526433; Mon, 05 Dec 2022 11:28:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670268526; cv=none; d=google.com; s=arc-20160816; b=d8wi24gorFDb6Qyqoxaju4iY5GRpIBWHemiVd1CnvFP45cs+c+g8kKdykF0Vu/X3HF qgXd4MQJqNJgktMuDH/WQ8jH+M3khrJkiIbUIRGfvXY/i98T7IKrJf7Do3a5hTNgvXc1 Zkll14HPlOAVaOYW/Si5LLkK3pozD/vrKdwX67jQGcGQx0LgafrkwqWzGCmFgOSnp923 fpnnTBOfoo8z5IPcFi5CTEpPmyxRi4yR2FUw0CJ99HlVPnr87nVH1RHdP572GgWyLxRY Ps/TqrZAdfXUQLFlREzsoud6ixjXoCbruMtTSdPhfRwCL8rPAxzyNJW7OBVy0tMIsBvA bvCA== 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=qLxFlmerz1Z2R1Ty7F5m6ofQc0IFJ7akvitGdLbStbM=; b=kHvuBv2IWuMA3wmf7y6BvnBKggpWKfkETcIe1dp3NLsGQ1q5caLBkM06Lm291SeDBb 3urUlLOYuWVdGks/uvhCr7dEAXiai+1EC3ZJMLyMhmER3cOUihknlR10cahbDww2X9C1 fAjmcQVtMbXwgwoAW/xIQ36nGEkPRwPcF2S6+7og2SIG7TAmBqYXQbZ3ZLcYoY96r3WX hCLU1ikvBRCRgGMBvmg3R5TeIa2SMJ5jrIUrF1mRlGVjrVfHT0ocNm117G93OUf58N4Z ZYUShLQPyBbFIN9hVuzHoYZNNAeK+511OJYN/zEbf4QCwo8FreKOAmm5b+CZFO6nwKMq QLOA== 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 iw22-20020a170903045600b00186c5eb0d48si14823165plb.425.2022.12.05.11.28.33; Mon, 05 Dec 2022 11:28:46 -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 S234215AbiLET2V (ORCPT <rfc822;jaysivo@gmail.com> + 99 others); Mon, 5 Dec 2022 14:28:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234031AbiLET17 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 5 Dec 2022 14:27:59 -0500 Received: from smtp.smtpout.orange.fr (smtp-19.smtpout.orange.fr [80.12.242.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 073E3286D0 for <linux-kernel@vger.kernel.org>; Mon, 5 Dec 2022 11:24:53 -0800 (PST) Received: from pop-os.home ([86.243.100.34]) by smtp.orange.fr with ESMTPA id 2GxgpcFOTOAzA2GxhpQODA; Mon, 05 Dec 2022 20:17:12 +0100 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Mon, 05 Dec 2022 20:17:12 +0100 X-ME-IP: 86.243.100.34 From: Christophe JAILLET <christophe.jaillet@wanadoo.fr> To: Christoph Hellwig <hch@infradead.org>, Jonathan Derrick <jonathan.derrick@linux.dev> Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET <christophe.jaillet@wanadoo.fr>, linux-block@vger.kernel.org Subject: [PATCH v2] block: sed-opal: Don't include <linux/kernel.h> Date: Mon, 5 Dec 2022 20:16:48 +0100 Message-Id: <c1d479b39e30fe70c4579a1af035d4db49421f56.1670069909.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=unavailable 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?1751195590146643469?= X-GMAIL-MSGID: =?utf-8?q?1751403490259000402?= |
Series |
[v2] block: sed-opal: Don't include <linux/kernel.h>
|
|
Commit Message
Christophe JAILLET
Dec. 5, 2022, 7:16 p.m. UTC
There is no need to include <linux/kernel.h> here.
Prefer the less invasive <linux/types.h> and <linux/compiler_types.h>
which are needed in this .h file itself.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
Change in v2:
* No need to add a useless comment [Christoph Hellwig]
* No need to add a new empty line [Christoph Hellwig]
v1: https://lore.kernel.org/all/a2de79b3de30fe70c457953af935dadd49441f00.1670069909.git.christophe.jaillet@wanadoo.fr/
Let see if build-bots agree with me!
---
include/linux/sed-opal.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Comments
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
On Mon, 05 Dec 2022 20:16:48 +0100, Christophe JAILLET wrote: > There is no need to include <linux/kernel.h> here. > > Prefer the less invasive <linux/types.h> and <linux/compiler_types.h> > which are needed in this .h file itself. > > Applied, thanks! [1/1] block: sed-opal: Don't include <linux/kernel.h> commit: 56fb8d90031f71fa8af48fdff8498b9263b9c759 Best regards,
diff --git a/include/linux/sed-opal.h b/include/linux/sed-opal.h index 6f837bb6c715..87f981c70894 100644 --- a/include/linux/sed-opal.h +++ b/include/linux/sed-opal.h @@ -11,7 +11,8 @@ #define LINUX_OPAL_H #include <uapi/linux/sed-opal.h> -#include <linux/kernel.h> +#include <linux/compiler_types.h> +#include <linux/types.h> struct opal_dev;