From patchwork Wed Feb 14 19:28:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ricardo B. Marliere" X-Patchwork-Id: 201100 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp1448450dyb; Wed, 14 Feb 2024 11:28:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUAYSW2Y8i0NyzpOIRemtnFdTx4jUn8mWRJnBM/qlB9BJoFXg+IADn7aEkUZmN+OjNcrGWw8Ydi4TTw0pxANVWyNCUQdw== X-Google-Smtp-Source: AGHT+IF/TlX9qJIE0lbj8w/qfj0dzPN/a7Oe68H2dyNg4vHR3DklkwWLc/zMjOM8EerGbPGsp6bM X-Received: by 2002:a05:620a:1597:b0:787:2c76:74bc with SMTP id d23-20020a05620a159700b007872c7674bcmr2696975qkk.42.1707938911575; Wed, 14 Feb 2024 11:28:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707938911; cv=pass; d=google.com; s=arc-20160816; b=hxnTVqHeH9QamUtmgGKN1yw5Uf+9IwzxbuTar9bPzY8dhSC2+t30wXEOpi5Dhm4rlE oO4d8CtBxgRCYOc7M85UdTDkkrehzi1jPjE2E0D0hfB0Zfadnozev8vw1foaCZGQM1VM AmNEJjXNMEDmFGkP1cV69/VYHA8kd3Pxj4zWIbHqdLcwk+eugur81WA7K9IT0rKQOaaS C5StP7aJQbMJv7F4NBoukxVrPuHas4SYt3+A1QaKscnlI92kNQyAbbpKVqEU40Ix7Xzk 08q39EAqrMamIznDykK+qnxLXIAPK/IVnI5kE1zC8Sf5bNwhGxGLHF8D0SpddHeQYRpn GWrg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:dkim-signature:from; bh=jf14ZoO/nmlBr52xH16f4QtzbmUF7I3TiNIRIuzv/38=; fh=3GtA07JpsH1eh5DLTwRL9ZAtJ71Bp/ehO+nmLKcxrtE=; b=iOLvaik6ykQK6ciSY4yz1OMzPqZ3VxIPrP4C8OeQ8kTj15Uh4i+m0aaNSZyux5pm80 0/BcdUr9YAPHFMUZqqesqBc8VwgDSpnpVO3/exrfs7gJo6Nr+24oZyd0qeOX/OqTF7Su gdnIBMTATdMr+FpH/b2C9GYpY2rUV6mZ51isufTJttnBSixzn8lUhv3SSWalsf23CN8s qYsvfvBVMrNhY38PrfmrO9y7AsiuoTSOQUZyjKHJRau7ncgqHCwXe/d/lzij2s6ubBbw VxtUPMLM9UbZozROSxCIXy1bfRZ8xaQrZYfhAZtChGIb9VXBVClK2A5DDRCOqqQlUnbJ 1nFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b=SCw6gFnF; 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-65879-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65879-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marliere.net X-Forwarded-Encrypted: i=2; AJvYcCXeRkx67qehxWucOEBKSruyCdbh+JEUWf9IbZdmcVsRVrJvk5Ctbp5SSJpn0EprDEgCMT396xwmg9+hZUyMrzv0Q/K37A== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r7-20020a05620a298700b0078733694615si427434qkp.725.2024.02.14.11.28.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 11:28:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65879-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b=SCw6gFnF; 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-65879-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65879-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5D4F71C254A3 for ; Wed, 14 Feb 2024 19:28:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9012313DB9C; Wed, 14 Feb 2024 19:28:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b="SCw6gFnF" Received: from mail-oi1-f175.google.com (mail-oi1-f175.google.com [209.85.167.175]) (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 3E74913B7A6; Wed, 14 Feb 2024 19:27:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707938881; cv=none; b=Dy8mBjQQZ5NAIS1WDJHi0gus4/sSuw11J41e7k76DUJMhiO28BK6nbdRYUTCfFFsmebCfHvvDdXO4hL/PUycsTmk+dMbi0TgaxRxuDxNZaTJ5FV3MwS6KNrJ20x9iBBIU8RD75We/rBHqqNYKJwK+4aF5y5ep79dOfw+LieKeRs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707938881; c=relaxed/simple; bh=Xx9qKGdssRAp5mo/Ka75lHZUssh4sDREhVlfbYK5MNo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=A+2pi/8VVvFUmpXh/L3Sv51YsXbcnwbATDHxVJjcQgVzqTc7IW3cEWb/xQHp/li8oezLT3Ve2pkniGD3tZHBr7y8d9510XX1Rvs+iECIsGgjyRicd0vm7MSipLTDlMonDJxdSKa2OIwR3nf0Id8yBkvXktpF9+pYrqB9D0zPo3A= 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=SCw6gFnF; arc=none smtp.client-ip=209.85.167.175 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-oi1-f175.google.com with SMTP id 5614622812f47-3bba50cd318so118895b6e.0; Wed, 14 Feb 2024 11:27:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707938879; x=1708543679; h=cc:to:in-reply-to:references: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=jf14ZoO/nmlBr52xH16f4QtzbmUF7I3TiNIRIuzv/38=; b=rNG7Qpf12jx04P55Gmafl5wEYdLgQl7rALulAOsTUdy8eKoERrmQJZ1f23ye/zpm+G BIzCCnepF11LSdrNtrBY1KusCJuSHxUYqntmLNqsg8Q0DJOh/wmlPkzy+Sbf/BO6wa0+ YyB1KH+mffWImqqXNmI12w52bTKJnAePvxMWfxkj1sV2rt3aiayTy6R9SRHXIYVUkZTR 8j2pkU5HT7+dYrDH+DZFTlPdus1q5LJfXLFtfhe/YVLTFKBhQsVWcq+maSDR+09QdOam iIFWiTa7gfkfbq1KGXY9v2Sl4ku85Wiw0LOuJuzGmuu+HsOGNV9ZYT4T5ej7sbkoTacp lCnA== X-Forwarded-Encrypted: i=1; AJvYcCWzDSgkyrp3Bc6Oeh4ocJ4zzO+io8gcr6ThEsk/Juf+EdoMj9PPUm4V4GaZETFd1XH4xL4eQnVZ6xK0HAypWVy+i7c3ORnEHpVC+Ztq6LEyKOkWz2AbCtwetvx9iYB9JFgTt3o5NmVx8pk= X-Gm-Message-State: AOJu0YxIgXCfCbKPhtI0l1MTMsTBId8GFZCUPcIHeGyyxhRPZAOoHtLB 0RrnxYh27ij3HrhnSpE1uObN5Vjhtr3a9xKZ8zY4JicfrmJ37J6T X-Received: by 2002:a05:6358:7e94:b0:176:5a5e:4b7c with SMTP id o20-20020a0563587e9400b001765a5e4b7cmr4334094rwn.6.1707938878920; Wed, 14 Feb 2024 11:27:58 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVR9u5eZkHuCGi5ouHd+f0g8NQQ4YHOm8cA1VMP51BbkhHt1JThb7MruHfBbp2jOqzY3XMlD5Np4SblYOAzR1eT/GlxGl27xiJBxkJ3DXV7BdB+CZa9jHyphsomO0b9enJZlVrQB3f0xpjnnXghR2Vfe+GzaoSW4vh6zSdbvGe80sbDUcgvZZKawa5fhWNiYy72gTdl+n7QfMmLZ9pxqjoXacya+Fk3ttY/sEZbWcGPZKtooyKgE0Go0IaZm/nsILUBsA== Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id m20-20020a637d54000000b005dc4b562f6csm4610547pgn.3.2024.02.14.11.27.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 11:27:58 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2024; t=1707938877; 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: in-reply-to:in-reply-to:references:references; bh=jf14ZoO/nmlBr52xH16f4QtzbmUF7I3TiNIRIuzv/38=; b=SCw6gFnFMVEuGi9m9kdpWg/G/byrUWhUoaJNVFytbqm08dkL3TNLUCrp5yeU4nk3kH6IKG Q2ajsm7fuEGflTqeD6hhPkKqh7otTX5jGTxYS07WwodUuT+emH9TWpwYHF5qqNXYscGk9I KFebSrYePXpv5MtXEMJgTv46KBz5NV7GSQpxE4aimnaIwfeCfvA9KAsLL52o9ZwRa2sply 7FiOY/ZOkr/c2XDxShAFyyXxuEOw51xdbA9jaK3r1H7Eit5zCVM/BBfUi3bsGjsHE0/FPt pmidWrok5yRwV2yjYdL2zs+NncOuDqxvjBwlYfRXrkrrsw7lnF82t/zcRv9JCg== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Wed, 14 Feb 2024 16:28:28 -0300 Subject: [PATCH 1/2] ALSA: aoa: make soundbus_bus_type const Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240214-bus_cleanup-alsa-v1-1-8fedbb4afa94@marliere.net> References: <20240214-bus_cleanup-alsa-v1-0-8fedbb4afa94@marliere.net> In-Reply-To: <20240214-bus_cleanup-alsa-v1-0-8fedbb4afa94@marliere.net> To: Johannes Berg , Jaroslav Kysela , Takashi Iwai Cc: linuxppc-dev@lists.ozlabs.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=1105; i=ricardo@marliere.net; h=from:subject:message-id; bh=Xx9qKGdssRAp5mo/Ka75lHZUssh4sDREhVlfbYK5MNo=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlzRRg2+8TMjUIfbvPUXenySoAjgJXgm7QBin3p RuofTG2WeqJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZc0UYAAKCRDJC4p8Y4ZY piFQD/9ZfnDZxcp/IDe9X1ChNa7pjG9eIbYI5mUhOc0Zc6KRmLJ9g7A4IYS+kCOLoFsvVlBkE7t 6iVQCjTvPi84Kn1tqqV7xnD1SqT3wHWIcLgsTmnYzAZm84HBMeawypWsRFlPgKtosS2aF0TEUz5 9T+aA3whcNkEru0JDutdtJ9OVwSC0FjnzTbu7xn7UT6yEk52bo9wXKP8P9jpHfABQMwpjHHxr7e 5bePOHNZ60MbjJZjbLYWANuprwfb77QuFkz+707XTvT00f2dj/WU9/kio0JCXwHge5ByskhQnuy NubuAsnmWCzutX4VZFIQoik2lTr5uGIjGFKIfS5NDmgFh7bN1hnyHqUoyo6yoDW/NwkB04lu7p2 BIB1/EVZSLaj7YXXEoJ+UGEsjahRsI9s1Pz5AqL4JpHX/9JxVQkjUMDlp40MecUDkQA8iG/8oHc C/LXnxkomcncgrlQ67GVWTpjOG7v2V2QbYQIA+sz/RriOA6Gn65JZ2CXGLRM36xkK2co36/vZ1Y i2lzXIiLtC17GZPcaVd7pxBPwNI4jeNKcRdZ5oReR49HGo/Urq/HI1hHn5mUojaQTnYlrO5NKQA 0EyWfXjPdN5BVaHaHip4HeiZoP+6CyDDy1L2AGTH4qS+cFaVVh7DS1Cnfv2u4FOYCpXW0W8EXn+ 0h2JDPc+V71skoQ== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790903752180278190 X-GMAIL-MSGID: 1790903752180278190 Since commit d492cc2573a0 ("driver core: device.h: make struct bus_type a const *"), the driver core can properly handle constant struct bus_type, move the soundbus_bus_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 Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- sound/aoa/soundbus/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/aoa/soundbus/core.c b/sound/aoa/soundbus/core.c index 8f24a3eea16b..2a295f610594 100644 --- a/sound/aoa/soundbus/core.c +++ b/sound/aoa/soundbus/core.c @@ -127,7 +127,7 @@ static void soundbus_device_shutdown(struct device *dev) /* soundbus_dev_attrs is declared in sysfs.c */ ATTRIBUTE_GROUPS(soundbus_dev); -static struct bus_type soundbus_bus_type = { +static const struct bus_type soundbus_bus_type = { .name = "aoa-soundbus", .probe = soundbus_probe, .uevent = soundbus_uevent, From patchwork Wed Feb 14 19:28:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ricardo B. Marliere" X-Patchwork-Id: 201108 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp1467273dyb; Wed, 14 Feb 2024 12:04:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWlRnMIOCbPXMQWFpWHhEoBCaoV8EJomibx0BBuLvnboKsX/NoaigbZ8dfKlr2zHrVaOqj9p/ZVp+gHpvt0AJ59UMBNFA== X-Google-Smtp-Source: AGHT+IEisCeAxI5y+nO65bE9XOOrsPVmnBFgFz2g+B+DjGF+4TKqQvSboHgxX35e1mlE7Ju4j2jv X-Received: by 2002:a17:902:d4d2:b0:1db:6dfc:5c3e with SMTP id o18-20020a170902d4d200b001db6dfc5c3emr2132931plg.22.1707941055984; Wed, 14 Feb 2024 12:04:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707941055; cv=pass; d=google.com; s=arc-20160816; b=anOFwBqdPqflA1/xcrShRE3AkIzMy2rpdk/B8Zow24Qb0gwJGcmlljD296iDpp2ILS fxe4EcVBwwoKfkKAprUJFsZXmH9+Si3r3tvXjxa2QtDQ9h7jMWhFIritOtxMUtHAAAuH w1Zy5i8W9gc/Klyj+FUTlLHya0Y0jmq6bgcItNFfU8dEfmBeb/+CyzkTrxTsMOzpzwCa 7H7gKCCkYV9s33rNhwUzbtkVUdYChgNHbTOyu0l6NJnRM2DUOlcTe1p8rW0os0P4QMKr 6xLwC1c+/cNVxs/CsjYBjUZ9vtf4nvDVpiqFipxBwJnTBWtBFaM5OKORWFEIvKAL5hp0 87tg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:dkim-signature:from; bh=SW2EVXlkBr3rgXstlJZO0zqxkNTOtfGuPtYbWFp/giM=; fh=3ZPJDxxZhDj1iA13wJXrsEbwBi0+oRen2LnbhWYM83o=; b=TWgqY2SN58gC/L8Cf0gJekiizBXZG1p4e3QLcZmM8pkuUp7J7empt2+XChAKpQ/8f1 EqyDRKEqwQcT8zzP7Q/voCz3nXr0NcQ90INWUEK+ouyJpjYWhnE2TUrG+kRmoGS+JMlL NOZWPh/B4kLdj5nIyN4NM6EcM8pABSlLa6Fr4j1x3SHSs5suqQCHR7PueSDQ+nohDKPs eTWxecWPqWMQm1mgH+Frjaf/E7g8Sen49sPBbk+JQRwDdi10rxo8VsaiRcGgqA5+ucRX kdhX4xUW0lNJVBHB9vtaaUp3pD0dagWQZvB31P8izJJr0ThL2rfhVASObftKsct1f08u yrkg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b=ExxGDG4H; 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-65880-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65880-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marliere.net X-Forwarded-Encrypted: i=2; AJvYcCVdIMyyKkDn/y8eTlsz0MRoi7iJxOQJaT8oUoZL2xVIOrHuXB6BL61fuAw02Rf8wP2ZQJ5zCr57Qwmyf+yhAhEtAouitw== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h189-20020a6383c6000000b005dc5dc82729si4263590pge.541.2024.02.14.12.04.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 12:04:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65880-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b=ExxGDG4H; 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-65880-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65880-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 46568B28613 for ; Wed, 14 Feb 2024 19:28:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0845213DBAF; Wed, 14 Feb 2024 19:28:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b="ExxGDG4H" Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (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 C682613DB88; Wed, 14 Feb 2024 19:28:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707938884; cv=none; b=J5fPF6p/e6rtkiTKxTi95wlHqZ98Tw2v4JqD56qdDLfT2qBQ0KdiTVjbcqqgVgGzYgjGjTsXSe+AeHGU8fqP5MkVqtG8ojpdokX5BjprCe9JpX+5XoZ2IDff7ssjqKpxKRq8dlN2jTTRENNkdtQv6Gk0MUVFAtkmqposZ5c4lzo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707938884; c=relaxed/simple; bh=krKW6FufyrqnEsJjvhkOclRGG5wwZHLlEbv96z5uKcQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Z6dulQ9bdFwaNHFKK0xpM20/ysheqKp5ga5RBYluvOP4JxCcwkEp7jzbh9inB3I+CGhYqfzAw+3dThpxf0BAKHf3FQIupZYb1DPldrkogCu7fMwoH2bBx21Sg473SoJnixpVUVaCb3d6h2B36fioM+MbfLbsJ4voAHkggT+0dqk= 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=ExxGDG4H; arc=none smtp.client-ip=209.85.214.169 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-pl1-f169.google.com with SMTP id d9443c01a7336-1d9b2400910so1152285ad.0; Wed, 14 Feb 2024 11:28:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707938882; x=1708543682; h=cc:to:in-reply-to:references: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=SW2EVXlkBr3rgXstlJZO0zqxkNTOtfGuPtYbWFp/giM=; b=jzId0Czz46pt0AtXWzTekXEQG+3sbmn1DWYr/k3hZalTC4W9iOHJ+A+sMLZlw/jGfZ xzKGnKvj4qF6EpPs+HakMfUMjMS8H+lfLBoREiXnuxp1mdBUBbB/1FgjXzS5924L3gpT F+jIRQPgvxz0o8NjaLyjGHPfPupix+Ab7nxluJ3z8kaNJkX6P9NmGacIqONGcnpNMkD4 pHRnlMGSdLhLEY7pr0ob00FSeyoSi5lcs6SwPOT3lfOG+lTIwvcEfs8ze9sLKUlN0O7C nyrHhhJSDB1XrjOg9adIdpjAL97DYJXAlY3nCVMGMZ3lCuS0TpqGZ3XGhN4VL0JAPxiz tUzQ== X-Forwarded-Encrypted: i=1; AJvYcCWRwrzJVkQRk6bpzcBbg4JqbEQ4QBMMMOHXRlujnd/DnSRh+dp7BfMBU+d4kJIhql1/HwiQiB7dFGjFFnMJu6npOul3bJGZbq993ZtgUs56C7Tm/XQ8DPyopjpVbwfY+3+KTpAXhmmh67A= X-Gm-Message-State: AOJu0Yxtfs09o5E11DgWoBG4ZH4iSctzgbO5nf3raTArc6x2CatCUeDn HhBjQ15PXYbBT7xlzgvxa+BmT9k9l3hOvcwMVyBpZB3auTaLfM5h X-Received: by 2002:a17:903:32c6:b0:1d9:adc9:2962 with SMTP id i6-20020a17090332c600b001d9adc92962mr4216641plr.20.1707938882014; Wed, 14 Feb 2024 11:28:02 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVNr2uJ9kjnrGCOQC9BNLwWgg0FTNhR81r3mhUOmcxEJOT46yMDQ2YE9PySMXH9JejYyLfBYad23Xt/qtP4pPO7VaCiW5o6cRBaLbImdxN8Ea1NBJL/n/vkMXS+JbXWFt4TGJQbxO8QSVNbOlI0qMyY8fs9rdBzMpEusKyCRENQa2meTvVnw65ziaJRTjSACAWZOqJbCLVARgAiekH+t3uAQ08tn0XAp8sd9nu7H5VACcHMwU9UDTqQnBR4BeAtg5VErA== Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id kk11-20020a170903070b00b001d8a93fa5b1sm2269628plb.131.2024.02.14.11.28.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 11:28:01 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2024; t=1707938880; 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: in-reply-to:in-reply-to:references:references; bh=SW2EVXlkBr3rgXstlJZO0zqxkNTOtfGuPtYbWFp/giM=; b=ExxGDG4HkIj1oisfc/xBYlb83uf+EJVkHyY++SDgkc95zRxC5dMn62sB0ubUZ9MmGZ//Ve lIF/ReQzCklcu8k5GEkXFg8Et4Oyf8JMeuqB3qJDimH9K+Zjzb6y6TWjvbbln2aQLXkSjo 9a82NqA3wef3FOOC/DioCZN13IuEG+DQcl1aHqC1Dmh7BSbeVJz39Nk8PBDTUEXX0elzk2 BLpIxKjaxPDeaMxBSmX++g6iWbO5mf0bDTZYMrw76JUkqShALd/iWaiRQpGN2KqbN3moMP Z+jYdDVMOGEbXWEo/bmczCW9woQefjvDnjsUueUdWw9Z0HF0Br0IUu23wasUig== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Wed, 14 Feb 2024 16:28:29 -0300 Subject: [PATCH 2/2] ALSA: seq: make snd_seq_bus_type const Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240214-bus_cleanup-alsa-v1-2-8fedbb4afa94@marliere.net> References: <20240214-bus_cleanup-alsa-v1-0-8fedbb4afa94@marliere.net> In-Reply-To: <20240214-bus_cleanup-alsa-v1-0-8fedbb4afa94@marliere.net> To: Johannes Berg , Jaroslav Kysela , Takashi Iwai Cc: linuxppc-dev@lists.ozlabs.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=1035; i=ricardo@marliere.net; h=from:subject:message-id; bh=krKW6FufyrqnEsJjvhkOclRGG5wwZHLlEbv96z5uKcQ=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlzRRhl5Veu7uhBrVI+1uU+rR4q9IbJhifdb9TU N+d17t0QdmJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZc0UYQAKCRDJC4p8Y4ZY pua5EACuVYFKzDW/TNKVRiEKvBIwgkmSnbmvzLYBd//6zcN/EAmhfhvISk2n9yBPuubxPSZaaxn RqRssHLBSRa1iXhKOvZXLcO6w4JAvMSpsQItJWa1JjBhBbiCyGvFqjzT1nMR7UIJ9ygrJxm5sin BpR/KI9reM1gxTPJwDCt3TubQKaaH8CkcX9uMDP2bchSDnQ5209TEhdocOZ3NReMxnm2ry5Szce 0x63cr2s6aAKiETtlrjTDMYIIcjFmH7ZSArvFGGcjxijIDBfb2sj3yxF9e2xKBL9RyDBY5xS3rW B7JHq6CngM/y0FV8xzlF7Dt7SoW5eEZKVFQBdMwRwQFfjA+5hc1eVSHXCyKVYM02dKvYUtKw1Z9 xf2JfFQicxO2BJlDyGq0XUj3yNxEo0TXIeWjCKsDLOWD/cLS6LsSlZuUkwPFbyZrxQmfuTrwAWu 44agkqrnN0TkX8NggIw2mYTOULjDWAFuRups2m4TfBhd+G/Rf3KqRoJzKfqb8XETovkNlHCt/GP nouPP+s1xHBga6enpHkwe1geOAkFmtvCPkLM7ZEnGSLRiE/neQExxHJJ9+ZRK4fclXGpADPv2b/ +LFqX9LvwU2qa5tcINF5yMW6AEOFCheXlE/15rHjKff8s5MkkAz4ZI8mMsDDFoRTTNPuz18gIn9 IyMwkxY0ce06jZQ== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790906000489002144 X-GMAIL-MSGID: 1790906000489002144 Since commit d492cc2573a0 ("driver core: device.h: make struct bus_type a const *"), the driver core can properly handle constant struct bus_type, move the snd_seq_bus_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 Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- sound/core/seq_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/core/seq_device.c b/sound/core/seq_device.c index 7f3fd8eb016f..654d620d0199 100644 --- a/sound/core/seq_device.c +++ b/sound/core/seq_device.c @@ -49,7 +49,7 @@ static int snd_seq_bus_match(struct device *dev, struct device_driver *drv) sdrv->argsize == sdev->argsize; } -static struct bus_type snd_seq_bus_type = { +static const struct bus_type snd_seq_bus_type = { .name = "snd_seq", .match = snd_seq_bus_match, };