Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1719892lql; Wed, 13 Mar 2024 06:33:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVgFTaV65PhXVmJXI33S7YZbqJp+agnxKYVpI6B6Ek0M85r78ibGTUVjl3bgpj/sRcwrXtImb6dbFnYj/P5U+A6S8T7gSIB0PqWs4gztA== X-Google-Smtp-Source: AGHT+IEhC0hGJv2psZ7Rt03mSSwA7RI2VJy0HfGWj6lEyZbKIxsIlQJ8Bx521a2ijcRy1LMyKdR0 X-Received: by 2002:a05:6a00:842:b0:6e5:3b8e:bb6b with SMTP id q2-20020a056a00084200b006e53b8ebb6bmr3231230pfk.7.1710336815197; Wed, 13 Mar 2024 06:33:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710336815; cv=pass; d=google.com; s=arc-20160816; b=HmXiN3uNC04gGzTN1neHzmn3j7eZO6rEPTlNILEBKrkGC0iksfgCdYKktwadvXU3GX VDvcvV7mbyhwR41wJfthJqoxBOHIKJrkRnrbLTYRd8T0U46tB0dtRmBqk0s+BsP/61Wg XoVMLiW3HABdhPTzgHk+E3+rk6yEagpdMBpTKpRAPCOv/qNR0sQJYZ+y1XFbmTH2l6NI aFsKnKTOpLmLr6mizb7UqJ54lgbUuYKMBQ/uZ5EXSKe/OcINOO9YmwcdT+EDxautAdbr yYb2nfnLqbkoyR1CgcdysiQ88Wj93jIPthOVY9yc1/1EvDicWg0GiqOun5pZVOrUBVqu 8m0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from; bh=oZpTlhQFJpiQ8e+NTt+tnd4URGrm9tkIAhWc9FrsoDY=; fh=Nk4qn2KAUaM6c4zzKPjLZ8JrewpNAViUXxr5Pl+2Uic=; b=pN7Ny+LJOiyst+jEUquqF18g9l6pAycZMDR0+4P9wZCDAUTLqJ1sov1uPe8hflgjrA wIZmTVrL094mDVCIRNSwcBbz9i03hJE0prah+H+cwjqMUDXvk/sPvQCeAUDtRM2EYLbA hoFsatLA52vgLeTsiMnpy3xitv1kzK2NR3NCSJ80oQUbNVLxkBC10ql9geVsIvwY4q8I LhSClIWZZ0dgJt4z+mi/DooX9FUlIpL/LIjI+PJoW1E32B12RIUnMJ5YxU92EFdK5wxj Q1vGKC8RQzmiLfC1d4MytgB+Z9qK2BYLqLza1UKFtvw/jSKgLaRB1KgX3d9SsdQjUJ5W fxmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-101536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101536-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id g3-20020aa79f03000000b006e531ba990bsi8857901pfr.326.2024.03.13.06.33.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 06:33:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101536-linux.lists.archive=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; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-101536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101536-linux.lists.archive=gmail.com@vger.kernel.org" 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 C9729B22774 for ; Wed, 13 Mar 2024 13:29:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0D6843ADB; Wed, 13 Mar 2024 13:28:04 +0000 (UTC) Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF2D84174F for ; Wed, 13 Mar 2024 13:28:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710336484; cv=none; b=Mnh48dibzcYBh9J2pbAISGA0Kr9Egjkyo7iXVKJzikQKDrqzsN7hXTT1bfKeYmUmzdbUHrg5dfyw3SZ7yJyiqRlWNkBwu0VW4mIcqJ50dRncc5g7lhr5ploXxOsirMfUTtAPy74cpKsmfbBsDciD24L9m7m4zYMDXlcmrFbY0ZY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710336484; c=relaxed/simple; bh=nWXoeQ0vU63ggaoepGI1o9KLOR4AfeohtuPmYFdgKuA=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=pt8ox/mkHhLnJfWZPduTAk/DeFlbK/b27TimlzyPSnnZiG1zjBbHkamaNXGi6HCHl6Cgw49qF34zl2H3OzZR0dTdXlbbWsgjiYGP7md2LiNXFLMRwj1k90pcJus/dlhmCl7kMMcu9g4LQTpAyed6XMwPU6lBGieykZGT0vfjOks= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au; spf=pass smtp.mailfrom=ellerman.id.au; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au Received: from authenticated.ozlabs.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 mail.ozlabs.org (Postfix) with ESMTPSA id 4Tvrt86W1qz4x1m; Thu, 14 Mar 2024 00:28:00 +1100 (AEDT) From: Michael Ellerman To: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, "Ricardo B. Marliere" Cc: Greg Kroah-Hartman In-Reply-To: <20240305-macintosh-v1-1-9c3f4f882045@marliere.net> References: <20240305-macintosh-v1-1-9c3f4f882045@marliere.net> Subject: Re: [PATCH] macintosh: adb: make adb_dev_class constant Message-Id: <171033598346.517247.1715185962283268318.b4-ty@ellerman.id.au> Date: Thu, 14 Mar 2024 00:19:43 +1100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Tue, 05 Mar 2024 17:13:48 -0300, Ricardo B. Marliere wrote: > Since commit 43a7206b0963 ("driver core: class: make class_register() take > a const *"), the driver core allows for struct class to be in read-only > memory, so move the adb_dev_class structure to be declared at build time > placing it into read-only memory, instead of having to be dynamically > allocated at boot time. > > > [...] Applied to powerpc/next. [1/1] macintosh: adb: make adb_dev_class constant https://git.kernel.org/powerpc/c/83bc680e87292f78c6e823100e417d58a66dcb06 cheers