Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp463155imu; Wed, 21 Nov 2018 23:54:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/WjIxKpQkuayAJvncY8SyRE3NNOhjGb7497v+qH9mHmLRacj1fp3LQaDM+x+1gZ7byu4GDf X-Received: by 2002:a63:2946:: with SMTP id p67mr9223321pgp.317.1542873241536; Wed, 21 Nov 2018 23:54:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542873241; cv=none; d=google.com; s=arc-20160816; b=wlWpzk2Cu03G0Ovnma2CUlwKPPFgBZCImZvbMmbtjyoGLSgfGxfMlo7mkrPXe+YaEZ CRtKYSiG7Uv+XGxgKTLhbrYalctvQDyuTNF3eoeFSM8KhCRwiLc5bwCEiqBjslcOyol2 lPNnnk1XDsES1uOz5Sr62xnjnA9WXavjaGCBZL718wsJKP0+MsLyOG9AdS+BqnsgY2zF pZ9jliC0iKDEx+9NOTKn2yrTaoxcO14fNy//EQd8PmnceyCnFVE6EtRkxUWJGeJFJe3q cO7dtdXh3ouC+4oC9Fd5tYOljMj3o/2NqpAKa5xg/R5DWBXnE6pc5Q6/eQv5+UYedVWw d4Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:mail-followup-to:message-id :subject:cc:to:from:date:dkim-signature; bh=/Q1Nw2JyQ8IGjRaYO1NUMfhgC+m1Nleu1LVTWACYgsk=; b=N3wPLIb6wdU4VpWOH40hauMZtyMIKXQ8u/z3CjAnM6C5Qmbk2Zbp5OThI1vNst7i6k Pbm8DpETA60TWkJI4hdXyJavWb3hwYp0V7n11TvA0ExiqiYDw88O3EMjMmpy9CZ8k20u 1D/o0MewccjEiZnBohb3X9ejSD7/DqsGvxiRjPlW6rUAaxuXdeBdwOhxhBdanxTavI7N kwQ97DmIhha2+tbmCrVJd4yTLU9o6yo6uThr6/qq8jgwtR6g1Kxi47ItXAEWD1PjaBEI EGHhw9j1Ni6dftXsxjYP/TjqFMVyDpwZEAVNNkeU9NN3ROMWfRc5lzBZ/KwDVfYDmf4X +utg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=HziUUreT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b137-v6si53024785pfb.144.2018.11.21.23.53.46; Wed, 21 Nov 2018 23:54:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=HziUUreT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733146AbeKVHdQ (ORCPT + 99 others); Thu, 22 Nov 2018 02:33:16 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:54278 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726280AbeKVHdQ (ORCPT ); Thu, 22 Nov 2018 02:33:16 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wALKsaC3007795; Wed, 21 Nov 2018 20:56:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : mime-version : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=/Q1Nw2JyQ8IGjRaYO1NUMfhgC+m1Nleu1LVTWACYgsk=; b=HziUUreTEcjYmID0ODBKvk3CLVeyGQcFYV7ReboYpur3CoO8f2rdZ+DdNDH5alieqdV+ AeN7Yxz11nktoYdj3L6OZLVhNEIa4CLE542YJzoJ935FQ0QICkDxip4o4/dA/3aT58tM 9Efm68aI1Ez21afPbsLyk9x9GUtV87WLm1nXS2+wpkYzHcVwM7y3KTUe6hRGprPg6OSd GGNhTl+1g4J2ugbC+tmNMxigzA/gyMzeXmKfUGd9wTNZH/phYxBAaPMUhP5GX7jnyW9f rEbXfb12fk6dwyLih8YZDnHhstAMpVOAKuyBtW4Ij1j45GCvekeixwR2PQZWNImy0qSR Kw== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2ntadu3qaf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Nov 2018 20:56:39 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id wALKub5Q011301 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Nov 2018 20:56:37 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id wALKuaLC002490; Wed, 21 Nov 2018 20:56:36 GMT Received: from oracle.com (/23.233.26.138) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 21 Nov 2018 12:56:36 -0800 Date: Wed, 21 Nov 2018 15:56:34 -0500 From: "Liam R. Howlett" To: Ard Biesheuvel Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, "Peter Zijlstra (Intel)" , Nadav Amit , linux-kernel@vger.kernel.org Subject: Out of tree module build errors since v4.20-rc1 Message-ID: <20181121205633.oxksehwjg5a2q6rt@oracle.com> Mail-Followup-To: Ard Biesheuvel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, "Peter Zijlstra (Intel)" , Nadav Amit , linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: NeoMutt/20180716 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9084 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=891 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1811210182 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org My out of tree driver build is now reporting issues with the jump table: =2E/include/linux/jump_label.h: In function =E2=80=98jump_entry_code=E2=80= =99: =2E/include/linux/jump_label.h:153:14: error: dereferencing pointer to inco= mplete type =E2=80=98const struct jump_entry=E2=80=99 return entry->code; ^~ =2E/include/linux/jump_label.h: In function =E2=80=98jump_entry_set_init=E2= =80=99: =2E/include/linux/jump_label.h:180:7: error: dereferencing pointer to incom= plete type =E2=80=98struct jump_entry=E2=80=99 entry->key |=3D 2; ^~ =2E/include/linux/jump_label.h: At top level: =2E/include/linux/jump_label.h:212:26: error: array type has incomplete ele= ment type =E2=80=98struct jump_entry=E2=80=99 extern struct jump_entry __start___jump_table[]; ^~~~~~~~~~~~~~~~~~~~ =2E/include/linux/jump_label.h:213:26: error: array type has incomplete ele= ment type =E2=80=98struct jump_entry=E2=80=99 extern struct jump_entry __stop___jump_table[]; ^~~~~~~~~~~~~~~~~~~ This happens in v4.20-rc3 as well, so I bisected between v4.19 to v4.20-rc1 which resulted in the following commit: b34006c4258c9c86597b6b7123d6a9a3513d6cd7 is the first bad commit commit b34006c4258c9c86597b6b7123d6a9a3513d6cd7 Author: Ard Biesheuvel Date: Tue Sep 18 23:51:41 2018 -0700 x86/jump_table: Use relative references Initially I assumed this was my own fault, but my module does not have these issues when using v4.19. Is there anything I should try/change in my module makefile, includes, etc to support this relative reference code? Thank you, Liam