Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1384250ybm; Sat, 30 May 2020 07:18:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPGNzbwGRWgCL3ewP+mDfUA16+M0RF9PyJCaG8uLYCLWm4WqHurNlSkApZCyZ++vsWixwL X-Received: by 2002:aa7:cd4e:: with SMTP id v14mr13392155edw.297.1590848299465; Sat, 30 May 2020 07:18:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590848299; cv=none; d=google.com; s=arc-20160816; b=FwWwZyaqWW2AllqiXZ5QpAWdTHT5CvzWtA8I91XvjBvmH3Q4mFXMXO2xZF+t5ue2zt jLrusGSrErqrrts6LRmIH0Jgdxsvt6g8sdne0K9c4Z7+CkK693HBYYvSRDiZ4Wa6rBUq pwe9Ua2vjCAjFDUZfS0VwOfQ4YxwOQjXaR/nsiIuAj4KFFp/X8div7NczNkD4lTq33Ri B/+GzFf/4bk7oBUN8HxJugL8o3LsNXwuHpkAozj4da6ofbp/dCay3zRwQP5MaLknzEK/ jOX6u9VgYlCeMxpzS8lP1OYzF9Q5D9Z7P0sl/tLkMEB9zEBMLFN0ft2NVWtnMrlOPMIT TjQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HJtuLRllGHKbkmIY7K2tXYguxUjgJKZqfot+Xjzb/LU=; b=p7WGdOcauX1axfwT1I5aY7gdoN19WTgqaArfAgNYcUo1LKW2VD7sUT54VMLa6inma8 1FZc0KAiEYxH4xSPSx0GBEKBvok2Ipz4x7ocf1lQQqR0fYEQN6dwF7ZLh4JGC9cIY6ju 4DbueTlYejbp5SjoRVtRA3PgejQh/udNHP9xHOo+jCPsXXsmzn9D9PryEl/kXka2FWlz +29CapRdVOEvtllevhDYfVvHQRS9Vcov0MuLIWZhR3WLGZDDjyzFDUcSa8IA7ANLVowF yYHSrmBo8UsxJNP9ElSDb52sQykC3kbkKuPx8S8g9bwKuBOPoEpw74DDuunMVA1mG0KQ 3kIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=hSVTnX4k; 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 jz17si7641924ejb.243.2020.05.30.07.17.55; Sat, 30 May 2020 07:18:19 -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=@gmx.net header.s=badeba3b8450 header.b=hSVTnX4k; 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 S1729125AbgE3ONY (ORCPT + 99 others); Sat, 30 May 2020 10:13:24 -0400 Received: from mout.gmx.net ([212.227.15.19]:55171 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729010AbgE3ONV (ORCPT ); Sat, 30 May 2020 10:13:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1590847980; bh=4aAFMoHtjyY/Q2RFBNxXGgd+DkpDJi7dqREis+/wdI8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=hSVTnX4kBTDTy1eOv2iIoarNQ3WSaVS2CrZdsj8lVZ0jWEbMJwTSv7u72jBzvRSOI RM21oS1cblvRC7TopVKQzkiJ2PBme/O1qKNmcLnYUnpM+rYAjv15xo2TijiCfUkKKl ureeUaNvnGsIr8hASZdZh773MshbiY4k0/84PF2A= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([83.52.229.196]) by mail.gmx.com (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1N1wlv-1izXJl13iz-012EMr; Sat, 30 May 2020 16:13:00 +0200 From: Oscar Carter To: Kees Cook , Thomas Gleixner , Jason Cooper , Marc Zyngier , "Rafael J. Wysocki" , Len Brown Cc: Oscar Carter , kernel-hardening@lists.openwall.com, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH v4 3/3] drivers/acpi: Remove function cast Date: Sat, 30 May 2020 16:12:18 +0200 Message-Id: <20200530141218.4690-4-oscar.carter@gmx.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200530141218.4690-1-oscar.carter@gmx.com> References: <20200530141218.4690-1-oscar.carter@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:oHXe89xpsuoMF9wFHTqM4CUIIcLdbkiC6aMpNXHAGF+bxFJyxhO irBB/KIQQ7139fmvSgWKMK3ZYF3yl02bZYtOfk1vK6O6SQ9dj5fwNJ5yYxAx3YiY31Fn7/F aS2Hmyvs/e/UkL6Z1+k/t9Ht2XZKAjqQdJEGFsGALSGs4ZZOg1dLv0dYfelmKbVxT8t/c5c PLUB4UL6V2MH0UxLF7U1w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:9v+tb5wYTic=:Lz/Llf0nT+R+h7ush2e53D /nPuOCZcUavFFRXew3E0wdbyRXs1knXXvfAdW3QvLd2+g1N7BwO3JibnyjTH59eKlikioGsFv sq/j5WIdBtb8FDhpNUC3JGYWC5/uKbvAQJIfI/vt/tznpPVYjYKjFPG2AfwYx6MKSw/RQ8MNC t/gzUSZVhGFrLrIL7wyBb3iJugwjj5XlT4AYhhvdtFisPdLviWA2gI27emPnqdFP0FBgOtxvh uPwsWYZjk3bFURY/c1SR6qF8T//33g1cAba7gzCOMV9oqxjIR2VRD7QxPH8Q8PfMG60Cl5EHo hUniwBsmo7VFccu5ImAc3q2Dn436pCPZtA/iSEgqtMrQOLdAjyO8VUAW5+daN8EEJ7EJ93UGz atNAmSATR7SQWRMF1YZMd9p5f73zhdo3uYiVd8nlZK3KMBM6Szz0JijzxAOoAItWJVYEoTvO6 9eySx6rGrvzAWcLz64MB1W5C4VVaTKfU4LAeSMAdWri3XU5HbTTriV/514QEURiP5iDLUTQJP GLrYTlo8Seof8LubURa8VuXazhoXi9ZioLPuI56FxDRr44DrI83qGM2+SSVg/zbJMd9UckDJu TVqBPSaarppPVivqNW4DEazMdJa7YzwuFRm/pAV7ZSYDPl6vhQK6IRusfzjnEhPilnWtfN9gY tka1zbUuVDlH+ZgiTlDXjTgOKfWiBPWCPZyNmqFSrpcqJfGfgrTwXnpn8oa3YUF32+xtWoeJH iqMjQkSHCMDL/VAphMyf2fzW7xtQJx/PWvFX70IZu8y14Ac4rr/9dy3t0OxNQohAyYReHe4Lh 15Kw6VVdH3EHcft1sllLYEuJqJ0pRE9jpqYU6qadVsO/RxER65GP12sxWUJ00q22WuGKFv8bl seTSS7dzznHGvjIn+78qkriX+JUETNjFd1QDpMpqjqyW3m1VP7h95SbVCBDkLUxTsB0JaW6x2 ljunxoNZ9of0eV35G7Ehwc5GqtIqUDGmHdIo2q8SJLob5VZ1EgeLuizoeBMD49TKhjPJdea4y qOoYtwuGUjWt53zzNxT9hvB12wvEWpZJ0yX1y7negUfBNOrBs0I/1vLBEw0c2CudxiccrN1VD C8xvX0AMoujHAhSxlqiaV6qDCYet4+/5/RGUhoOBH6fYnRMj7vDM4LXXHTs+WSDKI7QFU5Xls cfTv7qOtJvdjVfgSk90SvYKWeOtZdkTIgmDcY5Ju036K5MdxXQfIBvYMS2vk4dw4ZIxQfHtPR wsHBJqZxNHoe3gfI3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove 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 is an effort to enable -Wcast-function-type in the top-level Makefile to support Control Flow Integrity builds. Suggested-by: Marc Zyngier Signed-off-by: Oscar Carter =2D-- include/linux/acpi.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/acpi.h b/include/linux/acpi.h index cf74e044a570..1cda2d32e4c4 100644 =2D-- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -1143,16 +1143,16 @@ struct acpi_probe_entry { kernel_ulong_t driver_data; }; -#define ACPI_DECLARE_PROBE_ENTRY(table, name, table_id, subtable, valid, = data, fn) \ +#define ACPI_DECLARE_PROBE_ENTRY(table, name, table_id, subtable, \ + valid, data, fn) \ static const struct acpi_probe_entry __acpi_probe_##name \ - __used __section(__##table##_acpi_probe_table) \ - =3D { \ + __used __section(__##table##_acpi_probe_table) =3D { \ .id =3D table_id, \ .type =3D subtable, \ .subtable_valid =3D valid, \ - .probe_table =3D (acpi_tbl_table_handler)fn, \ - .driver_data =3D data, \ - } + .probe_table =3D fn, \ + .driver_data =3D data, \ + } #define ACPI_DECLARE_SUBTABLE_PROBE_ENTRY(table, name, table_id, \ subtable, valid, data, fn) \ =2D- 2.20.1