From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 0DDEE2B9B4 for ; Wed, 1 Jan 2025 09:08:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735722527; cv=none; b=oHtRZEp+Bgy+1JqsTEJJvoDB7Bav2gHCLIzahokSDMoWkCztsqTtP3e9CNM9gIqqnrP2/mGCyVm3U+E+cIp4UEr6vO2RB9UdO1X0K2e6ZRAEWn/Ehmon6pjHeNIAInWNR4oh5uRCG/okJ1YVVKPZADNxxKOrEwnGAxQJNn+SKRs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735722527; c=relaxed/simple; bh=emr6rczW5IfzGAtLEHjvPDT+M6uURrUBNbqmvo+8lJg=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=TWZ5+IpAFIZEYW+td+WQNVBoXlM0pKOxFhlVCEEpK4dNP1HcKvhkCwLHNAn3FZ4E7YcoiFSL2RF46Y94WW/czb/ciV6n5RsJf0s6Vvv1Z1VJ+fn//GcfUzje1HbgRq/DJTab67i7526lJ3gXpPF0suBibqy+yGS6DKjJ0HOFoS8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=hwLr4fcA; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="hwLr4fcA" Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50185YYW030578; Wed, 1 Jan 2025 09:08:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pp1; bh=Jf3b3+ hMkA7D8gkJoXdeqZ12F2ikW8JjvjNFIy5bWO0=; b=hwLr4fcAwGDvMbYFJVv5Eg kPFLZd5qEWNLRzoJAec21Zk1XxGimW1qXctAgboyG29T2/rz08h4Mmzak8rsQTrM nXTs5n0C0RklvRBNsa4aJwSsm2aLAveo+OLOv1WqMxoIIx+02s5waI24k59Q3aSj SQc4bs6bl5H/84H0kAudw5qecbRxN8mO+UfMOqfkkR38OxnOSdL+xY9h2ZfylWXL BAy2zvRl3Swr6KyawPtBuyFeT3O8ZfwO2lfKzBQJmRF8v46Qo17q8iiD+MoAUY+L rnlNvLEnMfug9a0/Ig4UKC3If3Uqx1jJUxp7cHpAXOY2W2l5jCIbuaWVKk49AhIg == Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 43w1w2g4gd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Jan 2025 09:08:39 +0000 (GMT) Received: from m0360072.ppops.net (m0360072.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 50198c8A013169; Wed, 1 Jan 2025 09:08:38 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 43w1w2g4g9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Jan 2025 09:08:38 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 5016ZLVw010180; Wed, 1 Jan 2025 09:08:38 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 43tvnndnfe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Jan 2025 09:08:38 +0000 Received: from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com [10.20.54.102]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 50198aM331851216 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 1 Jan 2025 09:08:36 GMT Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 52D8B20043; Wed, 1 Jan 2025 09:08:36 +0000 (GMT) Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AACEC20040; Wed, 1 Jan 2025 09:08:33 +0000 (GMT) Received: from li-c439904c-24ed-11b2-a85c-b284a6847472.ibm.com.com (unknown [9.43.115.214]) by smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 1 Jan 2025 09:08:33 +0000 (GMT) From: Madhavan Srinivasan To: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux@weissschuh.net, rbm@suse.com, Luis Felipe Hernandez Subject: Re: [PATCH v2] macintosh: declare ctl_table as const Date: Wed, 1 Jan 2025 14:38:31 +0530 Message-ID: <173572211262.1875638.13600288150839690769.b4-ty@linux.ibm.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241217-constify_ctl_table-v1-1-402ebceaeb8e@gmail.com> References: <20241217-constify_ctl_table-v1-1-402ebceaeb8e@gmail.com> 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: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: yrL62vs-3OgRLXfykiiZoQ9-234UaIeM X-Proofpoint-ORIG-GUID: je2n305QluO6i3hU2KLSaLw42B6bjsqH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-15_01,2024-10-11_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 mlxscore=0 bulkscore=0 mlxlogscore=966 malwarescore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 suspectscore=0 priorityscore=1501 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2501010077 On Tue, 17 Dec 2024 21:55:41 -0500, Luis Felipe Hernandez wrote: > Since commit 7abc9b53bd51 ("sysctl: allow registration of const struct > ctl_table"), the sysctl registration API allows struct ctl_table variables > to be placed into read-only memory. > > mac_hid_files is registered as a sysctl table and should be treated as > read-only. By declaring the mac_hid_files structure as const, we ensure > that it cannot be accidentally modified. This change improves safety. > > [...] Applied to powerpc/next. [1/1] macintosh: declare ctl_table as const https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?h=next&id=e834166822a3c9fb403411c898367df8dabf973c Thanks