Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2038741rdb; Mon, 9 Oct 2023 10:24:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHJhhN3rdu/fnvaBk8eb3e/LE4yI3UwxlKKmhRT9Iy2ASeEIHh4jsUT8azS+z3azdDKjjpD X-Received: by 2002:a17:90a:e144:b0:26b:3751:652a with SMTP id ez4-20020a17090ae14400b0026b3751652amr15432712pjb.38.1696872297499; Mon, 09 Oct 2023 10:24:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696872297; cv=none; d=google.com; s=arc-20160816; b=L5xmag8JAJe4lmZcx4aeAAEjaRAM5ou9C1mDbreF8SdnNFkMQS1s0IaQJSb9JvEWsX WH1b2vOuTbiifvRDa3cvCvlrn/m/HrlQ+ZEOYjkc+8tfsBldq1i2BEytF5NCEocQMVVb qEh8OUF/nAZVfDf6dv7xcH/58DQbzLdr8gS3VPrrAxxCo3Ji0tepwPuk7omNcJaa1a0F mTKRSipp6va9cr1vlYSmGvJFTeiypbkVrbvC4+reTVrDGS1bO2IG29fZZpuQCZNFvsIq 4jlxEmH/slLeUa4uwJnkLDEpDxObhPIXzmRRBprHj8vuaC1m+kht7M0zAzfgYGR2JTNC J6xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=hzAdnPv6S7wemZW2LOvDdjej33oUOA4jt9qFcygegX8=; fh=StrPevt1Jaw2yBFOlkalX2y8TWLvuhSMsaO7NNyJ/bI=; b=miCxCpr/c0PJPw9OOBiIM9e5pg12/VED9dNXf/P9rYgQ9fBT8iBA5c/DBLAkA2tuD6 CfBAagY6dGqLzkPjsN8RDt4Y2g2ORVuKCSbrqUqWk+3i2rvh3X4XZXob5PA5OEgEhaso n7+pcmZO/irlUv3QmVvtMQ9RP72A+Pv534/9fCh93n1Gc7B8UHixCshqgDLfeTCPDT0a mz+y8LWMTj0erpzE/Y1UsxwspZJfJETqQeO7eEiqbG7pjuaCfaQu0JH8I9r8L+sObVP8 3Ppri5Ws0r0ErDFrroGkvVLG/cbNvjK1YvlW3hJchzAxGtkpl+QL3BgYM6SkoBdDiXRg nd3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VcdmRB5J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ep4-20020a17090ae64400b002773b2dd112si3057209pjb.54.2023.10.09.10.24.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 10:24:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VcdmRB5J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 362F2801C7C6; Mon, 9 Oct 2023 10:24:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377524AbjJIRYx (ORCPT + 99 others); Mon, 9 Oct 2023 13:24:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377258AbjJIRYw (ORCPT ); Mon, 9 Oct 2023 13:24:52 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C569A3; Mon, 9 Oct 2023 10:24:51 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-578d0d94986so3492567a12.2; Mon, 09 Oct 2023 10:24:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696872290; x=1697477090; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=hzAdnPv6S7wemZW2LOvDdjej33oUOA4jt9qFcygegX8=; b=VcdmRB5Jyqw8aqvnps3ZcNESprEZdvjdfZIHohOck7OQ+ebTQDRRCAy5hDXxTGcBdW JEWThpfElMZZN6U7JsjnB5HH54J80NACyeKE3UbKbZCn6+bgBpt9Aa1leQHU85YufaMy iQbTWQUTq0Vw6PZIvJa8rUjjqanvgZw0ric83OoIZNRhValzcMsodZT/47Hl3oaBzBMQ lkWwnvITABSzqb1v73HekQEZSg75DYG95nUNBS76vzSMiaO355GiFoXRORwaIzvHlSY/ lezXmO1mxVPjyoBpb0fCiRcp1Wj/dvqoRpvGHK2Ym2SJmFrC5rORF6cLNIyUSGCYQpUH sQ+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696872290; x=1697477090; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hzAdnPv6S7wemZW2LOvDdjej33oUOA4jt9qFcygegX8=; b=E75aMKFKTiQieeU28mkZ0AbzQI0IkhDi/5k6iSZUO4uEQRPyndpw/RP/bMRy0LatgT WNjaqRl9zR00QX9R+2jNiyfnX/le48V2g+BqCl82r4X7Imz28nfLbdxAWXcLZEWB2Sie mgHCOp5O5xt3SzjydAT2LU0bEv7O9xG7HoTZIIu4MQvm+PvS1SDmVpqPVTIGwgQBQLxx bZwHFAQi1F9kX1yw7i//D3ZrID6KW4ovplI0wQHJkUw5DldcGPS+WXy/yeKc77nhD7T1 fj463MYoENIbQb8wN/hHa5UfvECy2Js/lAGt+dVVqNynDrGbDnfSEWJz5KRs0y5wEmg1 P4+A== X-Gm-Message-State: AOJu0YwljsRwStMLikM9hRsaj+osT/BPLN2bOmDZ3tRZgPgxdpg2A6mM 3vXfkBbcyOkgLonNJwuH7Qw= X-Received: by 2002:a05:6a20:8e05:b0:162:4f45:b415 with SMTP id y5-20020a056a208e0500b001624f45b415mr20823608pzj.51.1696872290343; Mon, 09 Oct 2023 10:24:50 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id m24-20020a17090a7f9800b0027b168cb011sm8557487pjl.56.2023.10.09.10.24.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 10:24:49 -0700 (PDT) Sender: Guenter Roeck Date: Mon, 9 Oct 2023 10:24:48 -0700 From: Guenter Roeck To: Max Kellermann Cc: Jens Axboe , Greg Kroah-Hartman , "Rafael J. Wysocki" , Borislav Petkov , Tony Luck , James Morse , Mauro Carvalho Chehab , Robert Richter , Jean Delvare , Jason Gunthorpe , Leon Romanovsky , Bart Van Assche , Joerg Roedel , Will Deacon , Robin Murphy , Dan Williams , Vishal Verma , Dave Jiang , Ira Weiny , Keith Busch , Christoph Hellwig , Sagi Grimberg , Alessandro Zummo , Alexandre Belloni , Jiri Slaby , Suzuki K Poulose , Mike Leach , James Clark , Leo Yan , Thomas Gleixner , Peter Zijlstra , Pavel Machek , Lee Jones , Arnd Bergmann , Bjorn Helgaas , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Sebastian Reichel , Krzysztof Kozlowski , Wim Van Sebroeck , "James E.J. Bottomley" , "Martin K. Petersen" , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-rdma@vger.kernel.org, iommu@lists.linux.dev, nvdimm@lists.linux.dev, linux-nvme@lists.infradead.org, linux-rtc@vger.kernel.org, linux-serial@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-leds@vger.kernel.org, linux-pci@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-pm@vger.kernel.org, linux-usb@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-scsi@vger.kernel.org Subject: Re: [PATCH 6/7] fs/sysfs/group: make attribute_group pointers const Message-ID: <264fa39d-aed6-4a54-a085-107997078f8d@roeck-us.net> References: <20231009165741.746184-1-max.kellermann@ionos.com> <20231009165741.746184-6-max.kellermann@ionos.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231009165741.746184-6-max.kellermann@ionos.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 09 Oct 2023 10:24:56 -0700 (PDT) On Mon, Oct 09, 2023 at 06:57:39PM +0200, Max Kellermann wrote: > This allows passing arrays of const pointers. The goal is to make > lots of global variables "const" to allow them to live in the > ".rodata" section. > > Signed-off-by: Max Kellermann In my opinion this touches way too many subsystems in a single patch. If someting is wrong with just one of the changes, it will be all but impossible to revert the whole thing. Also, I don't know why checkpatch is happy with all the const struct attribute_group *const*groups; instead of const struct attribute_group *const *groups; but I still don't like it. Guenter