Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp508009imu; Thu, 22 Nov 2018 00:47:27 -0800 (PST) X-Google-Smtp-Source: AJdET5eMd9BpSYXDj2+fePSRlOHiF/+sfhIN1QCr4M+j0UM+dur3i7o+vyjwnw8Bsn8MorPhsHLF X-Received: by 2002:a62:114c:: with SMTP id z73-v6mr10327355pfi.192.1542876447736; Thu, 22 Nov 2018 00:47:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542876447; cv=none; d=google.com; s=arc-20160816; b=RGEvkRVOqOrg/+1RKZAh4AkT4vzvoOVHNTO0jfQmz/DRyEYYlmoBmg4RWOLWz43yDu 5kBRyNJ9iE7pJPh6DzRpddjHaP7k0pA1kRMGhl7g7PGE9wkDvKCz/T+i2xEdDM11dm6d h3yDipZ0egTnWU/qY/jvM08rtF0hr3ODFEQQ8tcrdkaFGspunkNB2E8SVmjZ7JlFnV/b NfGJdWOYCnJRQsFVIrfpSrZo3aSCV/0c1ODck6xbHKEfdOyGfdprj1DjTKFLMIMU9wOC wc4BQL9LndvttmC6Trrcr+6Rz9iMaSIIxI3Y5p8D+5LBPiZyIwTADOPN6UWNNmX+uy3m 7HOw== 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:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=zvQfOE74+PILfenmuxRflVw0EMeCHeMf/eXJisDTHgs=; b=t7sjGT3nl2cK/8nZ1lSSuKK4OljUA23GfxS3rpy42XDhfS+LdQlxJ9s++5pDwuKxuX AmUVnmCfqx4h4MtC6W3zwz8dtFNavKKD0oS7AkYso8Ozh+G6UkzmGmyn5qbXY1VGEMpd t6ramwrfXd+Qw0if5aY+/NgwlghtDT2iy0rwL+BHhrsLPdJ86bzhUvL/bzIw2HwhDzGp Y93Xvdl/GA0gPo3w3iorVN+DVPy80Ia74jE149qZ6MDsHzRpcXA2gw+eqTIkfwUDlpZt ePqtuzp2Fib/a5NpeIJfjs8DX1hgR+bh7suz//yYXKTKv2yjE1MKTaP7Te3Vz3rM0g/e yPqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="UZIs/Dwy"; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si36157589ply.74.2018.11.22.00.47.13; Thu, 22 Nov 2018 00:47:27 -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=@linaro.org header.s=google header.b="UZIs/Dwy"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389898AbeKVIUg (ORCPT + 99 others); Thu, 22 Nov 2018 03:20:36 -0500 Received: from mail-io1-f45.google.com ([209.85.166.45]:45765 "EHLO mail-io1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729727AbeKVIUg (ORCPT ); Thu, 22 Nov 2018 03:20:36 -0500 Received: by mail-io1-f45.google.com with SMTP id w7so5151522iom.12 for ; Wed, 21 Nov 2018 13:44:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=zvQfOE74+PILfenmuxRflVw0EMeCHeMf/eXJisDTHgs=; b=UZIs/Dwy/GlvrrwJXzHXUb7yVHghrabcwxJZrc/48CCwGQlmMKu9K/1J2HMXDTWsUH lz+8XYn1T+loJGDEMpKFgywEwvGWyqmbjMOPb7qAcStM7vOzbIXWCloECCMQ0g3b7MMs zE1CTy/7wQK7QpSxwgJphIewEicHhDwRlI0L4= 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:content-transfer-encoding; bh=zvQfOE74+PILfenmuxRflVw0EMeCHeMf/eXJisDTHgs=; b=WVn1nEbhehnpnBW53KEFV2r4dnT0xde8/Ya9wh9eR/n8x4dVp9eXds8fjqmEl83Bou gkI6jpw1qClTt89JDTql6T3x47/43ewSfugRXRNOwq8LjgL63owhC5QTncEdgk1ZU5sw mYQ37PbYKAoHNzOIZl0M+IN6uab9/MOdzlQbYSb357feWRUGGVS6WQ35qlDGex2VuKhr e80oh6bkt6wQOQFT9r8LYwaHxTkc9YR4U0PCbd3z811VwWdf06ouTMclUeCHbPOju3X8 Xlbiz+Al+ZjLGVhe7C3qrBBssYHi4ATSxlNG17hCUF7VRzswhPOyhbdKtL1utSAvWMJ8 PnBQ== X-Gm-Message-State: AA+aEWY2ccYYWENLc4DnGitUPWYieeQryHXzao0iqfXcygNytO0VUKUw lBenxXCkDtWqhUR92M4uP25TJsP4iiYx35CdKfHXEg== X-Received: by 2002:a6b:5d01:: with SMTP id r1mr5927472iob.170.1542836667412; Wed, 21 Nov 2018 13:44:27 -0800 (PST) MIME-Version: 1.0 References: <20181121205633.oxksehwjg5a2q6rt@oracle.com> <5A24CA1A-3059-44BE-A0D5-4E29FC6E5BE9@vmware.com> <20181121211447.weqjjk2fwbc27er6@oracle.com> In-Reply-To: <20181121211447.weqjjk2fwbc27er6@oracle.com> From: Ard Biesheuvel Date: Wed, 21 Nov 2018 22:44:16 +0100 Message-ID: Subject: Re: Out of tree module build errors since v4.20-rc1 To: namit@vmware.com, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "the arch/x86 maintainers" , Peter Zijlstra , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Nov 2018 at 22:15, Liam R. Howlett wro= te: > > * Nadav Amit [181121 16:12]: > > > On Nov 21, 2018, at 12:56 PM, Liam R. Howlett wrote: > > > > > > > > > My out of tree driver build is now reporting issues with the jump tab= le: > > > > > > ./include/linux/jump_label.h: In function =E2=80=98jump_entry_code=E2= =80=99: > > > ./include/linux/jump_label.h:153:14: error: dereferencing pointer to = incomplete type =E2=80=98const struct jump_entry=E2=80=99 > > > return entry->code; > > > ^~ > > > ./include/linux/jump_label.h: In function =E2=80=98jump_entry_set_ini= t=E2=80=99: > > > ./include/linux/jump_label.h:180:7: error: dereferencing pointer to i= ncomplete type =E2=80=98struct jump_entry=E2=80=99 > > > entry->key |=3D 2; > > > ^~ > > > ./include/linux/jump_label.h: At top level: > > > ./include/linux/jump_label.h:212:26: error: array type has incomplete= element type =E2=80=98struct jump_entry=E2=80=99 > > > extern struct jump_entry __start___jump_table[]; > > > ^~~~~~~~~~~~~~~~~~~~ > > > ./include/linux/jump_label.h:213:26: error: array type has incomplete= element 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 hav= e > > > 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? > > > > Do you see HAVE_ARCH_JUMP_LABEL_RELATIVE set in your kernel config? > > > > Yes: > $ grep HAVE_ARCH_JUMP_LABEL_RELATIVE .config > CONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE=3Dy > > > I should have mentioned I ran 'make defoldconfig' between each bisect. That is puzzling. linux/jump_label.h defines a type struct jump_label_entry if CONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE is #define'd, and so the error suggests that it is not. Can you share the command line (with V=3D1) and the preprocessed result? (Re-execute the failing GCC command but replace -c with -E)