From patchwork Wed Mar 27 12:40:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 783278 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 28DAF13541D for ; Wed, 27 Mar 2024 12:43:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711543434; cv=none; b=oLXT7vXlNkDShjVFVyJ5kPS+4En36t2icUYd4b5s+XMcD47oSFWKhniSwA+bIBW9NB45ejL6Kfo4lltvJl2/4bNmAZ9Cl+kHFtTRjRn3pr7NCJL4OXiO2Ra9g05IbVp7q1KMWM9YOiOpl3tX7A2YcvgdHejyf0NYuAwpentotb8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711543434; c=relaxed/simple; bh=CUCGqZGlbwrgPkwPeA7fzEXfYZ5lWG+kw/qtWPfvSV4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=U97BFbda+qTAEwVNpRX7QJMKAQSxLImosGSz7BdrpO8UKAkRryVJ8Gmw+SpBHgYBXRE8/vaJWwDrhzQ55+tFz1HhPko6jy6jiCuPygOdGHezJHEGXbg5pne3frMHPwcfnKIcdRj1xDjSME+InThRsmPsjjgjL5xoDyOCsjMJNUU= 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=N+l1onCR; arc=none smtp.client-ip=209.85.218.42 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="N+l1onCR" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a46cd9e7fcaso807152566b.1 for ; Wed, 27 Mar 2024 05:43:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711543431; x=1712148231; 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=EPamPBtPxW6+pkIV3m4EaBMhb46zDx5KgvXpbm+zagg=; b=N+l1onCRnEyIol3s4NLBL4mULIeYGiTX/bC/W5USHUQr+NbQJYxVzoPlK9bywJEO0w 7/IhkmDtRqo8nIcJJ5MAsnht0LydyohYfryVfD3E44WE5To6wBoX7lGDgZjtt2gkzfao cju/m9Leskh8v4D4pv+f5cTKZDOumWnPeToXY6tstDAz6O5+iZqylO21k45RPRMwMB+I 8fc5b9SsCmEkLVSjtnMpX0ETacSSVkki0S7kumCv+T9ZiTnw+jV3HdsKjIzZDSPtaJUY eI6c1XblMwbXgwSr3JFMBEaIsCaIUgx4DIPXzvJnE7T0Xw93/f43i98IpigUYGmp6uQX UZZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711543431; x=1712148231; 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=EPamPBtPxW6+pkIV3m4EaBMhb46zDx5KgvXpbm+zagg=; b=YRHBH04v6hMNKzvWHgMsT2dAI7KaA+xINvSI8fmD8iYrfKDAnVmId9wobU7CdqzEml hPUFYplialX1XJvh7cClS4+Ws+srPQQ6TlTDGiDvRzhc05UinQhSRzgWy3n+8fl49Uoo eX2d4Gu88yDMQ5j34Y72aNnv/PVaP8XdZwu0jtQzeM82qWn1bKxjsrwkiSrpNlbiEsub Lqh5L8UFoMfoKg4c1ptGAUGQCy0Dwle6storXHi1tWFaIrf+QXDbV5AcjD4981/BavJV EGa4iAUEui1z8V2fPPnV7RnYbCS853RO0t05Xi9PLPMLdMGnGHk9lBLm662sKDApG7A9 tBKg== X-Forwarded-Encrypted: i=1; AJvYcCXJxWjDoOd84sbe+jXhg/cCaFOOOdTkswZB8V8/gdZ1uCovmkSGS3pTewdPLKxu4zOuOISk7md/48qRr+gyXEsZxnuTRyl73aCHDKkrID9P X-Gm-Message-State: AOJu0YxZOFmGLTSP4/Q2L+ksOQCTQ5TgpOko0+rayCVQSmviajDQLyBg 6q8vZ5if7n9Ao4nDu5W6+riYLam5egntIyGgn/tsBGIR1V0V39pdxj/OCqKBMuk= X-Google-Smtp-Source: AGHT+IHIawhEWmM18csReaNkfj7KE+Mr23K/ZLmHctiSwGk/x/WXWLAILVQsaMoVXgQQh7ZH8TvBtg== X-Received: by 2002:a17:906:4e83:b0:a47:31aa:142d with SMTP id v3-20020a1709064e8300b00a4731aa142dmr835338eju.70.1711543430493; Wed, 27 Mar 2024 05:43:50 -0700 (PDT) Received: from [127.0.1.1] ([178.197.206.205]) by smtp.gmail.com with ESMTPSA id gx16-20020a170906f1d000b00a4707ec7c34sm5379175ejb.166.2024.03.27.05.43.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 05:43:49 -0700 (PDT) From: Krzysztof Kozlowski Date: Wed, 27 Mar 2024 13:40:59 +0100 Subject: [PATCH 06/22] virtio_console: drop owner assignment Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240327-module-owner-virtio-v1-6-0feffab77d99@linaro.org> References: <20240327-module-owner-virtio-v1-0-0feffab77d99@linaro.org> In-Reply-To: <20240327-module-owner-virtio-v1-0-0feffab77d99@linaro.org> To: "Michael S. Tsirkin" , Jason Wang , Xuan Zhuo , Richard Weinberger , Anton Ivanov , Johannes Berg , Paolo Bonzini , Stefan Hajnoczi , Jens Axboe , Marcel Holtmann , Luiz Augusto von Dentz , Olivia Mackall , Herbert Xu , Amit Shah , Arnd Bergmann , Greg Kroah-Hartman , Gonglei , "David S. Miller" , Viresh Kumar , Linus Walleij , Bartosz Golaszewski , David Airlie , Gerd Hoffmann , Gurchetan Singh , Chia-I Wu , Jean-Philippe Brucker , Joerg Roedel , Alexander Graf , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet , Christian Schoenebeck , Stefano Garzarella , Kalle Valo , Dan Williams , Vishal Verma , Dave Jiang , Ira Weiny , Pankaj Gupta , Bjorn Andersson , Mathieu Poirier , "Martin K. Petersen" , Vivek Goyal , Miklos Szeredi , Anton Yakovlev , Jaroslav Kysela , Takashi Iwai Cc: virtualization@lists.linux.dev, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-um@lists.infradead.org, linux-block@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, dri-devel@lists.freedesktop.org, iommu@lists.linux.dev, netdev@vger.kernel.org, v9fs@lists.linux.dev, kvm@vger.kernel.org, linux-wireless@vger.kernel.org, nvdimm@lists.linux.dev, linux-remoteproc@vger.kernel.org, linux-scsi@vger.kernel.org, linux-fsdevel@vger.kernel.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1103; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=CUCGqZGlbwrgPkwPeA7fzEXfYZ5lWG+kw/qtWPfvSV4=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmBBPfhSNGa7v+KPC1Mr5GnTmrNcEwnc0tCa4FH m0oKKQdogaJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZgQT3wAKCRDBN2bmhouD 17JlD/9KDr1Aax5X0o90P0yI2bf6cpve6MUh89ettR4omfAVd37Dod/vJ5UZ8YDgCWHVdzBE/lN pkmFzT2vbc1UL6oCj+BMBllZkbpmCkDtEvx3lol59Tz/OZUoXhv/8bDFpoyPwhLuwZBSu9GaBm7 jl1D1sPVUPu5TFBwDqMVJPE9lNuBgpiPUVLh1Mw1LJM7U5PbFDz/797HaHICwxQCgs4Le/bzO6d NaHj5gx2JeWEPUyXNeThuz8Ltawko6tEtFZge1cW7WSCzRcoN7Bu3A2w3C+gsxSygfVZh9UMCaI F4wfQuj2fV04UAi5+OceMmgcvWbaizvgRFeaq9jC6oKv8tXcdTdgyWZb2R9kxYRYXsqdvFT49uf 4EDLAt5abOVCXpJs2XF1Zsb6GMBJvPT8N6ur8Qx989vDOSbTxlC2I2J4pqHjgEoIpyS1EArc7xy cTGt0MceTl4TFQWnHh4l048GQyvV2ehpWlx9SLMDxZ2x2d/b/y07ik5mDHIZgd6e4GpGE5CwPuT f8/PBIExnfmQgxh6AycTHxwwJ0Ngy4B2R+bS3MR08Htxndq3Nrpu1U65K0m8WDKubEy4zaMN+kr hoFfKJUXhyFBrtl+Fehgcb19zQ4HSvsCzidVzGuXw4xvn+gVKRFbr3ZYDaPGyWFacIDHIhCFdn1 FeGFa/txQr7dGRw== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B virtio core already sets the .owner, so driver does not need to. Signed-off-by: Krzysztof Kozlowski --- Depends on the first patch. --- drivers/char/virtio_console.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index 035f89f1a251..d9ee2dbc7eab 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c @@ -2173,7 +2173,6 @@ static struct virtio_driver virtio_console = { .feature_table = features, .feature_table_size = ARRAY_SIZE(features), .driver.name = KBUILD_MODNAME, - .driver.owner = THIS_MODULE, .id_table = id_table, .probe = virtcons_probe, .remove = virtcons_remove, @@ -2188,7 +2187,6 @@ static struct virtio_driver virtio_rproc_serial = { .feature_table = rproc_serial_features, .feature_table_size = ARRAY_SIZE(rproc_serial_features), .driver.name = "virtio_rproc_serial", - .driver.owner = THIS_MODULE, .id_table = rproc_serial_id_table, .probe = virtcons_probe, .remove = virtcons_remove,