Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp425367lqs; Thu, 13 Jun 2024 14:21:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJtY1VWTUeGQ1vHvnEe/RnNnSifV2ss7bVUuwZhoayDA0IOAiXHEJc3E087eahB/ITaootyiQRnSS78/bX2SpYV4apswWusXrBaJ0Zcw== X-Google-Smtp-Source: AGHT+IFZOWTkCgbAnRJf2HF9kqg5ZuwUqc7KhHnfXG1FUU1EQcMXYP5MYZPBJHGMB4FZg0L7wAJM X-Received: by 2002:a17:906:195b:b0:a68:e335:3e62 with SMTP id a640c23a62f3a-a6f60de5fc3mr51922966b.72.1718313680742; Thu, 13 Jun 2024 14:21:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718313680; cv=pass; d=google.com; s=arc-20160816; b=xNjIG+AlTrbhEQ5d7ftO7oTwlp1OuQ6HQmMFNrZfNqJVdsbogal7JXtn/VUgs2SfCC fPDVPH6vR8AKxrwV5hk1Fc7oPZ0hNkg1III7XQcolbGgyFEv/O2ijwBdPm5U9p0KuHbT Mp6+WRKODz4YieMS/R/VDPdjelqpzzYTZ37nNFdej9eQyv5EiTARhNrXN2FHREmv8GgI pwpZd/YtzlWcQ41UcNYsNGOLHDe9jIiL1Uj/dIj8szlmaIKbbwynblS5+6X8X1lWUlaP BayBpS4pP1EanCzZZ2DuMHeDjlwZEhJ7iFuTwY0awdeKnRRaBR/GKNwpG3568JPHxLuT 9D7w== 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:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=bgqVnxvHM4IyYNyliLdLk097AI4+kaSENwwxxQ+TAWg=; fh=qU6avlOU359yMpApfuY9dz8djJtxeW2QIwFX08CHl+s=; b=f/HOWKsd28c0kEGWqgeNZGmckEF49iyP4q5SeWynTmP9gAaCCEdTNOO5JfIIHvNlwp Q6VKX9FhOr5pd02Y+imydyNPTLkonM5U7imTMMGy37TDnIAorF4/cZtUU7AV4ncvxO6J Pq3Ke9EgKhZNJZA318E2HsHtBWEWYoySULPhM64KZquFpvTuEEkyWhQpWPzR8/pIf5MX 2BqmdUYnfSHaVhRv9vUUNm0UCvzZv20+tlJNRYbCDKtXtGgvLK39P8ePeq/LmiIHcGLY J/SfBKlNB8l/0jOstfe61ZL31I5I80IaLnqkSeSZK6j30tUcx3aOyrZ/rJi9aA/7cfu0 vQAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=ufbtqggP; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-214020-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214020-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56e26d46si101550066b.765.2024.06.13.14.21.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 14:21:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214020-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=ufbtqggP; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-214020-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214020-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 76AEF1F24E2C for ; Thu, 13 Jun 2024 21:21:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD7EE1411C3; Thu, 13 Jun 2024 21:21:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="ufbtqggP" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E831E5F876; Thu, 13 Jun 2024 21:21:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718313672; cv=none; b=FZL6fhY9X359gkF+molAa+cOtlZ/uRGy0Qt9o9R6KdRovz9nlCN+P9sEfc/unItDjO1sLJFI2P+uNPklf4JS56ByOLS/r7nPZzZj+hYmkEbb+i9JHofkl44D+7RdEcrrdVx8Lz4GdLMOSN0wn18iyO8CCtJ8oP+wlVWdMxVZ6rE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718313672; c=relaxed/simple; bh=tIVI8sDxoP6vcgbRqp/b+XMQGtqvU/991pldqPDDpVo=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=S2fBkhXplaQKklbXGnoKHDySZG/yts+uYJOlbJBuIiNIW04Q2y+9L2moBKzi07Rk6zBkKwICtEB+6hMTIFBLWiQuIAruEHr3J9JVgv+EeTVDEUSdCEQeSZmNoOrEp1mRRq5c8E5kNPo1KDqZNubtdqvjm9ithljRU2fvrzDxJIg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=ufbtqggP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CA7BC2BBFC; Thu, 13 Jun 2024 21:21:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1718313671; bh=tIVI8sDxoP6vcgbRqp/b+XMQGtqvU/991pldqPDDpVo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ufbtqggP0qaJWrdyuqK5JCm+amuWgHEKBTQAJvq5bYk1bRoaLGybAa033rBWFP5EC UlzfQnjdB/G2RD3fX9gn+0HedIfldL8bmA0C28PVro8Jbtc5B6gef5OYfZeGFDay6Y mlvkoxIoQt0gOnqRVafCCcl8uX0yOtsDDIlEeP7Q= Date: Thu, 13 Jun 2024 14:21:10 -0700 From: Andrew Morton To: Steven Rostedt Cc: Alexey Dobriyan , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-security-module@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCH] linux++: delete some forward declarations Message-Id: <20240613142110.30019a4084d922d63c6d4352@linux-foundation.org> In-Reply-To: <20240613161012.1dd2ff60@rorschach.local.home> References: <5ad5556c-7c32-45b7-89cf-f723c9d7332b@p183> <20240613153402.3b067d4b@rorschach.local.home> <20240613130420.a62ed8965a73b0f8d35890d4@linux-foundation.org> <20240613161012.1dd2ff60@rorschach.local.home> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 13 Jun 2024 16:10:12 -0400 Steven Rostedt wrote: > > And... I'm a bit surprised that forward declarations are allowed in C. > > A billion years ago I used a C compiler which would use 16 bits for > > an enum if the enumted values would fit in 16 bits. And it would use 32 > > bits otherwise. So the enumerated values were *required* for the > > compiler to be able to figure out the sizeof. But it was a billion > > years ago. > > Well, I only looked at the one change in ftrace.h which has a > "struct seq_file;" that is not used anywhere else in the file, so that > one definitely can go. The risk is that something which includes ftrace.h is depending upon the enum declaration.