Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1639796pxy; Mon, 2 Aug 2021 06:52:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzywSZA8hk0Nyts5exc1QsXsXqpx/gFEdp75lXVG1wXtLdU7nxpu+DkXmWXRzcoV5QB+eIe X-Received: by 2002:a05:6e02:e44:: with SMTP id l4mr1772896ilk.58.1627912327103; Mon, 02 Aug 2021 06:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627912327; cv=none; d=google.com; s=arc-20160816; b=WuO1ag+1+6Q+xlUC912m00ALvc3FFYNAY+PohG6WqbQWu8PYBHh/It2rgPN8kViX/E 2BtJlMZujIH8qg8EcIYb7qr34VNXMnVa+LIgaYjiY5CZ71Dv0Wj+3X1hFGi3edc7KHNO yBOlFg8lG7o4S7wBDQvvdNzsjl4cF9D5721LcxQgGUZZ8Rlu03MEOZVrgoTyq3xgOFmS ZHyXANbaw0y78fDsSP2j6sWO2/uvwcdXvAn+lexNC52LdyQNBHBSzMM9DOlTOuvKf2da 1Xv9QJiiCY04TuP1fNzvvh1bTvIOTsnTck2n4mQEPho19wCHY8nI/DS/CNlwABbl++Tj tFMg== 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=5noHtB2WX5uESiHAH6dUJDJ0WuOYXQe0dgjYiptZKXk=; b=khwbJWYQY8U9lS/LbavEADmnvVFSJvAGeS+uTWN4Vq8+5GsscANgOBNISJpaetGWKn Eqs24DOkoVqgA5/qMCX0rgckBT9uKT/JiOe/hjz1nrrJB6pGa4d9Ys9+Q2EsyBpVt+0A aWGuLoWqPTmxKk7KsdIQ1kArkSAn78GSclR4jcDNSFGrMbCxqLspQf9xK+YxM+oFgpWr qqoZAFdX7C+zUv43/bvx/CNS0FiAfypjXnq1sJNHziwUeK7rsQGtIQeWbFXEAtTd5VGn VYpiGApxogXwiunDcazQtix4EWbCwarqTH8BbGihhnQq2tC6DOERgCy5Rfrqt8kZlC4k KRMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UZYzgDla; 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 u5si14446700jad.124.2021.08.02.06.51.56; Mon, 02 Aug 2021 06:52:07 -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=UZYzgDla; 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 S234773AbhHBNuG (ORCPT + 99 others); Mon, 2 Aug 2021 09:50:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:57562 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234382AbhHBNrf (ORCPT ); Mon, 2 Aug 2021 09:47:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2986C61057; Mon, 2 Aug 2021 13:47:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627912043; bh=jzM+QoskfiuOC1Wa/5lR/PfGdgLLBKJG/zrNeMhZ424=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UZYzgDlamAk4mlDGEanJWhXIL3kYM/6DcfxXMjd5CzcwPyOhNdqsgozmljrAi4O/M oqCE/gzqpXAHFV2pidxMMxaszLff9eEj0x1SlB1IVdvxUNYAiPPv//9E/2zFHSbhXZ VsIST9NO5VCBFF998l4kEXqQEX0CsHwmw8EXwaME= 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.9 23/32] x86/asm: Ensure asm/proto.h can be included stand-alone Date: Mon, 2 Aug 2021 15:44:43 +0200 Message-Id: <20210802134333.656677971@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210802134332.931915241@linuxfoundation.org> References: <20210802134332.931915241@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 9b9b30b19441..36a7a3f11839 100644 --- a/arch/x86/include/asm/proto.h +++ b/arch/x86/include/asm/proto.h @@ -3,6 +3,8 @@ #include +struct task_struct; + /* misc architecture specific prototypes */ void syscall_init(void); -- 2.30.2