Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2608994rdd; Fri, 12 Jan 2024 15:41:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IGWSFpvUCJ0mkJE/mR9+3na2FHVndH4LItfWrPDtNVs6Dfjd4CFZMcTD4DtYI7Iw8OiPlHs X-Received: by 2002:ac8:5c0f:0:b0:429:c831:1673 with SMTP id i15-20020ac85c0f000000b00429c8311673mr2186360qti.77.1705102892661; Fri, 12 Jan 2024 15:41:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705102892; cv=none; d=google.com; s=arc-20160816; b=aagstEP0fNP9vpzhN4dXSrOKg2BxlNeyKeuVTmHLVgekp5I5GE3X5rk+Q9iZjjOSvD 6dFsBdXSYDkIJWVRJeD4MNeLn8r2RfAknPHWju5yOKPEowSaCEo25LgYD6Z9X31XcnwA PqSpXOlNXX/eoYyRWxvSde4X4XnWg2Yl9dgMO+Pn4Sw7+8BO6El5OfKo5PKLNWytv4ok 8eDTosth/NvpahQNg8fLDoHUgg/iHv+6KGThfvMx0UcbbWIxS3xd3RFdHhKozDh1d7aD 0O0owXlljSQ6wjVrHLfK/g4l628ZWuIasoN3H8k4YAq3utTZ8D2YkToxj28WA06l8D+N TdMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:cc:to :references:in-reply-to:from:organization:dkim-signature; bh=U7q71AgIZkys1tWLEpL5HdW3S3RRvPb/I6Cmgv2h/DQ=; fh=D6i7MT1B+Xz1IBgET1N6ptIhQV259GHj8uuwsTEVZNw=; b=glK0Fe3aQ+lDT64ionQ7koInbrMFNZAUZ9DLaFzdAzzeyGcYVDgzKDXab5xCsOqo+7 3gL+Iw0lqxBaVpmuABvlIobGcLEfP87NlbU1CwY5kSfZz12FDrPSR8SkgJuRO9wPHgyM Bfx/TliiDHZjZtBgyXC0EWVGb32IrVttCZ/pd4eTfj2V9E44PGmoAUNeKIY25RKb/gML FPZur6aITiHQJzV0ceqo/f1iVdo2SUUROzXcvJijJONfAJBgKP+KtMtpVUP04Kxi5gXX gNtoeTtY/dROE/lXpYuEPsJ1W7Q9qRHVKcUzKrouPdVxOnv5L7wZb885Xd0HBktyMBYq BRjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ltq9axD5; spf=pass (google.com: domain of linux-kernel+bounces-25107-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25107-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t2-20020ac85882000000b00429c0f18707si3846205qta.574.2024.01.12.15.41.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 15:41:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25107-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ltq9axD5; spf=pass (google.com: domain of linux-kernel+bounces-25107-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25107-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 69A761C228DC for ; Fri, 12 Jan 2024 23:41:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29C721A5A8; Fri, 12 Jan 2024 23:41:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Ltq9axD5" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 7A1101A598 for ; Fri, 12 Jan 2024 23:41:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705102883; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U7q71AgIZkys1tWLEpL5HdW3S3RRvPb/I6Cmgv2h/DQ=; b=Ltq9axD5GeFSQ5Tm+5hj9vvfJNdg+vmFvI9okscRgjhh1YvBCcDCFwc1sx4HY6us4QXgHz scNwgSwTd9eY7DHfq8rPTvx6F8S7CtMeGZDnhXC3f13uM1nSRjcrk2qDZk/5iG5VBMnFIU Or1NprNP+gh0kRQL2IRiSjwliqsbZ5E= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-396-4_zyDzLJPxi1Y6egJm-dug-1; Fri, 12 Jan 2024 18:41:18 -0500 X-MC-Unique: 4_zyDzLJPxi1Y6egJm-dug-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 88E2382DFE1; Fri, 12 Jan 2024 23:41:18 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.67]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1CB95C25AC8; Fri, 12 Jan 2024 23:41:17 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <8634v2jh9s.fsf@aarsen.me> References: <8634v2jh9s.fsf@aarsen.me> <86r0inmpbm.fsf@aarsen.me> <152261521484.30503.16131389653845029164.stgit@warthog.procyon.org.uk> <2154236.1705051203@warthog.procyon.org.uk> To: Arsen =?us-ascii?Q?=3D=3Futf-8=3FQ=3FArsenovi=3DC4=3D87=3F=3D?= Cc: dhowells@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/45] C++: Convert the kernel to C++ 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: quoted-printable Date: Fri, 12 Jan 2024 23:41:17 +0000 Message-ID: <2389650.1705102877@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 Arsen Arsenovi=C4=87 wrote: > >> > (7) 'class', 'private', 'namespace'. > >> > >> 'class' does nothing that struct doesn't do, private and namespace ser= ve > >> simply for encapsulation, so I don't see why banning these is useful. > > > > Namespaces would lead to image bloat as they make the symbols bigger. > > Remember, the symbol list uses up unswappable memory. >=20 > Ah, I was not aware of this restriction of the kernel (my understanding > was that the symbol table is outside of the kernel image). That poses a > problem, yes. I wonder if a big part of the symbol table (or even the > entirety of it) could be dropped from the kernel. I must say, I do not > know why the kernel has it, so I cannot speak on this issue. You need at least a partial symbol table for module loading and we also have the symbol table optionally included for oops message generation. David