Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2773092imj; Mon, 11 Feb 2019 08:14:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IaSolUn8v+jPbIRM3BNxKQ1lsm+7bT6ywcmGbJ9CnhGMf93+OvOo3GFIUyTY1KXcGlCxy6J X-Received: by 2002:a17:902:9b87:: with SMTP id y7mr38404473plp.336.1549901690546; Mon, 11 Feb 2019 08:14:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549901690; cv=none; d=google.com; s=arc-20160816; b=p3gadgm7BrWtuuRNJ7uM8jsmmj1aOCHPf7S8Tp4ZTWOUjovvQmMaLgfiiJoeVrH1t4 xp+vdsClWvGqUXwTqfysBlx6p7I+KdHGemi5MAWmqFzUw4SqzkEOjlpl/1baox9dXXUd m7OWhjG+I8+NMJTY04pK9caWnys4Ni/PmLcynmy7F8uw8i2QC9V8NWPZ09tuG5LNaOHe r3DeU0TtJ4vO/eF2Z3rB3qdHctG7b8y4n9MKDgmq86/7Dg1QXC4sVaZ1YEkAVji7sjIM 9H/dqV7G/EJq/VM+/HlYwZf+5VVMUIztJ94GnjrzUIStXLD/ddmgUDnxSF7vhqVeK3t5 +Spg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=CfRQ5MGO5bpj/OCXJhGh+ohswwbI92bGuZ8a82WAO9U=; b=fZ2Y27Nmj5d2SUTyo2mH87jBK7YP9+XfwzLnRgqbnTwAXyk+0GSHwFqPIi0QrDSEDa oS3AVfn+mtaJLDWcT8wsiD8FZimqXBNl92OcpAE7eWb8iIkFbpSQSo7IVcdqQcdQqNmt Ube7Uh3xwAjEC5jadQo7sVbZPZ/pywai3z9uYt/8OYWlRzonN7vUuNfXjQaWWoYKtCY7 zR43ZHHlUbhHRsf12xm5DtyOTzNIL7DDOEWyokB5a388ZE0CFxovjVfWJ+y6HKzByMeW v3LinnsNHqsjjpalYdhQimE0Yz0r0U0Smwt6/Tu1OaLaUA3kSKCxr2fZO5+JD8DsYmGE X50Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=n4YwEpJb; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8si807791ple.5.2019.02.11.08.14.33; Mon, 11 Feb 2019 08:14:50 -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=@kernel.org header.s=default header.b=n4YwEpJb; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728059AbfBKQNm (ORCPT + 99 others); Mon, 11 Feb 2019 11:13:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:55420 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727281AbfBKOWb (ORCPT ); Mon, 11 Feb 2019 09:22:31 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1387B20838; Mon, 11 Feb 2019 14:22:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549894950; bh=HnFYtb7rQTMQynA6sbZpIPnE/absW+DS/AKSlp9XsSc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n4YwEpJbKYshqfMijCwtkW1ogd7RGFXJXYjH0M5Fp8XbKP8+jC2zFjyS66m6FVFJY rSbpPdtOjsS781foruQhGDQEWmY0g3ocYGrJaAMWQ7n5y+hSu0nEG1FqpanfBxJA6N ziNxiCZQOK3WdUaFo/4fc0m9XIDH7AbctnS4KUW0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Arnd Bergmann , Hans de Goede , Sasha Levin Subject: [PATCH 4.20 040/352] vbox: fix link error with gcc -Og Date: Mon, 11 Feb 2019 15:14:27 +0100 Message-Id: <20190211141848.867173878@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit b8ae30a7020d61e0504529adf45abb08fa5c59f5 ] With the new CONFIG_CC_OPTIMIZE_FOR_DEBUGGING option, we get a link error in the vboxguest driver, when that fails to optimize out the call to the compat handler: drivers/virt/vboxguest/vboxguest_core.o: In function `vbg_ioctl_hgcm_call': vboxguest_core.c:(.text+0x1f6e): undefined reference to `vbg_hgcm_call32' Another compile-time check documents better what we want and avoids the error. Acked-by: Randy Dunlap Tested-by: Randy Dunlap Signed-off-by: Arnd Bergmann Reviewed-by: Hans de Goede Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/virt/vboxguest/vboxguest_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virt/vboxguest/vboxguest_core.c b/drivers/virt/vboxguest/vboxguest_core.c index 3093655c7b92..1475ed5ffcde 100644 --- a/drivers/virt/vboxguest/vboxguest_core.c +++ b/drivers/virt/vboxguest/vboxguest_core.c @@ -1312,7 +1312,7 @@ static int vbg_ioctl_hgcm_call(struct vbg_dev *gdev, return -EINVAL; } - if (f32bit) + if (IS_ENABLED(CONFIG_COMPAT) && f32bit) ret = vbg_hgcm_call32(gdev, client_id, call->function, call->timeout_ms, VBG_IOCTL_HGCM_CALL_PARMS32(call), -- 2.19.1