Message ID | 20240201224549.750644-1-maz@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-48957-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp72535dyc; Thu, 1 Feb 2024 14:47:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwHgGrm0aYiCpDExA9FPI2313r7qkIaRKukoxHkleskjkuvWq5Tvnl/JJ5dRQNbCVj06aP X-Received: by 2002:a05:6a20:e186:b0:19a:5485:fdef with SMTP id ks6-20020a056a20e18600b0019a5485fdefmr654602pzb.7.1706827628939; Thu, 01 Feb 2024 14:47:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706827628; cv=pass; d=google.com; s=arc-20160816; b=VKoPpJllv7VG5Sx3Y/RA+cBLmNebTKX7IaKOUMoHuphlrYS6+YPz973Ta4W5s1SaxL RGYOnkI7XqNfsS5LDxFYyX18NgtITFv3jCNdlMdtjU1Srd5K+553qb7PZ6c3TqNPvdgO siGYlEnbWMLdpfYE2wXv0q4G/xuFcJt/0CDbxWuwMDkAISh+2EkPFxspd1hfsYFqXN5C vr+3DKI2IGJ6olnVQYUKA5mhql863SE0fod1nYwBe4R/qtzCNWB8xvS+hFdEnlNBjHzJ SQEPiX90x1f3P3W4FoNWOqELhAdNIL3YdtPveh5pqVZdhGoM/fqnM0FHlddkibjEedyZ eaGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=g3oSciVMrHXcLlQMXq2zK3WYFmcosrqsSoHedzVkXEI=; fh=alM898wLaYa4uSAmi+FfzdHDBaAZo1KbJ2qbs4gLP3o=; b=Bz/sQ8FIWMlIK+0ickZS/RYeWdipWv7QTIDHzCyDibq+tARW4R50e9ohPU0eLkXLPv RYK0LLL0qipBUKKl//hsIN/LtT0X0nk8KvdRY7ipdoWL/2EbQ0/69tMdqStqjqc8VIls DJirnrWiZ0j9TeoB+uttcSOtlNaB7tE+Z/1VJX6SXkhQumdJ9eqSzmbetMw7ZGetVXyw jTqxcwFIGG6czFEE/9SZhyHcaWjfo8grDq6mOjGgzRw3P7qChB8Ylu8c5lpKrht4XW2v 6rOs9y1ycp5LnyXIZyhJS0jP3Me7ET761P9/mC4nAfw4uP+vic975vPBn/lh+pxwJesu EexA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kRvTnHDz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48957-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48957-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCW/jWdk2G1O3TSlJOUQwlbporbtDmPmhPr5oaT61NJVQ8t9donUvcp1wBA3CSuUcy526EHE3w/DjNzL3MsS2L4vC7v7ZA== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fe22-20020a056a002f1600b006dbe1b70210si390895pfb.176.2024.02.01.14.47.08 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 14:47:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48957-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kRvTnHDz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48957-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48957-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4E84328ED8A for <ouuuleilei@gmail.com>; Thu, 1 Feb 2024 22:47:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C50C645C06; Thu, 1 Feb 2024 22:46:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kRvTnHDz" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F421541232; Thu, 1 Feb 2024 22:46:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706827572; cv=none; b=nX5r98+0Ni+KNaU8zVwqWlNGje2tWMH3TKmbfV56roXCoxLPH7+0tulYGx5If0Svv8EaFnuew+wQydzNU9IHv+K738eeMGRqIyyF08z3PFM16YgxFlA9dXgCROqA5m8PUfsyEp7NjT/2uQJgx0g/XpTeSKI7AG2lzc2foUpn9Bk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706827572; c=relaxed/simple; bh=YJS+2cuu7/F2wdO4i1rFQNUC6HDTDFemAVViu5UIbAM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=KkBA+jj9c2Fuk7zkzKQX0zgmH1KQOGq1mkQ6vS3dqqRQ2ES+MugdxJZL3YO1vfqvV/jr2m4mYbkP4TsZTTDJ+k3nBwwzGlEmvrRbPh5FeJi1Ut6d8EGEBlHiv3NALAmKskerSrG4BBXgbEBZy9Q3CNs7TmHSKvt0iHNe7X39aYQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kRvTnHDz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DF17C43143; Thu, 1 Feb 2024 22:46:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706827571; bh=YJS+2cuu7/F2wdO4i1rFQNUC6HDTDFemAVViu5UIbAM=; h=From:To:Cc:Subject:Date:From; b=kRvTnHDzVYF4uQlE13BUkFgITbueGryC1RYcfbpff6uIjk9ePxXLod89vLFV+PjCQ UXwxQhEWJwi3P0e3yTna4Qr+bT0vPwI+I/02ovZ3gWKE/cN8U7kTUYFDoeJ+9Wq19C VDeuptVOHhBM3Y0mCbguz7k/+xoDB2vkgqf+bSd6yXpCByy7LGXGdIK8NYmsX08Y7C ng+j0eiuYwY1UnTH1va8/0eyKjdkerkBPqRvSude/ReEqpatHWFWWpoziZFtbuGaII /7s8Skk966NryO8c2oZVhXDBNoc7kQkTVckqdytraNuFVTmWgG65iYKK16l8bLOVTr Z8cLmYJD1gZNg== Received: from sofa.misterjones.org ([185.219.108.64] helo=valley-girl.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from <maz@kernel.org>) id 1rVfou-00H4ug-Fq; Thu, 01 Feb 2024 22:46:08 +0000 From: Marc Zyngier <maz@kernel.org> To: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org Cc: Song Liu <song@kernel.org>, Yu Kuai <yukuai3@huawei.com> Subject: [PATCH] md/linear: Get rid of md-linear.h Date: Thu, 1 Feb 2024 22:45:49 +0000 Message-Id: <20240201224549.750644-1-maz@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, song@kernel.org, yukuai3@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789738487568095092 X-GMAIL-MSGID: 1789738487568095092 |
Series |
md/linear: Get rid of md-linear.h
|
|
Commit Message
Marc Zyngier
Feb. 1, 2024, 10:45 p.m. UTC
Given that 849d18e27be9 ("md: Remove deprecated CONFIG_MD_LINEAR")
killed the linear flavour of MD, it seems only logical to drop
the leftover include file that used to come with it.
I also feel that it should be my own privilege to remove my 30 year
old attempt at writing kernel code ;-). RIP!
Cc: Song Liu <song@kernel.org>
Cc: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
---
drivers/md/md-linear.h | 17 -----------------
1 file changed, 17 deletions(-)
delete mode 100644 drivers/md/md-linear.h
Comments
在 2024/02/02 6:45, Marc Zyngier 写道: > Given that 849d18e27be9 ("md: Remove deprecated CONFIG_MD_LINEAR") > killed the linear flavour of MD, it seems only logical to drop > the leftover include file that used to come with it. > > I also feel that it should be my own privilege to remove my 30 year > old attempt at writing kernel code ;-). RIP! > > Cc: Song Liu <song@kernel.org> > Cc: Yu Kuai <yukuai3@huawei.com> > Signed-off-by: Marc Zyngier <maz@kernel.org> LGTM Reviewed-by: Yu Kuai <yukuai3@huawei.com> > --- > drivers/md/md-linear.h | 17 ----------------- > 1 file changed, 17 deletions(-) > delete mode 100644 drivers/md/md-linear.h > > diff --git a/drivers/md/md-linear.h b/drivers/md/md-linear.h > deleted file mode 100644 > index 5587eeedb882..000000000000 > --- a/drivers/md/md-linear.h > +++ /dev/null > @@ -1,17 +0,0 @@ > -/* SPDX-License-Identifier: GPL-2.0 */ > -#ifndef _LINEAR_H > -#define _LINEAR_H > - > -struct dev_info { > - struct md_rdev *rdev; > - sector_t end_sector; > -}; > - > -struct linear_conf > -{ > - struct rcu_head rcu; > - sector_t array_sectors; > - int raid_disks; /* a copy of mddev->raid_disks */ > - struct dev_info disks[] __counted_by(raid_disks); > -}; > -#endif >
On Thu, Feb 1, 2024 at 5:08 PM Yu Kuai <yukuai1@huaweicloud.com> wrote: > > 在 2024/02/02 6:45, Marc Zyngier 写道: > > Given that 849d18e27be9 ("md: Remove deprecated CONFIG_MD_LINEAR") > > killed the linear flavour of MD, it seems only logical to drop > > the leftover include file that used to come with it. > > > > I also feel that it should be my own privilege to remove my 30 year > > old attempt at writing kernel code ;-). RIP! > > > > Cc: Song Liu <song@kernel.org> > > Cc: Yu Kuai <yukuai3@huawei.com> > > Signed-off-by: Marc Zyngier <maz@kernel.org> > > LGTM > Reviewed-by: Yu Kuai <yukuai3@huawei.com> Applied to md-6.9. Thanks! Song
diff --git a/drivers/md/md-linear.h b/drivers/md/md-linear.h deleted file mode 100644 index 5587eeedb882..000000000000 --- a/drivers/md/md-linear.h +++ /dev/null @@ -1,17 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _LINEAR_H -#define _LINEAR_H - -struct dev_info { - struct md_rdev *rdev; - sector_t end_sector; -}; - -struct linear_conf -{ - struct rcu_head rcu; - sector_t array_sectors; - int raid_disks; /* a copy of mddev->raid_disks */ - struct dev_info disks[] __counted_by(raid_disks); -}; -#endif