Message ID | 20240219-device_cleanup-parport-v1-1-1d2cac6c884b@marliere.net |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-71913-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp357087dyc; Tue, 20 Feb 2024 04:20:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV4ixtdiJiIw18RKYV8ySfdKGtnHn7hT3HTpYJVMlsTwQT2dPUjl0UBSyCh5T/IVoWwF88P0usdBOt1l3f4GTfSaOKLoA== X-Google-Smtp-Source: AGHT+IHHhUUzexJg27KnXaH4//XgPgzHPtwXp1iBIP+X27EZp4hcELX32UlbiolePmE4mOrX772G X-Received: by 2002:a05:6a21:3115:b0:19e:a1ae:7a95 with SMTP id yz21-20020a056a21311500b0019ea1ae7a95mr13459011pzb.47.1708431646457; Tue, 20 Feb 2024 04:20:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708431646; cv=pass; d=google.com; s=arc-20160816; b=aGn9OYJreIBnODCgxTDGQXMGvx+/z/8NoIb9QW3c5WNbG0EK8QQM+nnDUYzk+FMBUJ aQ0dpIxo2UXmiFYZv9jAFVvhCB/2G92enmcYB+o/iz2E9CDCcb44jYzCM2knwF3jWTjW k0BvU48zLpNG5I9M1NUSZ5HuG7zGEIdGP/dxbyllyn+ASVsYTJD0x/vR9qUcl/HKHZM1 a8WahQjGjUps0QSPUEnai0lx3J8PD662bpil1C6IASmO2ngbHVD6mpAhkqcITwi8KNBo On5wTU1hzAXqIx6ar75N3U7YNivbOh5bKjAIiFNsuQtYIW9pIW4alhtJ9ks2V0xDFEC0 q0Sg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :dkim-signature:from; bh=q5cxuExblNc4ySUrOXZT/i60BTkmMfHliWWRnxN2LN0=; fh=tF36eesAVl+fXUZNLyrEfHv+Mj8LVUHuCsbXEwZ5dHY=; b=dK73dcqLDTQ9Bbu9eNwAkDPT7uJUwSeS76D4tbAWEanPD8jYPJklRlSi5crUWPH0IA vKL9r6kOuxW+AWu7DDIYgUSMxieKJAM+EVArgDbl4V8iYgxuGt3E04Fzy5640Nt7I1Y1 IP2v7GERpSbJtEIkClv+BehfVrduO1kMYiwokyMdRE5yj6fKytrcNHvxxtFPhaV7e2SI u8F4M1d4GGe0vCs/7cnvd7u98YtAZtF0QVBqdeF+516ZtUNDEh1YvqgGIPk9CQQ743sC 1W4nGJcXoQqzuOghLv3ld4ovYeWr7hdh7mAlWEJKv79Qu76FuF55eXopnMrYRWXGsV7I t82w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b=gC6mwSDK; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=marliere.net dmarc=pass fromdomain=marliere.net); spf=pass (google.com: domain of linux-kernel+bounces-71913-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71913-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marliere.net Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ng1-20020a17090b1a8100b00298f66dd39esi6318349pjb.3.2024.02.20.04.20.46 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 04:20:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71913-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=@marliere.net header.s=2024 header.b=gC6mwSDK; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=marliere.net dmarc=pass fromdomain=marliere.net); spf=pass (google.com: domain of linux-kernel+bounces-71913-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71913-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marliere.net 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 1963E285C1B for <ouuuleilei@gmail.com>; Mon, 19 Feb 2024 19:53:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1134B59B6F; Mon, 19 Feb 2024 19:49:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b="gC6mwSDK" Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF3C45823E for <linux-kernel@vger.kernel.org>; Mon, 19 Feb 2024 19:49:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708372194; cv=none; b=H3s3uJYHEHTJjcDaLpphovkaGViNg8B0m12NWZg8dJ1r6ll2b0jiiZF2yvnN6aQ/vLYl8DEnKrVbLW4i0Rqg65cxowMsgW5SP2zI4xdNNxZxb+dCoe0iCMYGazAjrA2L5HGJOdvlRup5gFlUE5OPVNob8rexy8IE9i2IfGaY/8Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708372194; c=relaxed/simple; bh=GDlMaaEvH+4ZAzww1vS7qaXzwS3hQNyr2z3KYzcZF6Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=uX+Obvx59SInN60qWCRDXgA/bh8WsgLP6q3mUfq6dWiIoP4qY7nnz/MUDHEqnouaG1AOaqcUDqBOcMFD3XguWNBSpIlw74C2CWmw7+VVKYjn2EKPXdl7oBFNo+8g2t+GuxdT9UFy3I3BqI/ssZSJOSswUkJ3AG3KH7zHpaSudaU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=marliere.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b=gC6mwSDK; arc=none smtp.client-ip=209.85.210.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=marliere.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-6e09143c7bdso2329303b3a.3 for <linux-kernel@vger.kernel.org>; Mon, 19 Feb 2024 11:49:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708372192; x=1708976992; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:dkim-signature:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=q5cxuExblNc4ySUrOXZT/i60BTkmMfHliWWRnxN2LN0=; b=BPuuSCXMG23HCY1nK8PF3cvowgdGI7+kuq7ETx3MjnMhfeLOtkDUXU9t3PIaEY5XOM MtO6wkmlpVwVihsylWC0MeNDxLD9itUBEKyXxPgyohTLQUG7F95RavPerXxwTnfD6W71 l4ccEiCFHWFKz1H3mVbYA0Tq7hFdyxocd1RB56Oan/4KD14OVeXMLK74UB9Q+QvUYYfy o3Qvfz2GofuFmZHEJMWNe0QXSXiGm0rdqYlin1XltAqybjFuc7096HUNE59vIROix0wQ QFPSMcgajrvx4ZXehH+cgXbBBOi18/sKkTaZY9a8LioEC5BnzUgq/U/UYANqUsWAG8Ef BIeg== X-Gm-Message-State: AOJu0Yy5TIUw4g8LzqfV81zbogchS0Ysxv4Hi8TvFAMESqHsj7Y8y/GM yzMbwLN2EV4JrUQ0zj/kFWvCZJqd4D1o4YrxBbEy2m0GhV3cXVfKWEKWygd6weAcww== X-Received: by 2002:a05:6a20:b21:b0:19e:48e7:e664 with SMTP id x33-20020a056a200b2100b0019e48e7e664mr9473062pzf.31.1708372192022; Mon, 19 Feb 2024 11:49:52 -0800 (PST) Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id fn15-20020a056a002fcf00b006e324e33ab8sm4725779pfb.218.2024.02.19.11.49.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 11:49:51 -0800 (PST) From: "Ricardo B. Marliere" <ricardo@marliere.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2024; t=1708372189; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=q5cxuExblNc4ySUrOXZT/i60BTkmMfHliWWRnxN2LN0=; b=gC6mwSDK9c9cN6GPiykq7vRl+LAoRpYgTdRUePG27mXZ2pK+jYfVPzuFRDUwrTuGgtMykc 9QIaA7gI+M75pSJuU8myQfrmLsT+qHgi4DD2xHiK0Vdj38k0EsmaoQFdggrViHsRVGvKvR jtsV4m1Bv3x+4M+1KY24DQgOJL4BkwJ5EM9o/c8scWEBoWz3ld1tg95c+eSAql0+ym9uvt daqMYyqJhF9NRIQisWzpsZ3LSGDcCfQvSo7ulXZM7wyvt8wVQ+K72HlkmDEeWJuK33kHG3 lhTXtuB90C2gTjbQ3Xd6oZYbtJ9aUbCtMewSXjuxyvp37SLWpkNpwyefBjPgVg== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Mon, 19 Feb 2024 16:50:37 -0300 Subject: [PATCH] parport: constify the struct device_type usage 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240219-device_cleanup-parport-v1-1-1d2cac6c884b@marliere.net> X-B4-Tracking: v=1; b=H4sIAAyx02UC/x2MUQqFIBAArxL7naBSoO8qj4jNtloIk7UiiO6e9 DkwMzdkEqYMv+oGoZMzb7GAqSsIC8aZFI+FwWrbaGu8GosUqA8rYTySSihpk10NqBuHrvXGOyh xEpr4+sb/7nlecmVQuWgAAAA= To: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Ricardo B. Marliere" <ricardo@marliere.net> X-Developer-Signature: v=1; a=openpgp-sha256; l=1065; i=ricardo@marliere.net; h=from:subject:message-id; bh=GDlMaaEvH+4ZAzww1vS7qaXzwS3hQNyr2z3KYzcZF6Q=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBl07EN8OvcjPJ55hQE7ATHXtY8ZqD3qv9/MYzUZ OBE8ZdNDzOJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZdOxDQAKCRDJC4p8Y4ZY pkzJEACloxmdXukC3F/8+gcU19/wbX3/xddgxXrmH0cv5e5DVSSpx7zyUaN7QoDSN8fRy1m2KfF 71a3AuszvKo2/4sjxiveHD54BRcKMKzMnrV5DWtVk4yS/PO/KLFDxcwRHUZXTH3IytF10HcDPWH SQfWSU9r4D1jtQrIo1QyzIKilEPHXLhMhy14ZcwHGujY7ivEB3kEYj3uesgm6A+Gw4hVBj6dDZx p0rLGpUpUa3rMe2BxNBG/BDgsNmc+W8Oa7/ugcIAth4mAhV3ka7CekULOc5KhRje0zPx4vIsdF9 QH85dn4bzorAU2ogjCqRsESs9dTYjFtOgt8EBNuTXeNLPNeTxzuKzgAtm017DM/z4iIfhHk1PbF SJ+CO/x5yaOLS4KP+nuBltwsEWemhWFBkNu9/w5vsMHdfa7s3wzVztu/WMErMK9obiati9uwIF1 ZoV4MGBhI+C+YP7fQyK+BL8MAd1XqzmD37K/hsS+tI0+ic7wSIX57mbr3Ibi7cpalPfmPO8jf1l 4oeDh8go0T/hzRL6Ha7flO0abSFaC+eG0bWslJyfVLP/5rPQyE+um6VcrZkyojjmDcmyomI6n4d 3cPMs9f3HhREEi/f5WOgS5/xtCeQkrCqmtcKdTRICpZ8jxfzA7rPuTCpx6v/4Fjo8DI2TCs1gxf c8bBLeTscqMPWPw== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791420421994994862 X-GMAIL-MSGID: 1791420421994994862 |
Series |
parport: constify the struct device_type usage
|
|
Commit Message
Ricardo B. Marliere
Feb. 19, 2024, 7:50 p.m. UTC
Since commit aed65af1cc2f ("drivers: make device_type const"), the driver
core can properly handle constant struct device_type. Move the
parport_device_type variable to be a constant structure as well, placing it
into read-only memory which can not be modified at runtime.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
---
drivers/parport/share.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
base-commit: b401b621758e46812da61fa58a67c3fd8d91de0d
change-id: 20240219-device_cleanup-parport-ba048a859198
Best regards,
diff --git a/drivers/parport/share.c b/drivers/parport/share.c index 49c74ded8a53..33159392d70c 100644 --- a/drivers/parport/share.c +++ b/drivers/parport/share.c @@ -101,7 +101,7 @@ static struct parport_operations dead_ops = { .owner = NULL, }; -static struct device_type parport_device_type = { +static const struct device_type parport_device_type = { .name = "parport", };