Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp563465ybt; Fri, 26 Jun 2020 06:19:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzstptTdhcWm5UTFcqkOrscMXQunXN/roEDxrL+zTA3VqeV3ayVIwRibEveZXoAxpQ5dD6a X-Received: by 2002:a17:906:a0c8:: with SMTP id bh8mr1582412ejb.190.1593177598722; Fri, 26 Jun 2020 06:19:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593177598; cv=none; d=google.com; s=arc-20160816; b=GAdA7xTkDyObjEfaijBAj+S+Xc30fF81aYMR/1ioMmZ0JVpPyRiAIk6/PczsnHgIaQ 0iSNbQCJ369GsZr7Y1WJP4W/5lcPShMKuWrft7tHA9ZqPhHUE2o4s50I8HapqMQNhJUa eynqSAm6wiBkHw1nKv0OptaSArhQcQXKEozIg5IHe/5MlfiV2JYrpsrJR8jBM1txuONx UnVbshvTd7CvPCwxsPvQk3YplNyVatZ5mMWXLNbimL0HLjWhVyDyubMbb3N1iH5NCMAN Mr1LKGRrJuoB/afsyLwW0wNSb/cxnzcC0zN157exPpFFPOHpXgwF28UWAJy5/kandYeu xbXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=TEpxwyqxU/CXnVQNUqgC4JtnG+1gAIg8SLvP9r7YDQs=; b=lybRlDQoz7IrdiJ5lHQncqPwRFaRReQIDnfCghbI7cuHwYiKq7dXd9PXzuuz7MDgsX fFGY7m+gnv9A5T98Jmq+H5aVEqSehGxoBCwYtqAhNOxv9PUWHdrXXn3DUDkTxVjTxQuE S4VmgrtzCSIHXG2zgEqqDesLYxGTpNwlPeDhREo4CWkdrusqTWsB8KantCzdsBX15pLD MbaZshncv43YNfUD8wTF5GRkUIwAegFtUygnGQY8esEVynHXs6Kp60ODUz+Q1VtCbv/D GOP5NFRYq6/htALZXzp/hksNsts+deBAbH4yKLjHdqNkEcWMtlyYM/AcF2Q8Udfr5uXN +qhg== 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; 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 ch16si6832839ejb.608.2020.06.26.06.19.34; Fri, 26 Jun 2020 06:19:58 -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; 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 S1726963AbgFZNRV (ORCPT + 99 others); Fri, 26 Jun 2020 09:17:21 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:46707 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbgFZNRU (ORCPT ); Fri, 26 Jun 2020 09:17:20 -0400 Received: by mail-ot1-f68.google.com with SMTP id n24so6317125otr.13; Fri, 26 Jun 2020 06:17:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TEpxwyqxU/CXnVQNUqgC4JtnG+1gAIg8SLvP9r7YDQs=; b=HKmaPajkrDo5tPSSTGjN7fAIkTCVnt5zPTmWWJ+ermiHCZS39jkBMy+Wq41x8/BvVF Gtq2apva5IncZzozTpoD+tUq3nacjHdb0rOHgMOw5oM72eZ1zCTzbWCh5zGLiJKqGfhh jdflkCrk9JxzA/8gFcTmXjcCfosL7iS889UuL7zcrcrJbyJkf3g8gJMuPKEVXor+O+i+ seg21xp9mstWxGRFoqgHbT1WSbBAA/8UjCKuQumocyl2wY04v9WC8kWLcMaz7bCKvJYP DKiLODz3jcl3QvEWlYNwM9cpSsB+e/K4UZT8ANqIiulHMU8iW7bR8h54aqDQnJeRzAi9 zuhA== X-Gm-Message-State: AOAM532Zfp/GMeLSl1MY7VXMzeNCzR9qswgT3kUFK4GtiNDYXBsY0SRe 9Y1BmSiDPDeb2NiJ8P+QxNQGizuwrZ8pEU9dIGDBDg== X-Received: by 2002:a05:6830:10ca:: with SMTP id z10mr2243614oto.167.1593177439501; Fri, 26 Jun 2020 06:17:19 -0700 (PDT) MIME-Version: 1.0 References: <20200530143430.5203-1-oscar.carter@gmx.com> <07911cc62ef21900c43aeefbcbfc8d9f@kernel.org> In-Reply-To: <07911cc62ef21900c43aeefbcbfc8d9f@kernel.org> From: "Rafael J. Wysocki" Date: Fri, 26 Jun 2020 15:17:08 +0200 Message-ID: Subject: Re: [PATCH v5 0/3] drivers/acpi: Remove function callback casts To: Marc Zyngier Cc: Oscar Carter , "Rafael J. Wysocki" , Kees Cook , Thomas Gleixner , Jason Cooper , Len Brown , Kernel Hardening , Linux Kernel Mailing List , ACPI Devel Maling List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Jun 26, 2020 at 3:07 PM Marc Zyngier wrote: > > 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? Yes, I am. > I can queue it via the irqchip tree. Please do! Also please feel free to add Acked-by: Rafael J. Wysocki to the patches. Thanks!