Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1647082pxy; Mon, 2 Aug 2021 07:02:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPwh/u1/9RjWK0GmiDPbCPYhH3a/lKnT53lb3DwRoZ4NWWqvMqX0qhhwm6Hl7COWxJnWFQ X-Received: by 2002:a92:cb4d:: with SMTP id f13mr1092863ilq.57.1627912933709; Mon, 02 Aug 2021 07:02:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627912933; cv=none; d=google.com; s=arc-20160816; b=VI/6v6R+vqJ67XneqIzXRmckbaypC5I7zt/8HjiY8XHwsXxWLq0HGB51GZKRyxD3zh GMPhx6MGdCqvkgDhWU/088ed0K3iMvzSdFJ8ieOJIq536/NJyXb6B3ns1ehHY8uRs+qj yXz3U5VIhoJypKMYq1odXVDLcRTQ1jQ6TREK3ARQYsMwp5OOvknABD5Eei/HhhTPpTkk P/dmASkiWK1Zsi5tyxB5TkMsSOf9+UQLH0iyqaMfMwdiAhXVdRJVu0lRbFyd68jXC6gv mjc1WYHTqRWSd5imlrmI3WpFy7XZi8URFcheVM08XD7t7TMjfP6tWtGwMqLgPGlP/I24 CUbQ== 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=2cASffnB1DrewByrlLesU5yGY3tq9Ep/9lp4WzrB44o=; b=FR/5/YktVLp44xrWIo3o+wN9Mukj1qu8MpI7C4w5jZ6wnplr9m6hz5MZAZzPeUsZYj o8SO+l6XppGn6mCuGc4rfUUV9EBolfRZZUg3bHc4oowJZSr6/NOSgFi36ZaFuQyqfKKA l6lbbHG4YVanqkU3f92PSjMc1l+zza0Yqmlkda+o5Xc2PStV+zSudvBElokjhUxS14R/ lJ8arEUbKfuvMoNPP3Hi6kjlmVg1BUERITdWKIQ7EC26fkbH2HKSyajspqWJ2heezbvT WqJl0ySluxLKFwxUF3ujZNNN4ws1nEaYEL4iGL6q43hES9acJEoRpVvGqQWHtef65aSz U4dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yxUnBSLv; 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 d21si708969jam.9.2021.08.02.07.02.02; Mon, 02 Aug 2021 07:02:13 -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=yxUnBSLv; 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 S236564AbhHBN7k (ORCPT + 99 others); Mon, 2 Aug 2021 09:59:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:34462 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235687AbhHBNyR (ORCPT ); Mon, 2 Aug 2021 09:54:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7FD5161156; Mon, 2 Aug 2021 13:52:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627912350; bh=c/pHw0x9Yemy1ZTAUjcVb3eJFXNzIGhqFikizEBodWM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yxUnBSLv5i/48gf9NbtUsiiqRdEWIbNXbfzUaZwJYXszxfR7roFGxyNMuVkojz5pE Anyb52fJciYXcC4YV3t0rBI/C72JWtwq7+eRsolIr27Aux/dAdgbT8XrEcZKm28Xs1 XIlCN/jx6xdtFfFFLIJQlhtshWUJJL6oYP98hchY= 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 5.10 02/67] x86/asm: Ensure asm/proto.h can be included stand-alone Date: Mon, 2 Aug 2021 15:44:25 +0200 Message-Id: <20210802134339.103213446@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210802134339.023067817@linuxfoundation.org> References: <20210802134339.023067817@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(+) --- 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);