Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2042321rdb; Mon, 9 Oct 2023 10:31:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGD/8Qjm/2ROTLf48JHgLs8M/FicUwIC9CLZuyehj7hcdCWVFtsDhSIvlgxNb2HDs2WbKSA X-Received: by 2002:a05:6358:9691:b0:164:8742:525 with SMTP id o17-20020a056358969100b0016487420525mr9956235rwa.17.1696872691608; Mon, 09 Oct 2023 10:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696872691; cv=none; d=google.com; s=arc-20160816; b=nSW0YK4aFghcGbCnag+C2TCfzBKkjjVGdwL9GLCXHJ5dxGZzWY1YK1KanngYUpC7fy IbwAEq2A69UpspeDZxrNdMZ/A5RVaUnonRCZY+Ia/XkQPS+KgMqiSXBI81xV1GJ3sfWU +gzxJx+mA2Rypnu2iTYtronF4q1fUCkUeFTcB5efwowPxQQO9ym4EH3+vd1izF6CoFWt zAXqXJUlheIuAS/UytnOk7pBCoOHDtoOzQNiWP4N9E1Od8LhbZZs8WkB0GCntCSFpHSv AqV3cPbq2d7+OAsY7a2ozSnRAs2A3MghTIhdR9tiJKGdQDgPVBwMRPKioH2nHXsATnbk MM5w== 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:dkim-signature; bh=nqFeXdTsdXnrGEfpMKaOYWvyyqyMyHQmVgLTGloIgo0=; fh=IKpIlV1jqp7U4FpAJBTFpI1NtZwggx0yusslrkKkt5U=; b=C/m4gtGq4JRMGyc9yTTMtjErQE32O6dGhY1XafHeARM7C/b7psvkt8MzffOfRIgWhZ 7I6d1C5iNIH8IPFxf0DTMiaQSIclzEiP1u+WqzyVzN2Hvnqneye84E/AyKqNhdul9I31 nkISebQFzv+N45vQsIT2qdvUo4JypoozB8erlI7Dg33lQQzLSQNMEnXEBkRau/HnDCjX TEE3rwZx1AjApW0f/HI+U7IqBshMYCudq2fFr9Tw7mD7hhlNXHIDzxVWcswxHebKWt0Q JPcljTR8n82h+M2mRV+9o63CWCW0mGiIBYPPADcQ5kG4+sZjlT6Ah9q9oYuGIzDafxb5 hCFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=INX4ASZN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id s140-20020a632c92000000b0056533c00e83si7017831pgs.413.2023.10.09.10.31.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 10:31:31 -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=@linuxfoundation.org header.s=korg header.b=INX4ASZN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E80D68070647; Mon, 9 Oct 2023 10:30:25 -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 S1377579AbjJIRaU (ORCPT + 99 others); Mon, 9 Oct 2023 13:30:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377407AbjJIRaR (ORCPT ); Mon, 9 Oct 2023 13:30:17 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C31A9D; Mon, 9 Oct 2023 10:30:16 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2A51C433C7; Mon, 9 Oct 2023 17:30:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696872615; bh=EACK2tmq5+41Js6GZfBr/J8+BuSNLbbDDNpHvCryNec=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=INX4ASZNRg/lD8oCQEsXmK56PSVK/sEm9Mkl83Lf+wu6Pq6XbuVOt8fQHRF/LILAS fvBuviO4505VLsdbEbjKHnZpR9i3YN6+G42buKLgOzK30gks9PtUCHIIpMAGmvnre5 RidVSyLf/g5j7I1uMYVsSeIjpRqPCTh62O5WpvbM= Date: Mon, 9 Oct 2023 19:30:12 +0200 From: Greg Kroah-Hartman To: Max Kellermann Cc: Jens Axboe , "Rafael J. Wysocki" , Ilya Dryomov , Dongsheng Yang , Dmitry Torokhov , Bjorn Helgaas , Rodolfo Giometti , Alessandro Zummo , Alexandre Belloni , Jiri Slaby , Mark Fasheh , Joel Becker , Joseph Qi , Andrew Morton , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, ceph-devel@vger.kernel.org, linux-input@vger.kernel.org, linux-pci@vger.kernel.org, linux-rtc@vger.kernel.org, linux-serial@vger.kernel.org, ocfs2-devel@lists.linux.dev, linux-mm@kvack.org Subject: Re: [PATCH 7/7] block, drivers: make lots of attribute_group globals const Message-ID: <2023100944-sandpit-bronco-3db4@gregkh> References: <20231009165741.746184-1-max.kellermann@ionos.com> <20231009165741.746184-7-max.kellermann@ionos.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231009165741.746184-7-max.kellermann@ionos.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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:30:26 -0700 (PDT) On Mon, Oct 09, 2023 at 06:57:40PM +0200, Max Kellermann wrote: > This moves those variables to the ".rodata" section which reduces the > kernel size a bit and protects the variables by putting them on > read-only pages at runtime. The kernel size should still be the same overall, you are just moving pointers from one section to another, right? If not, what are the numbers, show them please. But step back, are you SURE you can make these attribute group pointers const? They are modified by some subsystems by adding or removing items from the lists, so why does the core need to change for that? thanks, greg k-h