Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp554679ybt; Fri, 26 Jun 2020 06:08:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxGjjtx7Az4Nj2udfTwMpZxcoXWXFkbFuavUqp0NgI+pSl8NHmepdtcjNo5/AmzxtVKlS3 X-Received: by 2002:a05:6402:1ac4:: with SMTP id ba4mr3160688edb.60.1593176935716; Fri, 26 Jun 2020 06:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593176935; cv=none; d=google.com; s=arc-20160816; b=ByjV2xm4tQdYQD22GwTu8VhnKiho+kXfj64Bk7i14PcZwM+TclF+rV81gr8jSi4et4 x8afM0TcwvmbpwQPW7Sbmse3CkO6RmfwFhar8Qog87KKUaG/p4mf+D4nRywmSRcf7yAq UP+TRpRsOVMsXkUUCzs3Wj5MYIRuko4KhIOyZE99Wo2xoD5pCiD0QKvFFWIFTXsIEHT1 Wnyi5x6aW0XMAhcYU4CxkuVuRRGwrewM4bNxDz+JQ3xoM8Pc2NfxngN+dwOiwyb2wYQU vNKtwpf4BXMlzHaycg9Eo7l7am3/WHnk+f2zzQwgc5e0Cy96kZ81JCUBGBDcz4pCqfth q8Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=63QD+kfrpISOWrxeRPWxPbPPlGBfApT+9FqdbNmuja0=; b=prKoKOvgbR82erLPH1F6Q9TBRKthtSVoprQGliNe52rtG+YufQP1Xn9C1O+TsNBrro 3V1HVn7nzjOFNq18Mo51YpjAvcPTk+FRKIGCXAL8eflVkGmfoc5wVQQRq4q2Q40/5b/V nPc6C1I8IBA8PFv+YBgTMGHXcbtvp1s4b9Xq5fmvOmKetQEDfQC2tWMQJfkpDjk1wenl O0l4otz3V2K/n6+xQ0EjRXth05JDTWQDRbvKFsL2KNTblzNh87PGol3ypnQ/4E/rwCwB EDs2ft998hK+5FVdxEaudE/r/IvYJIGEBOho/NLe8eEnj0FY6s6qnPE3LyCetL2ep5aK LMoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m1uqulmq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l12si9960497edq.180.2020.06.26.06.08.32; Fri, 26 Jun 2020 06:08:55 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=m1uqulmq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728536AbgFZNH2 (ORCPT + 99 others); Fri, 26 Jun 2020 09:07:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:58760 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728493AbgFZNHX (ORCPT ); Fri, 26 Jun 2020 09:07:23 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 105DF2080C; Fri, 26 Jun 2020 13:07:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593176842; bh=16hSAoBgkzFDqdIECQ7sxZWZ9kzrW7zU6H3vwJLq6tc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=m1uqulmq0ck9PhOoNMR80zbtNsBuc3vZMydFHgVM30eTcDTQO3CKLyb/jUwyfJJZM 2exOrslcDYFlIGzMLEfeX9UpbMqiw1CrmHw13q9X7FXlbUqbuKyPcf1jM0VAYrDny4 oKfGjmf2Vzxb2fapvoQGZTBOm0R0qqWcjevv7yOY= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1joo4e-006dkn-Jt; Fri, 26 Jun 2020 14:07:20 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 26 Jun 2020 14:07:20 +0100 From: Marc Zyngier To: Oscar Carter , "Rafael J. Wysocki" Cc: Kees Cook , Thomas Gleixner , Jason Cooper , Len Brown , kernel-hardening@lists.openwall.com, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH v5 0/3] drivers/acpi: Remove function callback casts In-Reply-To: <20200530143430.5203-1-oscar.carter@gmx.com> References: <20200530143430.5203-1-oscar.carter@gmx.com> User-Agent: Roundcube Webmail/1.4.5 Message-ID: <07911cc62ef21900c43aeefbcbfc8d9f@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: oscar.carter@gmx.com, rjw@rjwysocki.net, keescook@chromium.org, tglx@linutronix.de, jason@lakedaemon.net, lenb@kernel.org, kernel-hardening@lists.openwall.com, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rafael, On 2020-05-30 15:34, Oscar Carter wrote: > In an effort to enable -Wcast-function-type in the top-level Makefile > to > support Control Flow Integrity builds, there are the need to remove all > the function callback casts in the acpi driver. > > The first patch creates a macro called > ACPI_DECLARE_SUBTABLE_PROBE_ENTRY > to initialize the acpi_probe_entry struct using the probe_subtbl field > instead of the probe_table field to avoid function cast mismatches. > > The second patch modifies the IRQCHIP_ACPI_DECLARE macro to use the new > defined macro ACPI_DECLARE_SUBTABLE_PROBE_ENTRY instead of the macro > ACPI_DECLARE_PROBE_ENTRY. Also, modifies the prototype of the functions > used by the invocation of the IRQCHIP_ACPI_DECLARE macro to match all > the > parameters. > > The third patch removes the function cast in the > ACPI_DECLARE_PROBE_ENTRY > macro to ensure that the functions passed as a last parameter to this > macro > have the right prototype. This macro is used only in another macro > called "TIMER_ACPI_DECLARE". An this is used only in the file: > > drivers/clocksource/arm_arch_timer.c > > In this file, the function used in the last parameter of the > TIMER_ACPI_DECLARE macro already has the right prototype. So there is > no > need to modify its prototype. I'd like to see this into 5.9. Can you please let me know if you are OK with the acpi.h changes? I can queue it via the irqchip tree. Thanks, M. -- Jazz is not dead. It just smells funny...