Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp428207lqs; Thu, 13 Jun 2024 14:28:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJa9L6oMZuPwyHhc4sCuFC0BbxRO+EKyrlymsDLU2KWO1cZ+B+xjsn38rkwoazHTQYm0rf+k5hyTCiEZcOHhoqiUb/p3vY8R58EE3eFA== X-Google-Smtp-Source: AGHT+IHRfR7/R6ilDSTJywkm3oATDEuXFwXRZ+dCS6RDN41GevbXctZHEnb64kfhKANu/M0j3RTQ X-Received: by 2002:a50:d498:0:b0:57a:2f68:fe7b with SMTP id 4fb4d7f45d1cf-57cbd69e8c0mr651424a12.31.1718314128364; Thu, 13 Jun 2024 14:28:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718314128; cv=pass; d=google.com; s=arc-20160816; b=AJLvOlUZF4JQfzFm7RV2C5ix3J5nUZcXkV1ObzzqTP6LyNK1+Ed42XHlansIdjjjVO SR1QfvKjygHRbDL5NB8MB1gcUQDo5U5fr2Usv7hJ39qOvdGa8MGf5oESlbVWF/F0jlz8 Xp5rXTM+mO0isQVGFjSr7RklOWXUVmPERcdxhJcmefR3puh3eB4UQX3qu1Xd2rAjff+L 2oQloli0kykm/okgiAmcHUxfJZaMeHWW4xY96AST0tXzgdfqgmIXEJhS+UWBSbLCvcNJ EjiT4Qcn9beRbI3vMpVjRE92hIx/9AVh7F0XppWKUmyXL9dt5awRtfryrKTIEQat3Li/ LNRw== 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; bh=Bb90th8kXQ2jWVzPthxfPjivb6yfbtDU/yMaCpfj870=; fh=LqlFpG2LTUhK99uQkHPEhX7ym1rMSMkAcVZO2KfrSdk=; b=VmWkiKlx4PCFta94gyiHgpzv2h4NlUoKNDZEA9g2INUXOwCgk9C3iOE3JOwjXMqIkQ ySQB/5tMfEpn8c39jlPVmVnpEFu5Ax8qP8+Q16O5doQXnXEWruWKfDwumM4sR6+NBgTX PiM6vwbi2SGXPCaMOlrwI5gA84kQNEHuvbT9IgUta9LSkGURV3fvCtaMRtBOGncgronw nrwawr5SWCqNM3oABVpHwUwxBphe0iQArW+OZlqCJG5dvFEfBedwOSVTz2BRQIanonzS 2r5BtMydC1uOaV5V41+qgmvp3GMv6pN0frI/jOGdaNllWcim3gHa+laZdbpcEOzRg5+0 BVHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-214029-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214029-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 4fb4d7f45d1cf-57cb7478e34si1068675a12.669.2024.06.13.14.28.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 14:28:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214029-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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-214029-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214029-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 C9C8C1F22E91 for ; Thu, 13 Jun 2024 21:28:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD78F14659E; Thu, 13 Jun 2024 21:28:34 +0000 (UTC) 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 4F0482F50; Thu, 13 Jun 2024 21:28:33 +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=1718314114; cv=none; b=RCsQLDccuYhpgRaxfSXAkG5P23ax1eRJJ8AYinXFnPTFk02eShjY2YjMn0okZJKb8Rbj7eZsw8eX+S9FJ3JHrd5O29gh5owEa84sr548ll9kve5RJ5dyxWAp4nJ8T5mvIw2E2ShNOHt7fgyoMA77ntLY0XFa7A5tgfRxhOFFMJY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718314114; c=relaxed/simple; bh=lQRNKUS+iBpvuTMpf193ejGTFCkscE26dA7f7KxEze8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=r3bzXt8eLDYWVb8jNGY9u71elgHCKBcmj/RUHV+b9xYdQuYKgJBjLz48ea+0OnYgI0lO+GGlqHPYJI7BMxYvK/sFfF5ZYar/ZZeKf8dnXhvQuiBSc5bt+r0aTmDY0LWZIhJNMOZTWWD60A6VJl+45iTTOpnt1bXp8e/mCro0jgk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B108AC2BBFC; Thu, 13 Jun 2024 21:28:32 +0000 (UTC) Date: Thu, 13 Jun 2024 17:28:31 -0400 From: Steven Rostedt To: Andrew Morton 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: <20240613172831.5e7f762f@rorschach.local.home> In-Reply-To: <20240613142110.30019a4084d922d63c6d4352@linux-foundation.org> References: <5ad5556c-7c32-45b7-89cf-f723c9d7332b@p183> <20240613153402.3b067d4b@rorschach.local.home> <20240613130420.a62ed8965a73b0f8d35890d4@linux-foundation.org> <20240613161012.1dd2ff60@rorschach.local.home> <20240613142110.30019a4084d922d63c6d4352@linux-foundation.org> X-Mailer: Claws Mail 3.17.8 (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 14:21:10 -0700 Andrew Morton wrote: > 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. You mean forward struct declaration. And if so, good! it needs to be fixed ;-) -- Steve