From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.199 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796318105; b=Tg6HOmYbPZwNcUb+Hbo3by4VlvP5P8vgkLAv8hoSvt7zPaoAYIi5NdCwoowaopbX7F3L 4Zqu3KkurLfe10ceIwE7CfU1t20sDml4hxFSt4Kpsv+ZgNwesOa8Ufdasx8M2xOdOmd8q K96RBkQzVeuRGHjfeQ1vBEzbBliUXfALxTEn0P6QdhfF0JhOzAbGvAuRbnBZvilNVGAC+ bItR/5Ji7xtFh2OnBIh3jp9TDiZa5fvY6GvulxyhRR1K0BAE1KfZDDYopVmLepnp+bJUY 5VoDWKUahAtZId44oceARapPYTkY+5PCpcW8dLqWZvtz8iZsCsmuqxifrybhGa6m9wQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796318105; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:Mime-Version: X-Mailer:Message-ID:Subject:From:To:Cc:Content-Type; bh=OXUECOg8N0F2thlVcenamPFVmIj/ry9x4PWPD2KOl0A=; b=FvmIyFRwxL2cKjwBTm4gssKorvkDyt81CjycD0tousRuePNRLJL9m/FEpi02Ii6RDybi AUOQ1zcrFHX9no3BxWR3KfSY27cv83bSrWTJ4AYSlmQvpd7C0G2nNn3d0zK0KYIKQHEYl mIKG9V/i2L7cLVZUNSZFu5uiDICGDFe1reh43eXeRVLtHpJzTlGjj/wT1r9FtlUjiC2Gd fF7IVi5VGCXMWKTwPk6+LmUbEAP7zNjawV2kSwx1wyzuDuWv/cBuywM+CA6iP09WZfivi tRs54yvHJ20OOmCdvvArg/tsGNbMp/T7AnF0vxFgCWAnaTKbF+6F0l+5htKFn+ZaIYQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=VpII2QBU; arc=none smtp.remote-ip=74.125.82.199 Received: from mail-dy1-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 924E6606A322 for ; Thu, 3 Dec 2026 17:15:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 924E6606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=VpII2QBU Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-341eff9e381so21785433eec.1 for ; Thu, 03 Dec 2026 09:15:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796318104; x=1796922904; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:mime-version:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=OXUECOg8N0F2thlVcenamPFVmIj/ry9x4PWPD2KOl0A=; b=VpII2QBUxVl6oP/Ja1DNDUkBjlIkyDfyy5NZFGH+6cyGalEZD0/viyIKTrjB3moiI5 I75Y3ZQDoV/Nl/PCVx1mHsALxDJTfWaRRvxg1mnpu+Ft3GcjIcu6L0bByve0/HFC0dBo dpvHiQsKL8mjPL3DbKfj84xHpf0b2oh21Ntc7UG6v8/FswvwBXdl9CxIa/5clXvk5+KU kLMJBZyJdT4+Cy/Tarlu6X4pd/OxD6hUZlekEwdEEI+d7Sr4e7fk0y1YJTDYqq8dKykA DNlX4uf/8Wi9mAosj01CV8CJslCjhp8cmgZoyBIZYrevfKdByP3cPsW/t0j330G0Q3TA AO1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796318104; x=1796922904; h=content-type:cc:to:from:subject:message-id:mime-version:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=OXUECOg8N0F2thlVcenamPFVmIj/ry9x4PWPD2KOl0A=; b=ULoxTcFTHnr8OgPpHswe1Ozl4E9A7CgCzoeez1N1YYZI4hqUdX5ZhLju2Bkkb+UACl YPNjAZ1J/2M0nGhMcaIzCIfIz8yQnnxzfrPJHDB2kUmmsn5BIbDvVkk0Xtu/5/zltyuN wb2Pmy9HVKJcNv4ZQEDtWusxebEtN37Y01s4dNrf2Eul9B8W2RMTCLMb61sUzkiQIHAv ltWWpaUAh+cLBS726B91TQGkqmP6ZUZDlCoanD273jpuTje1YhB2ugAaK9ZKAo3KoHnv x/Dd0BdTZQJDB0QfV66SgX5YSQc09m6hmJdVXeHkcAjYWoJWwsHM0V7ZUG6D+1i6WEzr 7+IQ== X-Forwarded-Encrypted: i=1; AL+hErHWJcxG/pDr443EAJNBQRm9tuMH/vtVerg+/MaunyZj0RcGmCXIa9cZClwxoxcu6szDRPO6mGI9OKiujvA=@vger.kernel.org X-Gm-Message-State: APuU4Z9wwAuuqif9P7AA42g/Q+1aqEx4zSGA+WW5zJFWwT2eE3k/Wd6i AarNzoTOlOqkniJPxFHGdRoqIvFGNbB2OB/O3EYjekpTKPks7xPO0caeXu60h6Nx0j2F5tyrA0y E/sRJjwHgog== X-Received: from dlgw19-n1.prod.google.com ([2002:a05:701a:cc93:10b0:1b5:7477:ff02]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:701b:2214:b0:1b5:cae0:473c with SMTP id a92af1059eb24-1b5cae047bfmr3375472c88.33.1796318103441; Thu, 03 Dec 2026 09:15:03 -0800 (PST) Date: Thu, 3 Dec 2026 09:14:04 -0800 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 X-Mailer: git-send-email 2.56.1.911.g883d8bcb20-goog Message-ID: <20261203171404.435213-1-irogers@google.com> Subject: [PATCH] swim3: Set .owner = THIS_MODULE in floppy_fops From: Ian Rogers To: Jens Axboe Cc: Madhavan Srinivasan , Michael Ellerman , Finn Thain , Nathan Chancellor , linux-block@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, Ian Rogers Content-Type: text/plain; charset="UTF-8" bdev_open() calls try_module_get(disk->fops->owner) and bdev_release() calls module_put(disk->fops->owner). swim3 can be built as a module (CONFIG_MAC_FLOPPY), though it currently lacks a module_exit() handler. Set .owner = THIS_MODULE in floppy_fops for consistency with other block_device_operations definitions and to prepare for annotating struct block_device_operations::owner with Clang's require_explicit_initialization attribute. Signed-off-by: Ian Rogers --- Note: Found using Clang's require_explicit_initialization attribute; an AI coding assistant helped audit call sites, verify Fixes commits, and draft the changelog. drivers/block/swim3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c index a03de4c4d35f..898a5e642c80 100644 --- a/drivers/block/swim3.c +++ b/drivers/block/swim3.c @@ -1068,6 +1068,7 @@ static int floppy_revalidate(struct gendisk *disk) } static const struct block_device_operations floppy_fops = { + .owner = THIS_MODULE, .open = floppy_unlocked_open, .release = floppy_release, .ioctl = floppy_ioctl, base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244 -- 2.56.1.839.g22a8290db9-goog