Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp531186pxb; Wed, 18 Nov 2020 10:26:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLTLjyCcYSV6KD1Ad9m5TtQkTYr+PFq/Pwo2DDQg1n4h+qnW6nITo+TWG5VRFKIM1vl7d+ X-Received: by 2002:aa7:d54b:: with SMTP id u11mr27960952edr.341.1605723998536; Wed, 18 Nov 2020 10:26:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605723998; cv=none; d=google.com; s=arc-20160816; b=SVBoA0Zu5iO4UM9Q+4UzbH91cxC19b71hyzaSKYGhDaY1J6ftgYo1UmumNEwSqfZfm xYBuDuo1P9gKql817QaS69mepPwKB0+6ziWsGf5bArM9GWn5Cpxpeqxo2JDjXM1fK5Z8 bYeqLtrvgOTFycTFjHGDxCz0j5mLDBLK8J6/tduy0gzrcqcVhLczHwmp4pIxWTHhYj4A SbW9HFDpCUNYFBRneZ8AVem6OGSm8qVgT7hylEcpu7FeKnmn5OszMbyqUZ3w3qverhC9 3TlMDnyE29XRoRVFHAQDLtyBGAHtpfkP1s1Vg9ArhUpsQKKEdlRNNiQlEGJBb2svQywt XoDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=0uUwXa/Wc1tGmRMRHQa+2fVlJqhUNI9fBcCrEtnVuGI=; b=DuwevyqFbqFgjwhrQLCrQsVFOBFcY0dBN2OAyYD5mLtwJnG4/tnYPKJ7YmDnRQeZ12 WRNvjfSrdyWvVCapoKxKhht99Ohf0TStSwp5na9usJSHkwZ+dEvLWDsaAZ2doVe9OyGo ZwAxQDks4a/LeuN8xc/fWjaKSX4JovR0ZzjQWI1BkqPyC7c6weWvKm3G3ExGmum119pA hsrVNhckubqQOvrzSoJ3wgE86JNcZS1TVUu9WEXuo/5U+X4wwRhcw3w71rWpQy0FhUA0 aVpY7r6fsUWAi0mLQQfTsyQRbrDkSwgryeFCG/Rp1yRWzBJH0hb0mVMg+lF9hS+OBG2O 02MA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mb18si4085897ejb.284.2020.11.18.10.26.13; Wed, 18 Nov 2020 10:26:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726668AbgKRSVm (ORCPT + 99 others); Wed, 18 Nov 2020 13:21:42 -0500 Received: from gate.crashing.org ([63.228.1.57]:39032 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726360AbgKRSVm (ORCPT ); Wed, 18 Nov 2020 13:21:42 -0500 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 0AIICTPb015618; Wed, 18 Nov 2020 12:12:29 -0600 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 0AIICQYo015615; Wed, 18 Nov 2020 12:12:26 -0600 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Wed, 18 Nov 2020 12:12:26 -0600 From: Segher Boessenkool To: Steven Rostedt Cc: Nick Desaulniers , Peter Zijlstra , Sami Tolvanen , Mathieu Desnoyers , linux-kernel , Matt Mullins , Ingo Molnar , Alexei Starovoitov , Daniel Borkmann , Dmitry Vyukov , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , John Fastabend , KP Singh , netdev , bpf , Kees Cook , Josh Poimboeuf , linux-toolchains@vger.kernel.org Subject: Re: violating function pointer signature Message-ID: <20201118181226.GK2672@gate.crashing.org> References: <20201116175107.02db396d@gandalf.local.home> <47463878.48157.1605640510560.JavaMail.zimbra@efficios.com> <20201117142145.43194f1a@gandalf.local.home> <375636043.48251.1605642440621.JavaMail.zimbra@efficios.com> <20201117153451.3015c5c9@gandalf.local.home> <20201118132136.GJ3121378@hirez.programming.kicks-ass.net> <20201118121730.12ee645b@gandalf.local.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201118121730.12ee645b@gandalf.local.home> User-Agent: Mutt/1.4.2.3i Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 18, 2020 at 12:17:30PM -0500, Steven Rostedt wrote: > I could change the stub from (void) to () if that would be better. Don't? In a function definition they mean exactly the same thing (and the kernel uses (void) everywhere else, which many people find clearer). In a function declaration that is not part of a definition it means no information about the arguments is specified, a quite different thing. This is an obsolescent feature, too. Many many years from now it could perhaps mean the same as (void), just like in C++, but not yet. Segher