From patchwork Thu Mar 28 20:45:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13609612 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 5A3E3139CEB for ; Thu, 28 Mar 2024 20:45:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711658759; cv=none; b=CM+CS9+j6QL3a7SeIuacfGbpLOe4t1WbVLJw0e3YfnEf1Y0/67YNADfpgYXC9dQIEnM0ZDPyxI7cEfuJ8CsIjzaegtKXPupjryqYRN28m6y6C5DjVwevWYHJaVUQV7l0dAxl8n4M7Pocq4p2WW9iGrjKil3SCIRpeip3tlOSmac= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711658759; c=relaxed/simple; bh=8u2WDjTPHdiEZkQDrWw+W3Bt81pM6qe2dZqzxwZgkAQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XF3cIY9h/efy4u8hFnj/K00Psl2yZGudFQKRgbiRVYB6QJgdfn5I61jbo0ncANBfMm5y9EPw0d0OYytEmE6jBvrm/Cjd0YhmrZXHb64R+D3LrVOLc2Lei8Z/hdEqXcbAc+cYSXsCNH/mLgKw2mvB+b8rXs1fXQTEooS8zg2besg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=yEIVrGPf; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yEIVrGPf" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4149529f410so13195145e9.3 for ; Thu, 28 Mar 2024 13:45:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711658755; x=1712263555; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=fnMf7iflmd0eRFCuZh+6Vo82Oor0YqJaFDCJo+pzSxI=; b=yEIVrGPflRB3hhBFIciS/Qb2zXJIzgNVLMHhcvBOPAuWJhvUuFscbVtxiSvoz5mbXl IO0AvCf3Gw8gFs533X6yQuoXuSwZCmUgZvLdprARXEM3Fdmq0atVAjcOY/cz6kulRFub h0iRUlXyvqpCOlCroTw1jV02WTXXohsDZ3PVU8VSYYCUDFVeaMDnZn9MQTgIsoNElDMB YSwWizO7gl6RoHo0t+fOjVGkofR/QLFV4Mx0ZemhCKOwwQb3BcsfEaUrhDmEfBpbUPOk P2s33m+o/rmqpOeWB4lHeN8RH6iajPVvciizYDtTYNOc/D2VzAadKf4z3rP6km6hDgQu DBDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711658755; x=1712263555; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fnMf7iflmd0eRFCuZh+6Vo82Oor0YqJaFDCJo+pzSxI=; b=MkUWepmf4WGS8UqmYT1QDFAle5+tnBpF+GUE4RGVK42fHNUN5b88RE2edju+2MFh97 aYJwDITbYZJW8N96X6Z4lqoQGzSc/GQJ6zve50gl50V9YR/nevpgJe7xmBZlv60OxRfY N+yFGlmVVL9CecBk9DMxFqYrFHjUFdsPqVHa4CjuktIvT1Q+tldLKyAbDoakjju4Q/Pv G0sQspmjTIQRxDDSr9M6EzI3XXr91Ba1DfhDLF51akTW7NqD6Qakvn2UAYMdGT7ltr6/ 4NyuA+XNOF4HX0Gc2RsdGDX3l5ieY9PwKD/mAACijITAI9GBhWH4gI0oOHr2CF8+fD9O OogA== X-Gm-Message-State: AOJu0YzAK63TKWtz6TsmpaLTkmx3JAtzZcVe1zp2EgHAHIIl5F4SkUTS U2dckU+ceiZLFvQW85tvx18saTY2DI647wYlvjPlEHiTScLUrJoBr8eOryvSCoY= X-Google-Smtp-Source: AGHT+IHX8dkhxy+KLMF2mKTQbUgIqs5VBRngtLE1PyFZfF8keCYuLSvcPQLZgj8Kj9ueR6bizS5sSw== X-Received: by 2002:a05:600c:4fc3:b0:413:ff13:cd8e with SMTP id o3-20020a05600c4fc300b00413ff13cd8emr465013wmq.5.1711658755444; Thu, 28 Mar 2024 13:45:55 -0700 (PDT) Received: from [127.0.1.1] ([178.197.223.50]) by smtp.gmail.com with ESMTPSA id t15-20020a05600c198f00b0041497459204sm4762697wmq.12.2024.03.28.13.45.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 13:45:54 -0700 (PDT) From: Krzysztof Kozlowski Date: Thu, 28 Mar 2024 21:45:45 +0100 Subject: [PATCH 1/6] scsi: store owner from modules with scsi_register_driver() Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240328-b4-module-owner-scsi-v1-1-c86cb4f6e91c@linaro.org> References: <20240328-b4-module-owner-scsi-v1-0-c86cb4f6e91c@linaro.org> In-Reply-To: <20240328-b4-module-owner-scsi-v1-0-c86cb4f6e91c@linaro.org> To: "James E.J. Bottomley" , "Martin K. Petersen" , =?utf-8?q?Kai_M=C3=A4ki?= =?utf-8?q?sara?= , Alim Akhtar , Avri Altman , Bart Van Assche Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1919; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=8u2WDjTPHdiEZkQDrWw+W3Bt81pM6qe2dZqzxwZgkAQ=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmBdb7RfbHlZVhD4z3IoRhL0zEc1KJddr3qXf1f 2BE9AgbUwKJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZgXW+wAKCRDBN2bmhouD 13gWD/9ibeYZZ3UG9aQJBbeXDB4qGQWLd2z9xYCBUfU4PVF4Hgf6308iUR1Su97JeKT6QcYoQ8i W/Ea7vRm9SF7O/fAh2r2ScTc3Y5Pkc554JYmThKxhAZGP8OFPG1VnZXjFAhMeJ5ZhUTRNNwOOi0 12JTxk9lBstd+u7ePKorWdcffKZ/uioEor6ts/Pw4qP2wVztvHgX0XlxJn50qWK2NP50Ptd3c4P LzwRzcn2q2cCPhAHAidEPgmmnRsJh83UeueIScgDQkVr5VFEn5Y75ely/ZyZjvjJ/5vAmVKiJUA PRG/D4ljdHrTAuxPZbptRlwcphDjBZ3Pws6Exe8mxMbCw34dBcWcCIatjaShNw0coCoal2bWpz+ 0Yf+jKr8tPZjBGuqskTJRXxyiLPkCkKeYE83FAzEBTjBYG0V+INlvFYwEoUuOmyBDMyW+Vo9ME6 hy3PEVfMaYeHL/TS6ig5p63eOCXVvnXOUos7yiNeVqDkLq5Tqes6Vji3URNMSiwRjnp/yYtILv9 T/UA15GDlkrRyVfyQDMrpiqtOJ5lWttmEQD0uaK/JdyXrdCO0MnEgU1yq0KINFF5zVp3vCHSfQJ C9haXIhLSov+9HN5esOfuyxODIkBlDGBGuRfQvrBIX+6LtV1j1lzV1WjlVwwYOZH6L+DU81ZVxD nGyL6JlZylX+/qQ== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Modules registering driver with scsi_driver_register() might forget to set .owner field. The field is used by some of other kernel parts for reference counting (try_module_get()), so it is expected that drivers will set it. Solve the problem by moving this task away from the drivers to the core scsi code, just like we did for platform_driver in commit 9447057eaff8 ("platform_device: use a macro instead of platform_driver_register"). Signed-off-by: Krzysztof Kozlowski --- drivers/scsi/scsi_sysfs.c | 5 +++-- include/scsi/scsi_driver.h | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c index 775df00021e4..b5aae4e8ae33 100644 --- a/drivers/scsi/scsi_sysfs.c +++ b/drivers/scsi/scsi_sysfs.c @@ -1609,13 +1609,14 @@ void scsi_remove_target(struct device *dev) } EXPORT_SYMBOL(scsi_remove_target); -int scsi_register_driver(struct device_driver *drv) +int __scsi_register_driver(struct device_driver *drv, struct module *owner) { drv->bus = &scsi_bus_type; + drv->owner = owner; return driver_register(drv); } -EXPORT_SYMBOL(scsi_register_driver); +EXPORT_SYMBOL(__scsi_register_driver); int scsi_register_interface(struct class_interface *intf) { diff --git a/include/scsi/scsi_driver.h b/include/scsi/scsi_driver.h index 4ce1988b2ba0..5c6724322112 100644 --- a/include/scsi/scsi_driver.h +++ b/include/scsi/scsi_driver.h @@ -22,7 +22,9 @@ struct scsi_driver { #define to_scsi_driver(drv) \ container_of((drv), struct scsi_driver, gendrv) -extern int scsi_register_driver(struct device_driver *); +#define scsi_register_driver(drv) \ + __scsi_register_driver(drv, THIS_MODULE) +int __scsi_register_driver(struct device_driver *, struct module *); #define scsi_unregister_driver(drv) \ driver_unregister(drv); From patchwork Thu Mar 28 20:45:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13609613 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 D0F3113A409 for ; Thu, 28 Mar 2024 20:45:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711658760; cv=none; b=LtScPAWl0eee5b1BqGEx/P8DehNXGfMd/Mc4eFgb9KLGjvHz7YJae2XSIFAdqNp/7w2ag4HNiuPDOGcpAgSG6Qhx9k5h9NsBQ1mMLsQZSCM96F65Iy93WT6WZlm4aX6HfdxiFY95LM3SfeChm7cM+MOhAWjB8Ro3F8rRn50xAsw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711658760; c=relaxed/simple; bh=gN916IcSHjAxGrt7q/maZ9c7wFkfPaWOLEW7VAt440s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TqWB9c4S0XNZMFXrKSdY5LwDogfz/XoDQabOeOlvihJGZE/Ny/QXWy3NYXNWmeEGd1O7U+GeiAf0LOeP50oje0nFFY0C2Ji5MDFfzqPqeWou5Bkx91RYG93jU/SRwKw5UOga+YSncUPtQ580GYm7dbJ2CzL1qNWhqwDjfIjL42c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=pi17pcPA; arc=none smtp.client-ip=209.85.221.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="pi17pcPA" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-341d730bdfcso1156858f8f.1 for ; Thu, 28 Mar 2024 13:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711658757; x=1712263557; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Ic1TsjIr/XGxwgAahTlTahad7ksIOvKlntEYIZsJCJ0=; b=pi17pcPAmMVVf78RpKd7BV1QAtSy89WTEVLmhuFncOIhKrflruETmyB1gDw2lOKuaL 0Q09qyXgD78BPLT4Q8vWyXYrdEBfKXNt/y6xl7cIaNkDnPhpHeXSataMGZczIqyaU83M 4nIx/22JS9t0cqTE9Lmfn1uk38khqiH3NZcF8766AYHuGMNi64zIAl846PFQSCdJ9cqT LIHCrfWCRY0keOdehuIEVXjChlPioIoTkw5YPoa1a/Hcvhdfiw+E3aYXdzHX4bn51FA7 yiERvIcufgeMxazyj5LNiRoIj2c0JOUe/8+75sDdWKDNBx2mLaltTIuv3ozmHiE2ozH1 0QoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711658757; x=1712263557; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ic1TsjIr/XGxwgAahTlTahad7ksIOvKlntEYIZsJCJ0=; b=FAvNGtN34JnqB/QqamKioe+KgazWRU7DXY5qDHPeHAo5X1DPdD4xdgfVbDobSMNNad 1a2Zf9ZxWieYvCj12DqX8rOg9McVy5SS7De69JDoxFPgcDYtzW5ShXBxwyi3ham9S0mH AOwKlMioZmOlApPDrP7qrzoa1EoilxcBprOul9r5VYFo/0st91ALntknbEV9u9PT2erd tNnWBLDa8zus9vJP7WaMJh2a68617qqZqlISrZzw14y588RIunlyWeOIZvf2lSjb0xPc +JvDsAO0V4HKtVeYNN6Cs7qlLRquZiriPCVesxE0sYBJbqn1Iwu3sfZpARM5kkGzO7dv 9qmg== X-Gm-Message-State: AOJu0YwDyAazqLnAmE/5wjfOgXuxP7QKVPLRgU53bNn/CnddpFt50VTF BI/gsCQtOVvADShA+iWse3dLrTuqFMsCCiqRWSo2np2Ag1aQAr2bDAL1Yudq+Ao= X-Google-Smtp-Source: AGHT+IFuSXRqSgUvsp9AV89+cl6HvFlJ1yqTwJU6euN4ZjRI0tQoaL3mmRe80mIonpzVjyj5rVtVnA== X-Received: by 2002:a5d:58cc:0:b0:33d:c572:7641 with SMTP id o12-20020a5d58cc000000b0033dc5727641mr150048wrf.14.1711658756980; Thu, 28 Mar 2024 13:45:56 -0700 (PDT) Received: from [127.0.1.1] ([178.197.223.50]) by smtp.gmail.com with ESMTPSA id t15-20020a05600c198f00b0041497459204sm4762697wmq.12.2024.03.28.13.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 13:45:56 -0700 (PDT) From: Krzysztof Kozlowski Date: Thu, 28 Mar 2024 21:45:46 +0100 Subject: [PATCH 2/6] scsi: sd: drop driver owner initialization Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240328-b4-module-owner-scsi-v1-2-c86cb4f6e91c@linaro.org> References: <20240328-b4-module-owner-scsi-v1-0-c86cb4f6e91c@linaro.org> In-Reply-To: <20240328-b4-module-owner-scsi-v1-0-c86cb4f6e91c@linaro.org> To: "James E.J. Bottomley" , "Martin K. Petersen" , =?utf-8?q?Kai_M=C3=A4ki?= =?utf-8?q?sara?= , Alim Akhtar , Avri Altman , Bart Van Assche Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=648; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=gN916IcSHjAxGrt7q/maZ9c7wFkfPaWOLEW7VAt440s=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmBdb8GTSlzu8DtKZvzSQzb6fUGShz2JAX+naIT dBLA8agNUyJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZgXW/AAKCRDBN2bmhouD 10gSD/9lsHVyjZ4k8JwzJLZQZnjn3DJzmE52DtyVoaMx+FIDZmj7PwJr3KJkPLwL+W25JmAkoIk PEIhpAFvHqcZIPPo5bCJ1sAIvoHbQNnWQmKC5ioG9YjWbX0MYvnNiDZj0+y38dfJYqesRnKBBVh +MEK85Y/Rk22R+EoMdqhzH273DG0xuZ/kMl9xWhddg97kzb9Bla0fL57aHaHr70uJIExOH9DDS3 QvQ+J4+A3ILkzqts9CrpbmYPEaLMDHBYe7TFcZGSRADx/KEX6yxxPODRufFavRVKX2qgUJF6Y2q cXaEE3hQVgaFxRtp/ouuDQTNq6DMbO9SdTqk9eDeIPF/XUEeZnE/IRtOQZk+Q06Swq8a4Z4OWdk ux6FSv3DN3rkV607X4QIvlfz+x4Gc+y+a1qoXpvhhqNteBQiF74haLh5+k/DaYIp7hYuFm6Uyfx jIGZvddtAB1GpKmb+G17ZrXk2QSIuTU9zzoPPKXGx2JqNuC/abvYHUeTpVtFyaKcrVPTj+MfUMv lB6ZoeqnRpnqsmzV/1d2UDiDZaHmqtePcSHLZM64nKyHTIMqUNRCLuUxb5oxclYMmMRo0xKoGBS WTSEVTITwUCOBdKm1KOiB37bnbD9bsFIwaJB99PxvEDJjP0bf1ceGwgeffxN5cC3XHe4s+ZqEpq t2wTURsrAsWa6Ag== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Core in scsi_register_driver() already sets the .owner, so driver does not need to. Signed-off-by: Krzysztof Kozlowski --- drivers/scsi/sd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index ccff8f2e2e75..0b447f1bc1a9 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -4185,7 +4185,6 @@ static const struct dev_pm_ops sd_pm_ops = { static struct scsi_driver sd_template = { .gendrv = { .name = "sd", - .owner = THIS_MODULE, .probe = sd_probe, .probe_type = PROBE_PREFER_ASYNCHRONOUS, .remove = sd_remove, From patchwork Thu Mar 28 20:45:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13609614 Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 7A23B13AA31 for ; Thu, 28 Mar 2024 20:46:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711658762; cv=none; b=NaEVcJW4NY5yIKnbZcxMqLxEjhpTDeblmH+BaSS7Xey3ZbEz600V/QMIjmjuYn3NdicnK9njnq4Arraf7ZTq48Cv3phMIRiqQcSc2ER4C6+xUO27kAbVmVVEZ3/4uU7V5pRcfgzwly6C51H7+OhZbJJRkOCxwDoeCHWQKNi32pc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711658762; c=relaxed/simple; bh=FyCdxpH9XjiLZuhZusE9nTyiM24GT6Niq9ahMAepkQg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=J/4QdMHZA9nw8NqOBZdinj6UH7PxkD1uWSjJV3IB6R87qh4N88JfjrM7qYOVTAevkxvlhSf2t1DDUI/+dlHxelxygh+S6w6x9sPiBQH3wH8udJ4ZirHqvesgTp9/8zDFUVdZdIXNFrRmUTrZ0Faveckxq2GS91x08mr7GcGfZfA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=OiEGMuqs; arc=none smtp.client-ip=209.85.167.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="OiEGMuqs" Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-513dc9d6938so1661280e87.2 for ; Thu, 28 Mar 2024 13:46:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711658758; x=1712263558; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=3Vek/NiKwAK+DDj3owjWRVLp6pIhVHeMYaXJdc5o4EU=; b=OiEGMuqsyNKowMpjVV5sVMRWi6jSZFw7MPwWTwiNyqZYn+C3Mxp5Ahd8EjMKd6KZPz 1yGB8V/nVzjZgnr3AiKf8yLhExp0CgMrGtwZTPaC7pOY6fRtRJNuN8klH3eUCljA300j 5lTYOsjaKQs//5BRQHmbW4nqf6lfcz2Tp0XdP/QTub2QZhiWSOddyJGGqHGYKfWaC2fr s5Ec4cgW3Av9xVcq7UPQOuxpqR+4+GyhzOmXg0DshlVorigk7NvondxzCDum1K/S3nud zInVQM5tzQIQJPSbxk/cO3DyWqpAtUEqN51CpESrYDtKr5sVk6tSAS5GgizTEAamOUd2 qWVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711658758; x=1712263558; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3Vek/NiKwAK+DDj3owjWRVLp6pIhVHeMYaXJdc5o4EU=; b=khSiimsPbBYn8C9K4QWNz0a1M3CwnDtI3ezhY01I7Bu3KAdtpY20ijtI22pbvV7QqL h9QSMJlsCd6WR0k+UXhJSGpKZyXtQDVWdW6bRj/wl/sVCWTTmMtJzCoHtFaKpxra3qRH UN/UYnCO2RMrhpOhxe9OkqGW4XPlL6D5BQW4kSiNkAAH9qkzp1uPjsiMw17zqn3ZPewR qDFJun272yZOVwkCQfVIAVM6TumFj9tc3drJXoWdyAvpeIcT9WacZjVFXuzxBKA5vWOZ J2JrTw2zAhjVJdiOPwLAqbuDedCSQ4ItMu/yuKjzinHSoZdqQsv6gIIYco1MA74DO7fh QZoA== X-Gm-Message-State: AOJu0Yx5Uk72q7va3n9llm+kDkn/PqgqXY1fZU1jVGJ9L/8smcFkV6F5 MhwugnkPRhxr4hZaAjmoVijqiO96lXmRpGScPJ2jWO1dDcAs8I9FttfbVaco47Q= X-Google-Smtp-Source: AGHT+IEyjo4w4ah6WxoLmcgMbUjY6TtZEug1AgN4ONCl8yW8X3L1Wk1pKNJLDIO1BWpZ4Pl/N/JjIQ== X-Received: by 2002:a05:651c:221f:b0:2d3:f3bc:bb65 with SMTP id y31-20020a05651c221f00b002d3f3bcbb65mr219874ljq.11.1711658758369; Thu, 28 Mar 2024 13:45:58 -0700 (PDT) Received: from [127.0.1.1] ([178.197.223.50]) by smtp.gmail.com with ESMTPSA id t15-20020a05600c198f00b0041497459204sm4762697wmq.12.2024.03.28.13.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 13:45:57 -0700 (PDT) From: Krzysztof Kozlowski Date: Thu, 28 Mar 2024 21:45:47 +0100 Subject: [PATCH 3/6] scsi: ses: drop driver owner initialization Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240328-b4-module-owner-scsi-v1-3-c86cb4f6e91c@linaro.org> References: <20240328-b4-module-owner-scsi-v1-0-c86cb4f6e91c@linaro.org> In-Reply-To: <20240328-b4-module-owner-scsi-v1-0-c86cb4f6e91c@linaro.org> To: "James E.J. Bottomley" , "Martin K. Petersen" , =?utf-8?q?Kai_M=C3=A4ki?= =?utf-8?q?sara?= , Alim Akhtar , Avri Altman , Bart Van Assche Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=619; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=FyCdxpH9XjiLZuhZusE9nTyiM24GT6Niq9ahMAepkQg=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmBdb93iiqLckWCSKqHjac/3/Uf4LKLHI5MKt6m aVo06zoJ3CJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZgXW/QAKCRDBN2bmhouD 1yzmD/9R3FUYr5ESxPbI2jXJHHC02UB5y6MLe+jEYvFu1qpCAlFKAIXT/rlCaCWkSYYXgObWrOW dpd7ozKitOl1MLFAwoeN5IRCL6jaJkKwQ0ZTHNL0j1dLqQBeKcqObzjHoK0/ouklOuto0EPIfI9 kOlMWLbe2s1Vj7d6R+7QJeljl/+4gcEqeFLUCESuAb3z/5QXgwWwRanFIQnyCEfGPttJRtWOuBU AplvKtc5TsaHrCrqrAUqV5JdneIfFzGnekNC5bUOMJA7zbrcYxEywleCm+dyMYY4XHK94BUGYSK l1zLMvwnbxCIJPyRhL/M68a8WWDE58xUE3qC2YlSU3KtmdCZ/Um5vm7PkSJizC4qauyCGkv3cGe q4YknuS6PFOb0z+kWCnbYlLDSrSMRMCjMxuMJEhgGkVSgPHJQDLbt1TsitBsdfMwZIH8tbQy4jh wMQYCJFcmmrBREi64cftGr1T1Msa8OE23W4kDqz0TmYX49eJ7AllL1tbVyQIku18+WC2Tj4+OPM lCTwjdaguhAqpwL9AMiJWJI6omYyIkrd1j6yLAXXSTScoIQKIuC6tVdQk1NljW2WsvtfUe7oueg Q2R6OSRjJbBZv4e5sIJ/uRqUJ1yD/m9r2kA9LnFgaD+qz+IgXf2nVwOerZMvxC9PRF6Da27s6eC V9NRkPUV/R85PiA== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Core in scsi_register_driver() already sets the .owner, so driver does not need to. Signed-off-by: Krzysztof Kozlowski --- drivers/scsi/ses.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/ses.c b/drivers/scsi/ses.c index 0f2c87cc95e6..e22c7f5e652b 100644 --- a/drivers/scsi/ses.c +++ b/drivers/scsi/ses.c @@ -908,7 +908,6 @@ static struct class_interface ses_interface = { static struct scsi_driver ses_template = { .gendrv = { .name = "ses", - .owner = THIS_MODULE, .probe = ses_probe, .remove = ses_remove, }, From patchwork Thu Mar 28 20:45:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13609615 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 7C10F13AD12 for ; Thu, 28 Mar 2024 20:46:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711658763; cv=none; b=CEIPW9gHgHZDTuKPjEfLFDsekD6koXd1m2v3F2uKtf5VPtNvkuZYA49jZvgTnp/22ZixZ2wxlmcOrkMhxmai9kInBTCObsey7q7O6gpRvXUqzqloWwFHBXj0q+nVNFAF6JplanGHvp5CaGY4f9sOzocvewT6IlpINvFaEVwZ7EI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711658763; c=relaxed/simple; bh=4Fz178QR/piCy1oylUTMuDaEW9dLh/iogDNu5WpJ05Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AxQWKMDtZ8RSgPulxqt5qJQ2v0iaaJejbho8Sc91NJAGH1IDojanOU5gRkxCM8YuBakYUI1877ErypUkjwqi4EgOfL5PUHLXkpQDMOrxQML3yh3Mz+dKlYMqmHfYXdqjX71XXHFK73eo89FLvCTOFtXqUsm9nEKRWi0NY98Eibs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=yNNwSSpv; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yNNwSSpv" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-414970d4185so10040485e9.3 for ; Thu, 28 Mar 2024 13:46:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711658760; x=1712263560; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=gihd7cntoI/c9dKCWsDUCUdVda0GMecgJqmR9/ZB/JM=; b=yNNwSSpvYuNypMG7aBLrZOwmyc5IPJlvV6iKv4zqBYZvPqvDhOJBV3374KwyeLEBjM enGiSVFqfwmQUEOGZQPY2WES6ne80tNdOjzJSJ9dVoIGPDiHUk7SjDXx5dQ2bmkiSZmS ZVX0aMmuRAkNq+PZcdaX4jccwExEDPyJSzx78sXFA3Y73yoeDn8JFV12XCmJU3Cy4P5F ZrUrmv2VwBj+anFfrC1QPYwSVy7AhiEjwCxBkiP0+6dM6mvCSibUN5egMznK8fUN2qHC zE4HJnzn/BNpN82oQpOTyLRRuNjdsMk3XRgVv5J9xAieFxLmbf1EGEBPF2lZhDlmD+1h 4GlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711658760; x=1712263560; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gihd7cntoI/c9dKCWsDUCUdVda0GMecgJqmR9/ZB/JM=; b=HWXFfaOgG7RFfGsh7E05RPLm9h4A2N/kvJ0XIBbPL0iwMQyNKlRr6kZnk+6/Ii1qXG SdhVrpIAM16We0pqJ88xnqlc8p+6mkCycsWwm35yBax110WKgw+hUM3X6w5ptvDVk24/ LxqGZev1OOBB7TQpsZ7ovHu1L1HrqSNjNwoxcr7poiwAKgzkBpcfXB+lCrtuxVy2ahqk QX3x490LbO3OQ72xKvvs64PeFpjDI5IWpGVQwQPvaZdTobnPD6dDHeOcD8Xy8HWP5Li/ LcfGVR3fo/Mc1tubytB42DMsuhoJi0/D+mTXM8lP4TxHzLrVCuEqk2s82cUhlKNYFwVb UAuQ== X-Gm-Message-State: AOJu0Ywn5hEXYjgQN1MKrG13apX6AziiuUqna0bZQ4g+WhzBX8Set6h8 au3VUHu87JQVyFQ8iYc8wIYF0s+bux3ezwGO5zlK39/KAteJnoXJqHGP6xMt/8I= X-Google-Smtp-Source: AGHT+IFIld09eVWLoR912QMzlPipAzeDg7jl33IVXCQwpqaJJvkmoUuBfzq9qCgnmB/IJDmhPMrZ6g== X-Received: by 2002:a05:600c:468c:b0:414:1eb:3010 with SMTP id p12-20020a05600c468c00b0041401eb3010mr304229wmo.17.1711658759914; Thu, 28 Mar 2024 13:45:59 -0700 (PDT) Received: from [127.0.1.1] ([178.197.223.50]) by smtp.gmail.com with ESMTPSA id t15-20020a05600c198f00b0041497459204sm4762697wmq.12.2024.03.28.13.45.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 13:45:59 -0700 (PDT) From: Krzysztof Kozlowski Date: Thu, 28 Mar 2024 21:45:48 +0100 Subject: [PATCH 4/6] scsi: sr: drop driver owner initialization Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240328-b4-module-owner-scsi-v1-4-c86cb4f6e91c@linaro.org> References: <20240328-b4-module-owner-scsi-v1-0-c86cb4f6e91c@linaro.org> In-Reply-To: <20240328-b4-module-owner-scsi-v1-0-c86cb4f6e91c@linaro.org> To: "James E.J. Bottomley" , "Martin K. Petersen" , =?utf-8?q?Kai_M=C3=A4ki?= =?utf-8?q?sara?= , Alim Akhtar , Avri Altman , Bart Van Assche Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=624; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=4Fz178QR/piCy1oylUTMuDaEW9dLh/iogDNu5WpJ05Y=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmBdb+42KAcqRgn5Z2VbIu8bbhRdnyFNx2LZu3v KxbbucT+muJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZgXW/gAKCRDBN2bmhouD 17T5D/oDY+G7rZG4gjc2lMsI13yuufpx9LdNJZeci5LgHYjWQ4o9zSkFZ3jj36LAJFMH+VujJs3 oOfV1KGQQ9olmVbClqhLWE0dbpTyRumUzT0exw4aX8g2dtGwy5ALHUGppm7Lx++hwt18Fw8goy3 K6jF2z5UWkIiWGBjtDulwoj9gti3aykR/5pN0zIc6XoADK7Nsp4Z0i896pNULRGwIwBIUUAS+PL JqsN0MTUpxUeoVL574/m+Zo1Z6d3ECzn86MA5U8WjRGRnsGbC45Ns36cW9NUf3gZNZYouXWUx0M iGOf0ngHZaVVyrL81OzuNgPblNMnQ7weyU7++Zlvc5fqMH55V44HRgN28WH4p8xRftIRh/wGZ8K cGGcotfCFOxn68+sKhTNPfUZLEpXQoz2iHl3VssfJ7Z4q5xQuQIHVv2i+7sCCfjLXhwJbYCWZYj bMfnBgLpUmR83RQ1XOG4uYQMzgyWIqPwc6AStwGoX57m0FPstizWVgf3NkyhrezotcAp7JXM3bj REoBsw+Vbbr02IqB21+GkBTHJVs9sv16QSdURaBqtQyR0JKvlozukWaWOhI1Urssmd+NtYyvQ/x jUhO0sRGPzI+IxSLyU/Oj5eewx7QTUAf7zM8SMmp8/Jg+pEGZEwbvt+hUrpGbvXvWkhEU+6u4d5 QRJpVPeCg92RiMg== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Core in scsi_register_driver() already sets the .owner, so driver does not need to. Signed-off-by: Krzysztof Kozlowski --- drivers/scsi/sr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index 268b3a40891e..7ab000942b97 100644 --- a/drivers/scsi/sr.c +++ b/drivers/scsi/sr.c @@ -95,7 +95,6 @@ static const struct dev_pm_ops sr_pm_ops = { static struct scsi_driver sr_template = { .gendrv = { .name = "sr", - .owner = THIS_MODULE, .probe = sr_probe, .remove = sr_remove, .pm = &sr_pm_ops, From patchwork Thu Mar 28 20:45:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13609616 Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (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 1EE1C13AA52 for ; Thu, 28 Mar 2024 20:46:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711658764; cv=none; b=m84Xx04owT90BV8sb1ZVSAGMWKtuOqVasFLjbheTMZOd3clpESUfwrMtDQAYZZQzvqV6x+s4Cq6vJ+mwLn7FKzxzQIbQ7mymHpZ/pUdqa1smjrt2kj6aC536HdZfIN1IvFstYjoFEj7EP0CkZ3gDkYsfQiAXCCBibam8hDdrZKw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711658764; c=relaxed/simple; bh=PfP/LX3Ev4ZUehDhY9UJfJ74Jq7QmGOSjpUQvMiYxco=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KudC5nLbgKpoGsjrWq9lQA8CYBkZbPe5/Sz6fTjAwwaxX/Rp37S4bi3rkoCrIeuRwJ3mTGUJIseDT3qtxAH0eG40HMkFCK0R49yyW5m0fS5s1tCCcYhmJoDiGxvBySrt+ZlbQ7YeJyLLW1fXFyfxTRFF9M6lp4ad2fPXw1mYcEU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=KmihVNw4; arc=none smtp.client-ip=209.85.208.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="KmihVNw4" Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2d687da75c4so14075601fa.0 for ; Thu, 28 Mar 2024 13:46:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711658761; x=1712263561; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=yYeSOjYCYletYyTMoe7CAWFQDjjR31kHZRvMnXWUDgk=; b=KmihVNw4YL7Tuq+7YhileiB47aRtemh8/J7BeQGqMJxqrhxezE9f1hVdd+xYAqXjxG ihNUQprPgCJrExHfSM/aoN1ffzqdbsL/3RMyD368rs3SYn7LRMvoYUcrxfYAhc0mxo50 LFGvKukV4yewczGx3vOmjlRpWlfiZTuo/FInkghSSbYiJbsaXB3lXoXFXb6JAg5S+PH+ kItcNqihRAPhpcWVvK7xSN5JyAjlPT350kWk0rSijVKvQfZSQZQpHkCewTHfpkh4Cura qrYcpADKlBFhkHcr5yaQbqh8oazKBgyJVIXTN8Xdc9c90yfOsbFmLXUP4psx8I9urphl ATow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711658761; x=1712263561; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yYeSOjYCYletYyTMoe7CAWFQDjjR31kHZRvMnXWUDgk=; b=MqL1X47Z72cGeCMnOFdYfb3gv1cNEM36m2CSkzbGFmX5MuLN7c8yRy0VJ2OjKSixfM 3HbAGtVwxLnkVyWUlCXywE3aNtDzlQIRQ3JDm8S7Lv8B/TZILO73vn7GeExTzF4RoWIF QKIFPc42lmBMYxGMq3cEb3yZi3blovsjPXy3Dnpf/z4g6pe5etOgWpa2Kc6XkO+z5K9q 0zOnGtwo2dPd8LarisbdD2erqbtCAjHe5csZ22IW3UmsW8R+jwEy3EeAT1ZUO/5b8Vmu 0UvIY6aXPmGoxSoVsnxCJfjV0zbm+rLmeOrFVucj3H87EZdq0COZliVmyYi5nCobJnkC b/Wg== X-Gm-Message-State: AOJu0YzL4EnuuvUHlHJ4EhH42nG/c2U+Vg5l5oU6zN2WM5KZryfitxSf al2dEJIC5oPCt2Tycl/6UFp1DlvNGw/zeIvfDOgvVzXU0STMucp+GAYr331wnVc= X-Google-Smtp-Source: AGHT+IFvd4/nk37r7rVjow21GdS3wGb58FM6tY77/OHE81pF5KHG9dM3xOb66fow38EUrgKLOcyW4Q== X-Received: by 2002:a2e:94d0:0:b0:2d6:eaf0:87b4 with SMTP id r16-20020a2e94d0000000b002d6eaf087b4mr173678ljh.11.1711658761219; Thu, 28 Mar 2024 13:46:01 -0700 (PDT) Received: from [127.0.1.1] ([178.197.223.50]) by smtp.gmail.com with ESMTPSA id t15-20020a05600c198f00b0041497459204sm4762697wmq.12.2024.03.28.13.46.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 13:46:00 -0700 (PDT) From: Krzysztof Kozlowski Date: Thu, 28 Mar 2024 21:45:49 +0100 Subject: [PATCH 5/6] scsi: st: drop driver owner initialization Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240328-b4-module-owner-scsi-v1-5-c86cb4f6e91c@linaro.org> References: <20240328-b4-module-owner-scsi-v1-0-c86cb4f6e91c@linaro.org> In-Reply-To: <20240328-b4-module-owner-scsi-v1-0-c86cb4f6e91c@linaro.org> To: "James E.J. Bottomley" , "Martin K. Petersen" , =?utf-8?q?Kai_M=C3=A4ki?= =?utf-8?q?sara?= , Alim Akhtar , Avri Altman , Bart Van Assche Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=625; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=PfP/LX3Ev4ZUehDhY9UJfJ74Jq7QmGOSjpUQvMiYxco=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmBdb/KToSvZh1tplwoBiPz/6g7+MTtAPeJ3Mz7 J6OxB0uUK+JAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZgXW/wAKCRDBN2bmhouD 1+uwD/9RIGyMDC4NkTCcZceZp1g4yQiblhlfVg5AjfocnBtkJx5plBQSRH7qTG0DwIfLrSch3el ZrlAsCFRKO6lDDh6Dqj4wVjJMmjWS5Z57rnqJKO4P9g+cA5K/NGtLcFmidCwdCz02m+dp296Hn1 RIGjL/SGFEW6Tw2wD/ikOwJX+hGSM9ccryPWaQobKOPEaSAV8aaoTLfMOd15X7UCMUiApWOAsjv 7TKg0eQ7CeWLxc4l/8YHT4i/Wa4fMNsrWl8ePZCntYQ2OghXMHoEnR9Cljd844NRlkkXxDS6pjc Jhd2SscOpR0DVt4amCnuihrWmGS6So1vIEF0bacBPEuyPcvG5sxwA/OPCRFuxEC6Gejq9az3wI8 l7yZfjjdvRnOdeldBUkvgQHKNihDuism2eMLdO6qEjNQCHNHlp+HoI7b56sm1QLNGPLNXrxywPU OYDimeGmit+RCZCYm/m1YDzGUEV/aGOJ+rpIsLEKQcbTYDGq77RB/aVg/rH6dwm6B8Ee75IQ5YS Uh5uxBqeW3Cgr9+/TUVQIkAt5v0NDFqvAXEWpxxjLMrmM0hJ+17tVKXMc0DyAIrx4nH3+gdIFVt eG2aubpzjmltdyc69Y1EN6UNFcxrIc0VrOcNNKUTcfEw9K9VOxcLb60z+aEWviRZTObNKtqQ27J ydKPwW+Q/u1foXA== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Core in scsi_register_driver() already sets the .owner, so driver does not need to. Signed-off-by: Krzysztof Kozlowski --- drivers/scsi/st.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c index 5a9bcf8e0792..0d8ce1a92168 100644 --- a/drivers/scsi/st.c +++ b/drivers/scsi/st.c @@ -206,7 +206,6 @@ static int st_remove(struct device *); static struct scsi_driver st_template = { .gendrv = { .name = "st", - .owner = THIS_MODULE, .probe = st_probe, .remove = st_remove, .groups = st_drv_groups, From patchwork Thu Mar 28 20:45:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13609617 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 35E5313B58C for ; Thu, 28 Mar 2024 20:46:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711658766; cv=none; b=ci7joyyHrmRtpwaU6xLepOjA+S8h3+V4cmTjNNrHdqgD0QYwwvz9wGN7cB7gd5wHxW60gAWaUznnkDJUkbJB8fVJFz+jyXOgjBmRV0yQkz55pzuKvWsBmGuwXywFPb9X1nPqMcYHNcbfgPwpUbw+g31KwtRgCG4lEM8YOHRe79s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711658766; c=relaxed/simple; bh=2eL00kHrk9PZ4wV7+liPYn4xAdGVUS6T/yXYmc49iOE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GnuwVJrBZ4k3mRYiiECdWsY8oSdUexHDXR+V1RaG/cRDPYGwlL+WGUuFB1NyuV/CsV5eeGtnTDD1OKGxKqxR7SAac0G5l4fs6oht7kU1aw2uitQpKQoDjqjCWdEXxazZ5fF91+/HytixOIEzSzUSZ8QRTNq8F0Bf0n8UTSOUTlQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=C3G49BWH; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="C3G49BWH" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-41490d05bafso13293485e9.1 for ; Thu, 28 Mar 2024 13:46:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711658762; x=1712263562; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=3fD9nrYXcpClsyVR0BSEl+mQF9yqUNdr6oBOx3H56zM=; b=C3G49BWH/vIoDOqRAu/SF0vmWT/GZqAX6SK2Ws/s4yMxLAPBxJT0NXNC/CJ/Ig4DhZ Z+pMHzBjvpsPqjOzzWvdJSlBOPOq7oZWeyJhnnWDpNOD3AEvSBU8qhhHbBCK/VPA4Wr7 ZF69yb8mZSgwn5fx0kV39ZSpGlI7SghG5JAMtJKfNAGG851U0KgEXGE3LKcqgx4H7ibR zcrZ0OFji7SYNK969eT7s6w3mkqQ3ZG7g9ByOORKiMVg8ojuxXx/32xU85h109E0t2GV H9KzUZax/V562py5+Y1hdPYQDR3PkazzfOGfg/qEPvATto7vdb7LBEQjxoKQQcFV8QNX DV+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711658762; x=1712263562; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3fD9nrYXcpClsyVR0BSEl+mQF9yqUNdr6oBOx3H56zM=; b=mGw4Lnqe7ziyLee/lMyEAeJyIv4cDfeCKE7okRwfW676YSVxCVXVq+K5XWJ29ds1Gy x3M+UqsevCrBUcI6jZYKkpFiE1/LGLQyUm9gh016KRduUn0Bo5+gsWzNdLJksrIQb+Ce xsF6YfLbuu3JU1JYuFxkGcZnyatGWkeeSofxMAHuaHLTsSftInbe82DHh41yYfFC5ejj BzjSTwLp8NeWcKYZImTQbAhxPilzxGbS1qhWKRmxQrKfDQkVXPkFGQw27lcWv+z1JMR6 B5AD1leaJ2YNQfpWhs4QUTfDlJNzkslFHxGoccop4CwjJmLg0w5J/EjRSspvcdNjFLIN UAPQ== X-Gm-Message-State: AOJu0YxwTmLT/M5wmoz0TMH9oma6EhJoA4d8ZgLVCVY4EzWv6Jhh6ai8 NriPWAQLgkqDQFZFfl/r0Jgq8pN25/1OE9cS3n+PdxG5TtaKLzKA54RS6K2fUbA= X-Google-Smtp-Source: AGHT+IFHHL0fhd0TNG1ORkHHa7La//2Q0gCdNCxnqIaveHIvGKPFspn7Abmn+XzZF3ygcNPdLhnU+g== X-Received: by 2002:a05:600c:1907:b0:414:5cec:a9dd with SMTP id j7-20020a05600c190700b004145ceca9ddmr416665wmq.38.1711658762607; Thu, 28 Mar 2024 13:46:02 -0700 (PDT) Received: from [127.0.1.1] ([178.197.223.50]) by smtp.gmail.com with ESMTPSA id t15-20020a05600c198f00b0041497459204sm4762697wmq.12.2024.03.28.13.46.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 13:46:01 -0700 (PDT) From: Krzysztof Kozlowski Date: Thu, 28 Mar 2024 21:45:50 +0100 Subject: [PATCH 6/6] ufs: core: drop driver owner initialization Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240328-b4-module-owner-scsi-v1-6-c86cb4f6e91c@linaro.org> References: <20240328-b4-module-owner-scsi-v1-0-c86cb4f6e91c@linaro.org> In-Reply-To: <20240328-b4-module-owner-scsi-v1-0-c86cb4f6e91c@linaro.org> To: "James E.J. Bottomley" , "Martin K. Petersen" , =?utf-8?q?Kai_M=C3=A4ki?= =?utf-8?q?sara?= , Alim Akhtar , Avri Altman , Bart Van Assche Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=746; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=2eL00kHrk9PZ4wV7+liPYn4xAdGVUS6T/yXYmc49iOE=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmBdb/ZVotfrMskOzAZjjergAwKXcjYoMF0jqq1 ULj2NguWsOJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZgXW/wAKCRDBN2bmhouD 11rPD/9+pCrA4JIzLrUksF7HHrkMPhVCeIBN9FBLogbwu73/t5BWfxNnAd+V70VLTtRWkL3ScBe JdBh1ETXgOlBmvU2xyKUxdsxxNVNbdp1sLAYEIiSm2oHxBCU6HDZW7FowFzvxiMgGCoqIoeTS88 /s/9LA93qtwp4ku7GiPLPXMQHG7qJy8cVVxbmKzFxC55H/F7vyBxMwN1x6fkgxYIshq8BnJZVdQ ClwFyo6hPlfdBXRePWhT77VmO2S6htw7bkKYiG4ZvcO53EkC9xG2dC37WCsuKekYC3mKzBTdnPT ZFcAUbhvi55C+VIe2AsgJk9YZi12ftLx0V0SVvI7nAViMP0hmwy2bk3dBKUBMSmQ9NdrYt6u0jZ 2npr45NGpXi1ZBWWo9RLl+RTmeU++pGUoUCi+Rt2G1SxpNAXt4ImFZ3VEe+MWLcaYcGYJsoZVv5 xxE2VH+pcKOSFbaf8sutTLq8q0e1Z7pnLardcBBlYTyvIiKGkVVrwkumqQslItjTDaxM/si2M/c YUblY1PBAHW4V5pwYcPOJC53CIPHXZLxPX238ahmQWGDFjeEOFObETl0UDi2QorSao2stiwEGNJ NZeEIAwLhR/Gn7awmkUmx7rjqN1Sz8aRpZZgy9/Lm3sFVYl8bQYSQy9ibn5FoTrY6LsJIzsA8lV 5lpL9y8BX0fFj3g== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Core in scsi_register_driver() already sets the .owner, so driver does not need to. Signed-off-by: Krzysztof Kozlowski --- Depends on first SCSI patch. --- drivers/ufs/core/ufshcd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index e30fd125988d..77fb9b2261a7 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -10896,7 +10896,6 @@ static void ufshcd_check_header_layout(void) static struct scsi_driver ufs_dev_wlun_template = { .gendrv = { .name = "ufs_device_wlun", - .owner = THIS_MODULE, .probe = ufshcd_wl_probe, .remove = ufshcd_wl_remove, .pm = &ufshcd_wl_pm_ops,