Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1642898pxy; Mon, 2 Aug 2021 06:57:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtrpBWAmc7Pb8IQHVLviItWWo8Yn7jTr4n2NmoOb7HvYnCnByuuTr+TPFN/geGq/gobTta X-Received: by 2002:a02:c769:: with SMTP id k9mr6253480jao.68.1627912622780; Mon, 02 Aug 2021 06:57:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627912622; cv=none; d=google.com; s=arc-20160816; b=uER1OWHZUGbBt+3YJfXTZnO36xClLmEF+MVrfqi998oikuXzUGR0spq0H7olJZESpF xD1vCDcRnccXenND4z8j+fjICCVamK/AoDC9onniXTJ/gkKAr2zfz2EIicXDP8SPMqij a6T4QTjp3/YQ0BkYYDVnlzg/5EOBZUdxvAy9zBw3bu5xdSLUWS9jGD4JI2DR20cEHWFm 2/Tyrv4m+gwNGnhw0OPUge1pikKTGcM2t0T15rWK74rPUrimAwWUK2yDr9DxXcEPgl9W ELV67K5neUZjbfzwKc0SblMQu0SSpSMEXjU9wvJiNt0QAINFWbXYKGleL8Lw+EeGRImM cnbg== 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=GxNCea4iEd6CU4I7LU0SjpIWaXhqG36SjUb2EEezd0Ltf1+4k3CWImWHo+kaHsOZal zhKsk8DLNAhLiZY7Ye71ZJe0BnObV1+vpT8Sk1eXCPHQrGHQhsfHGkmfXn3A4MSIGkij jDGGHmQJPuTZnQq5MhK5tnEFvch8aQJrzeUAMZ1hELbBDwfJlzR9u69PygO5GvkHoALh gM9agOfSVw+PpfGKS3qfEcTwn/dGMdpWtittNWMwKddVqlXcIIhIXWHL0gvPtWXIwNbA GHbuXGFa6SLyxZe4/tzxPcd8KlVgvw+VgMVDUGEGkcJGAXBR1gheFx2r/xhBYLr6yvbJ 8mfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bB0BYcdC; 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 d4si12860519iow.1.2021.08.02.06.56.51; Mon, 02 Aug 2021 06:57:02 -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=bB0BYcdC; 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 S235805AbhHBNy1 (ORCPT + 99 others); Mon, 2 Aug 2021 09:54:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:33012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234429AbhHBNtn (ORCPT ); Mon, 2 Aug 2021 09:49:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8062B61057; Mon, 2 Aug 2021 13:49:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627912174; bh=qz3Qm9UzbMKkj0gqArsNkS5oZ2oF1xpS93lp+bgF/d4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bB0BYcdCDTuC0YWVjcVEWAm/KlTsV3euZDxvCvtm1tbv++ow8UGS6P579/ke7k3Zc uAqLphm/S2HzWA8I76AWO3llN7zyeAebyTns7fM5X6M36x66N9Kfhpp0hmPZtl2w0C YkTyqtRWifoRkr3NtdSyglBKRZJqfFy9gjOEVZQ8= 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.19 03/30] x86/asm: Ensure asm/proto.h can be included stand-alone Date: Mon, 2 Aug 2021 15:44:41 +0200 Message-Id: <20210802134334.192143820@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210802134334.081433902@linuxfoundation.org> References: <20210802134334.081433902@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