Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4997260rdb; Sat, 30 Dec 2023 01:13:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCLzjNkjr4iFAQInq4yck8eUGlaAR3qNtjsQdMVjVkZUzJBTWQBj6cp0/SmIS5ONmZDgvc X-Received: by 2002:a17:906:906:b0:a26:8ab0:43b8 with SMTP id i6-20020a170906090600b00a268ab043b8mr3313328ejd.41.1703927613783; Sat, 30 Dec 2023 01:13:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703927613; cv=none; d=google.com; s=arc-20160816; b=s2DZJqL3h7iY3Non23eaVgavRFI4C8SP/EmEqdr9lHSa8tlNW9siOWjPfB882BVecO Jt70GQGP8DPuwMYHVUl5mYhrpbM+P7q5MRdZp7O5wGyIqvWN9cHf4Ug1zeJZiM+koE2U 8o4OlPoKEw2dgx+F8JU2x4ElXcLSWKGi3H5QuDXIQRwe0byh95jpsyrediVtXl3+BPcW ymkfbtmp3IZTseiaV2FPXl6jz8ZG+VXmA1/gjiKjEeuP0nELKjhEP4i8oWbMGs175ofQ yZq/SsRpH2a40GhAY3kPJd/XibOdDCSD8JigOvOZSLpptywesERbV6pBQKzVhWob6WBx lHrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=juDSCuSZKi75OdYbZI/wIeZL0Qy62bQFE+aWStVoyOM=; fh=HTiZsLcTlt4FAo2TQDzQ0UzxZqNJSX+ZV2yW8rp31pc=; b=0re8/91IudhAiZP7Cg126aY6Syb6vPkt7NhxgUI7+ANqouCkelnU9rpoWVzkh6uYx5 loq36A2MljiI99lEqokXUKisKcJZpjTcGUfekAQr/Hd96T92OzJ9o7TsYQag/26rEpBG EcYjOh6jS5kAlUqH+IpjSLzl273Q50mTucv6aagOocu9ltJ/fDAKrMhFRdga3+kONaXA LYjnlgBa2JflL512RbaWEorZMU/9OdFb4irYebD1mYpWuPXeAUSrJpWiS2p1OGP0xnXv UMOII0O8695MAH1iHUeFxcGFHPYL/jc/56lz6Q0BNs1kzdA94mmtLh7C4fYh6FwL6DdI TgvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=2IuES+5r; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=2IuES+5r; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel+bounces-13371-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13371-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id kf19-20020a17090776d300b00a2350743919si8656781ejc.1011.2023.12.30.01.13.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Dec 2023 01:13:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13371-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=2IuES+5r; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=2IuES+5r; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel+bounces-13371-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13371-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5C3DC1F217E4 for ; Sat, 30 Dec 2023 09:13:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1125F2104; Sat, 30 Dec 2023 09:13:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="2IuES+5r"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="918YNzGQ"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="2IuES+5r"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="918YNzGQ" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 82A4E63C4; Sat, 30 Dec 2023 09:13:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 9F35622111; Sat, 30 Dec 2023 09:13:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1703927595; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=juDSCuSZKi75OdYbZI/wIeZL0Qy62bQFE+aWStVoyOM=; b=2IuES+5rRL3i53Tzo/C8/VNiDWfzFbFLASJXH0jcOF4XDByCYob8nPQG1zbMDiasn7DHSL /ekqh5g739Xnx3CZSPYFtsZuJlXLxfNT9b2f3gIbAE5r/VuJ49DPeh/GP37LBm/XCzcwOJ nK59XCUn1QWwigNJi+OMq19ZpkAdIJE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1703927595; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=juDSCuSZKi75OdYbZI/wIeZL0Qy62bQFE+aWStVoyOM=; b=918YNzGQmkVOUdHr2qklOfiZ32z5HwCidcTvE+eFPNZ4Tc2gK4m0Ppzdl2KVJYbQkqgewA mI6v2UC58bQkHZAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1703927595; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=juDSCuSZKi75OdYbZI/wIeZL0Qy62bQFE+aWStVoyOM=; b=2IuES+5rRL3i53Tzo/C8/VNiDWfzFbFLASJXH0jcOF4XDByCYob8nPQG1zbMDiasn7DHSL /ekqh5g739Xnx3CZSPYFtsZuJlXLxfNT9b2f3gIbAE5r/VuJ49DPeh/GP37LBm/XCzcwOJ nK59XCUn1QWwigNJi+OMq19ZpkAdIJE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1703927595; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=juDSCuSZKi75OdYbZI/wIeZL0Qy62bQFE+aWStVoyOM=; b=918YNzGQmkVOUdHr2qklOfiZ32z5HwCidcTvE+eFPNZ4Tc2gK4m0Ppzdl2KVJYbQkqgewA mI6v2UC58bQkHZAg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 5A614136D1; Sat, 30 Dec 2023 09:13:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id r4FVFCvfj2U9NQAAD6G6ig (envelope-from ); Sat, 30 Dec 2023 09:13:15 +0000 Date: Sat, 30 Dec 2023 10:13:14 +0100 Message-ID: <87y1dcvys5.wl-tiwai@suse.de> From: Takashi Iwai To: Greg Kroah-Hartman Cc: tiwai@suse.com, perex@perex.cz, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Dawei Li , Yu Liao , "Rafael J. Wysocki" , Hans de Goede Subject: Re: [PATCH] ALSA: mark all struct bus_type as const In-Reply-To: <2023121945-immersion-budget-d0aa@gregkh> References: <2023121945-immersion-budget-d0aa@gregkh> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Level: X-Spam-Level: Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=2IuES+5r; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=918YNzGQ X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-2.53 / 50.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[suse.de:+]; MX_GOOD(-0.01)[]; RCPT_COUNT_SEVEN(0.00)[9]; NEURAL_HAM_SHORT(-0.20)[-0.999]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; BAYES_HAM(-2.02)[95.15%]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVRCPT(0.00)[outlook.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; MID_CONTAINS_FROM(1.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim,suse.com:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FREEMAIL_CC(0.00)[suse.com,perex.cz,vger.kernel.org,outlook.com,huawei.com,kernel.org,redhat.com]; RCVD_TLS_ALL(0.00)[] X-Spam-Score: -2.53 X-Rspamd-Queue-Id: 9F35622111 X-Spam-Flag: NO On Tue, 19 Dec 2023 14:34:46 +0100, Greg Kroah-Hartman wrote: > > Now that the driver core can properly handle constant struct bus_type, > move all of the sound subsystem struct bus_type structures as const, > placing them into read-only memory which can not be modified at runtime. > > Note, this fixes a duplicate definition of ac97_bus_type, which somehow > was declared extern in a .h file, and then static as a prototype in a .c > file, and then properly later on in the same .c file. Amazing that no > compiler warning ever showed up for this. > > Cc: Jaroslav Kysela > Cc: Takashi Iwai > Cc: Dawei Li > Cc: Yu Liao > Cc: "Rafael J. Wysocki" > Cc: Hans de Goede > Cc: linux-sound@vger.kernel.org > Signed-off-by: Greg Kroah-Hartman Applied to for-next branch now. Thanks. Takashi