Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1642133pxy; Mon, 2 Aug 2021 06:55:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyds5wYkBTbXoSMkehuawOdyjIRcUt8uDjfPgpOlD0HBBBiIJs8NyOYphjFLjwQ4Y1LHKbG X-Received: by 2002:a02:2348:: with SMTP id u69mr3998089jau.141.1627912551979; Mon, 02 Aug 2021 06:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627912551; cv=none; d=google.com; s=arc-20160816; b=wMZ8M87SqdeCCzVxZkL0l27XBBDOpuK2PuV9l6MYWJJwn2ZpV+Jj+1JjCnY4ieVaya GRD92XIpW/lkOtgWkMwLm2oBAwENtaKnmIE5cIuTol1PSno/juHk87qsuzVGxnlrn+P/ tVkhggysyMsnHae0IbwsjT6M/Ik/0KQU4c9THo+IGtZM+ZF7sauy/YrZiH2iCnUgKvVc /s3wFKU6sxLoyLw8N4xvkyHZU6nDGAnkUIVZjbQlDSeNsdRGAbuptjUMDqg6XSX+AE0+ o4Ka2p+wMxtzIiQ+HZA3JTs0AbFH2tIrTXaovdkeFF7BkOTZLTKnD8D4mK4WrBkrRu2Y fYQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jbtN/Vohe4OITTy3iBVaqfOP/KG9JojCCZdzZ8UjuuY=; b=apc2C+l/ejMUZg8b3VkirHfdMcIrezgzg5E1+sBiayEo7l5zd/YkmejeDSOaxW13Wr e0gNdkKzgflLWzh1EdOSlj1EpyICxpCkdv+xmpnjqabnJvypVnmkftJDMrYsYf+3i0qy vXgJuumw90nQieEGwklYi4fMGrdVFsth6rpzmj41c+Qyhoqak6sJ3C26vv8b3vSJOtwv +m1lmzPX+D3V2UuhY6QUvdxezkHf5ZHe/dIg8SgVEbPYWvK6dL5lJqbf8nOOkzwB2p2V kt7LxOgvmi2jQI6cd99wHPzGDol5FBcnke519YZ5kovJAMC8aWh55uiE2Uxj70xz0lFC F1cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zIy5tyhe; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g13si14917270iow.65.2021.08.02.06.55.40; Mon, 02 Aug 2021 06:55:51 -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=@linuxfoundation.org header.s=korg header.b=zIy5tyhe; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234472AbhHBNxZ (ORCPT + 99 others); Mon, 2 Aug 2021 09:53:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:58758 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234638AbhHBNsx (ORCPT ); Mon, 2 Aug 2021 09:48:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 65E9E60FA0; Mon, 2 Aug 2021 13:48:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627912123; bh=qz3Qm9UzbMKkj0gqArsNkS5oZ2oF1xpS93lp+bgF/d4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zIy5tyheNfGyMxx75MgSxYjz7plKFlBoWoTehFZLuKnvMFvK4iOzhOJlTuv3f/1mq MQucYP19jBkGlmdPT0oZzHYOqnbbxN/Ic3JmGr8YqhuVT6dgh53/ocEKMYrokYYf+j R0rK0uaV5cqMZwN0DmATZTvi0TCwG+W76UuiKMgQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jan Kiszka , Borislav Petkov , Sasha Levin Subject: [PATCH 4.14 26/38] x86/asm: Ensure asm/proto.h can be included stand-alone Date: Mon, 2 Aug 2021 15:44:48 +0200 Message-Id: <20210802134335.651221435@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210802134334.835358048@linuxfoundation.org> References: <20210802134334.835358048@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jan Kiszka [ Upstream commit f7b21a0e41171d22296b897dac6e4c41d2a3643c ] Fix: ../arch/x86/include/asm/proto.h:14:30: warning: ‘struct task_struct’ declared \ inside parameter list will not be visible outside of this definition or declaration long do_arch_prctl_64(struct task_struct *task, int option, unsigned long arg2); ^~~~~~~~~~~ .../arch/x86/include/asm/proto.h:40:34: warning: ‘struct task_struct’ declared \ inside parameter list will not be visible outside of this definition or declaration long do_arch_prctl_common(struct task_struct *task, int option, ^~~~~~~~~~~ if linux/sched.h hasn't be included previously. This fixes a build error when this header is used outside of the kernel tree. [ bp: Massage commit message. ] Signed-off-by: Jan Kiszka Signed-off-by: Borislav Petkov Link: https://lkml.kernel.org/r/b76b4be3-cf66-f6b2-9a6c-3e7ef54f9845@web.de Signed-off-by: Sasha Levin --- arch/x86/include/asm/proto.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/proto.h b/arch/x86/include/asm/proto.h index 6e81788a30c1..0eaca7a130c9 100644 --- a/arch/x86/include/asm/proto.h +++ b/arch/x86/include/asm/proto.h @@ -4,6 +4,8 @@ #include +struct task_struct; + /* misc architecture specific prototypes */ void syscall_init(void); -- 2.30.2