Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1395997ybm; Sat, 30 May 2020 07:38:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnY4O95U70r5mrqA4t5sPheR97Tt4mIY9OZvHo3YD4FeQKVnDNO5eZ/1KATU9zSmNQSqGZ X-Received: by 2002:aa7:d0cc:: with SMTP id u12mr13534478edo.385.1590849512257; Sat, 30 May 2020 07:38:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590849512; cv=none; d=google.com; s=arc-20160816; b=jYPnFH7uRMq6ZdY7Vw2VVaVefFbdbg3AlysSJfMKLpjDtEXSK675fpTCDN5Kg9N6AU H7KbME55eoJasvdy63tRWwW4TgGnka4K5BEECB3AjyuUtcj6eEO5Vm6ECIH26vIxkAS8 ozrOdhv8981182NzbezCE6lrOI+cj0/FxITgvPcJMW/2Wa/CJcvh+RmLWLCQTw97p8gU S8w8hSENuJmFJuLyqLIr4d0kQppNO5yw82RHyrnPC17MVDj6RwM83jQhP8BXRFzkKWsv 6Xz63T9ZCj9tedUL7vj1m27JSr2zNwbIF7FAfgUrX8VzlcX+gUFqwPnDNgYt8IQZC18/ QxEg== 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=DTB4mvECGOGKrhhNL8rHZDvd41mUyzVzOeKxZNMUJySXUVyLmg5tU4P6QJ+pgspxUv G5yvBZo5Btx7We0NAEfiLKlrfNQsg9sv6EwrVQkMy24JVIWXr3Uc//KEbFmwOjUDVAKp hlNqOkPmuzR08B3K8P5S1qcwe/h8GjuLBR0/Rb57s6vAvwfIOBOO9AZWLUpAYCHXYPWe F4umF2CjLDWFLW5YlS8LkinCjHMct5GphLwCDGJw0yeUm5DbMufSa0/LPRRJHcMHMP8S TDleUwM8nOtII8xuWXkzVeuEEAYlHht/enTfJO3RmM82Ds5x6yUWxGXsDHTYkNxH+DuL r3uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b="B1TeUi/l"; 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 i18si7722923ejx.488.2020.05.30.07.38.09; Sat, 30 May 2020 07:38:32 -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="B1TeUi/l"; 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 S1729140AbgE3Ofg (ORCPT + 99 others); Sat, 30 May 2020 10:35:36 -0400 Received: from mout.gmx.net ([212.227.15.15]:49095 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729110AbgE3Ofe (ORCPT ); Sat, 30 May 2020 10:35:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1590849313; bh=4aAFMoHtjyY/Q2RFBNxXGgd+DkpDJi7dqREis+/wdI8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=B1TeUi/lsLdF61Cx4hYcW/cBgnibwLwuRW8TIyY20DvfuYMbFI6azop1w/Ka/HlJF k2N8TjmeSS5vrZw4NSVNs0SynWkcLuD61v0+QykvYZGmrUgZQjsP2Z+9u+dfL7PMiX H0fehQpsOV/7diTaCdHRhK1cn0baJaNWjT+Dw6Eg= 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 1MYNNo-1jRCgU41dS-00VM9n; Sat, 30 May 2020 16:35:13 +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 v5 3/3] drivers/acpi: Remove function cast Date: Sat, 30 May 2020 16:34:30 +0200 Message-Id: <20200530143430.5203-4-oscar.carter@gmx.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200530143430.5203-1-oscar.carter@gmx.com> References: <20200530143430.5203-1-oscar.carter@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:6xz29xMs/Yu3U3voBqqhgHSTkGGG3eO26WFOTSFpn94tiVLeGJo 9391DE3bF2rffmKL18wn9fc38q5tJZH0OtbCSJxW8rmTKheUcxGryjalUl/fmFZoPj+OCZe VvXOSEEgqGz1atkIVti7YuAEk81ztpUmLk9cf+fQL5egT0wtwK/CJBZ6f6qMbVj3dLnrRjB kgGlilYUsi9urRIlzNeZQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:zV+G32aoxGg=:XgX1t82pM5W358TasTUFSl P1ufaS8tXtJB/PLAhx/HMX3E2OwF+a1JLTqdQqUA5sSOjbQslkhJHA/GPDKJik5AnbALZvtZ2 PnatCLxSb5ZwGV7BTffjwemF4+/DAgKX4zBYyox9g8imMjb20rf7oIlx6MBssll37eqyjow9L f4zKpV1P0y8M18LFNztKOa2xKD4dp8BDBY+60ef6j0Gp0hYSfQ8rnUxucASIhI5OjH/O20AZW Cs1EcaekREKR8r1fRdH80ulEMBC3dbgcbUyTxt8PNSKR3Df+lnEMfxyYhUJ+4UxqpYZ/cxeqG bdeqkhifrCN37XP2g82lqB6A6LuhFW/QrInesYcghu6bofP3wkQxGzP1kagUVs7mYkncoKxOo 7xmDgjwhRmvGhEAyTmScZSUqC7P+VmlxxmRgj6BHB8PpIGB58c4ECvUWfCxaYqxA4SRWdhruw EzfJ9PgOgk0J+U3gYkOmov4OsLmkoMJrxeQwnczi03pob4mDW0XNDfHRQAl3LEUBwboUFY1IH pPMqtOPEqpLx7oOeQFWVnm1Zjj/fnuVBVhszxsygelVin1mDU24YNZqWvejQSUF5VGous1QB+ YwrURVb2g85wWXjKXTyRbTHynZuLU6/GxuVY+0AV8vdo2HbmniNOc515qzsdCghBS4hnS20dQ g1iTJlt2Z1H4A+DRSN0SaEESmFqlzBnCJQdvHAOIlVjqJinKKRwpr7BgwCu7exoPFLDCv84h/ CFAahkFWCGofKjikMnAaMJi5cu3Ss7Xc0peNWzzUPPHpoDDhUbrnQ4oBB6bBoVky0fAi4tjYR T+j2jEjFEV+H9dL7z/cLg1nTTel3TzguzcLCD0zs9MtguCjEymLsUj4g1vT+Hw1ukORnGy6Vz bkHBtZ/bJEg7kmDzck0B4TzEZ4kRVPdU14WuyMmjVTqLB1kHZNazJVf6RD0nyisLdDNzsJ79i dJ8B2Iw2EBT5u0Lyg94nfI4FmZpnbuYE0fcPGFEoKlrSddCrz9gBgq22iV6M08Yta1S8f+Xee qx+Fi1N+kQlK4WFtF4RpJbEEH2kSTox9zT7pIFOGtOpM9h0AG9kU+neVHupNUhAOccdTIqrzi LwErGzOsxjL5zfA7dzVidm8TCtUwmtKV7w9T30/yKgDjvADpq0y7SWxd3jUC/tCXl0gtiu6JF jGY4TAS8EcYhp7rlKHTKZsjqXHxSFTFm/ggYn1hDtNy6XmeMhD70WZoGxbc+FGIOoaGoc52kz yDcHrSEHvk7L1KtDG 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