Message ID | 960f34418358f0c35e645aa2cf7e0ec7fe6b60b9.1669461197.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 q4csp4576524wrr; Sat, 26 Nov 2022 03:16:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf4SAeMhT1IjjQH2TiAo8UH5ObRd+2LDS/HiiKZb+qYMpVtyHB6uSeMK3K3w0yvZDvIlXHww X-Received: by 2002:a17:907:9555:b0:7bb:f288:ad3b with SMTP id ex21-20020a170907955500b007bbf288ad3bmr8771095ejc.319.1669461374387; Sat, 26 Nov 2022 03:16:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669461374; cv=none; d=google.com; s=arc-20160816; b=nljd//fcnFa1nnvLWCcEDGf8eoESLOCTIV84vz+UJH6FvYYr5cfGRDGINhGJnd2fRs hXO89lAZ7f2rWtKj776/uoZ/URE6M0xTdNlILCGkwc6aKg0MG0cwGnrixyoQZnMLuydf ohRPutLheU+2VNN3xNvyuMN1enfXMenlGtf1eTZ/N+lGAjvpTDi2eBcDKtupshyUndhh TVv0mtIUAF/Tlin7bXvKxhs1JVEqvAoOA7ypEu8gMBKE/LR9ORifeCAYKBnKJia5yn/1 T8OMuIFXON5lKlbUNnMIdDUYTa3CwPiUzqcg73hY1KMEADY/g711pG33ObGGCs1rSgIw 9uBw== 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=H5J39D0YOE29cdWS3y35gXphMuy/VXB8pMJITXm0S9w=; b=LKxtiJZuUNqd7f/vPl+NyM3z9fTteMTHGWgYpB3mUVPyC6R2qJdmivDUoavzDkIYht JHE094lxHgXgfF/kEOC83ifm5kmW3C2CSJJtTSnds4dxDyPyaD8M+eNPYKqC/XO0p5qb p/sEN7FMcM2VUVennNIKA+rtZTVfYO+0rsY2teOanj/eh7pwXivOLmNi9TOKmwgUWo4C +HRpumCEymofmWToZOdgJuEzn9pfKyB+9niFKcJ3QZbkId00RuQnr2h+4HBE5CyKexGG Z9uDnFAXv+zky6A057PtbTuHR1Y66dXLg8zGSeJvavCELH3VGysritofbRDK/6+IJSTW HM+w== 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 hr14-20020a1709073f8e00b00787abcb1ce0si5919070ejc.679.2022.11.26.03.15.51; Sat, 26 Nov 2022 03:16:14 -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 S229569AbiKZLOP (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Sat, 26 Nov 2022 06:14:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbiKZLNf (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 26 Nov 2022 06:13:35 -0500 Received: from smtp.smtpout.orange.fr (smtp-29.smtpout.orange.fr [80.12.242.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2EAE1AD98 for <linux-kernel@vger.kernel.org>; Sat, 26 Nov 2022 03:13:32 -0800 (PST) Received: from pop-os.home ([86.243.100.34]) by smtp.orange.fr with ESMTPA id yt7gosMV5gfI9yt7hoiV8F; Sat, 26 Nov 2022 12:13:30 +0100 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sat, 26 Nov 2022 12:13:30 +0100 X-ME-IP: 86.243.100.34 From: Christophe JAILLET <christophe.jaillet@wanadoo.fr> To: Hannes Reinecke <hare@suse.de>, "James E.J. Bottomley" <jejb@linux.ibm.com>, "Martin K. Petersen" <martin.petersen@oracle.com> Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET <christophe.jaillet@wanadoo.fr>, linux-scsi@vger.kernel.org Subject: [PATCH] scsi: libfc: Include the correct header Date: Sat, 26 Nov 2022 12:13:27 +0100 Message-Id: <960f34418358f0c35e645aa2cf7e0ec7fe6b60b9.1669461197.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_H3,RCVD_IN_MSPIKE_WL,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?1750557129942706511?= X-GMAIL-MSGID: =?utf-8?q?1750557129942706511?= |
Series |
scsi: libfc: Include the correct header
|
|
Commit Message
Christophe JAILLET
Nov. 26, 2022, 11:13 a.m. UTC
This file does not use rcu, so there is no point in including
<linux/rculist.h>.
The dependency has been removed in commit fa519f701d27 ("scsi: libfc: fixup
'sleeping function called from invalid context'")
It turned a list_for_each_entry_rcu() into a list_for_each_entry().
So just #include <linux/list.h> now.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
drivers/scsi/libfc/fc_disc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Christophe, > This file does not use rcu, so there is no point in including > <linux/rculist.h>. Applied to 6.2/scsi-staging, thanks!
diff --git a/drivers/scsi/libfc/fc_disc.c b/drivers/scsi/libfc/fc_disc.c index 0f32ded246d0..384f48ff64d7 100644 --- a/drivers/scsi/libfc/fc_disc.c +++ b/drivers/scsi/libfc/fc_disc.c @@ -24,7 +24,7 @@ #include <linux/slab.h> #include <linux/err.h> #include <linux/export.h> -#include <linux/rculist.h> +#include <linux/list.h> #include <asm/unaligned.h>