Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp913708pxb; Sun, 11 Apr 2021 01:19:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzmDwXFsrCLHKh+gdC6yN58SD9+8FbLGD7yIA+WnP1XYoOd9Xw7kJmgV8asg8J0W88AGiX X-Received: by 2002:a17:906:b754:: with SMTP id fx20mr979660ejb.69.1618129150253; Sun, 11 Apr 2021 01:19:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618129150; cv=none; d=google.com; s=arc-20160816; b=eCNXIw7S8RxxMjffc3xjS58n0l3cpycTfgAg/bcnmIPl0RZFFaKMtq2sbl/Sn0I8wI rnj0gOGTGg0FEXzgR/eS3im2biqHx+mg5ZDiaUBnz72WrSEHfAkpmLMCJYfO/UoKl76V 0wmYnJI2Mr8REtZLSmaVujd1+XXp1ezH9hIEgXUBz4HFSQzt0Fol9E08fcT2FLqGyjE3 7Z17bjt3ntJeLhLEd9DiZq0bpCLO9nsB8BKQdGvuel3z1wwzzaEgmmH0uHQ73qEDkzjL EVw2cdDgcLglY+rX5fX8HOS6NdZfLtkmrXZt/ArhQDSJDs4u0bxdQe7k124H5dlDzjuO Re1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:to:subject:from :dkim-signature; bh=LOw5FZRoC7w6OHQ1QuyzfBJo+wQ8QmbkSNLn7c3BRSw=; b=C5Ixnt1LFTN5ZWfj69pnjgtw003ihtSD3D8oEiXCSQPlXoPp+dqZqjhz8EWpUjrn/m Yi/pE1MPUI8+88cxa/t3EJ908ywgKFdk/HHZwz+velAzYD55Jo3FooqppdG1H08ucSJy cRL5SQ8LRSXtkY/HCU6IMuW4YHQbeBMdZBZAvA+2ZQO4NxsLaE2YZjoOpGK1XZbI0OfA N6XYuX7dPP3igqdBHHG1pSyvkwT0Zz0b3edJok+rNA5iVMqpUarTybtoBHRXI5rFIZ3G 8bcd24n1E2SuwAYPdWT4TYWSN3FG2ofUkfu/GIfY/HR0YHeJmOijfL7sBzbXbWYN16MR 9Rug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=BZjxDREu; 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=QUARANTINE dis=NONE) header.from=web.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ci15si5088198ejc.261.2021.04.11.01.18.35; Sun, 11 Apr 2021 01:19:10 -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=@web.de header.s=dbaedf251592 header.b=BZjxDREu; 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=QUARANTINE dis=NONE) header.from=web.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235005AbhDKIMx (ORCPT + 99 others); Sun, 11 Apr 2021 04:12:53 -0400 Received: from mout.web.de ([212.227.17.12]:38547 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229792AbhDKIMw (ORCPT ); Sun, 11 Apr 2021 04:12:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1618128737; bh=4lwNBAgcm4xph5hy1MYndCnDHws8xOophrXb5sD1I8I=; h=X-UI-Sender-Class:From:Subject:To:Date; b=BZjxDREu1cLO1mA9XEfXmC4D+vYe6ExKAwCTSDkZe1q5nZiZEDvAYlnK0bkCJg8cz dXz7QtsgSEskeEjS4joeX2MBKt+ua+zP1/7d+60bCEBR3M2Ry8+bctw2E24m+Zj6Vl a9fC8kbkfvOZfKnlX8RNRDPyj4nLdDQok6FJJqys= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.10.10] ([88.215.87.53]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MNcV4-1lSl7T1o9i-0079sV; Sun, 11 Apr 2021 10:12:17 +0200 From: Jan Kiszka Subject: [PATCH] x86: Ensure asm/proto.h can be included stand-alone To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86 , Linux Kernel Mailing List Message-ID: Date: Sun, 11 Apr 2021 10:12:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:PaiUrPAxWoouTM+NdfA0bLdPLd/AI7R8Vr1ly4hUxAfAbFhAWQw XPQtcSnoXnSrIZ31XQmW8mJzNxRRFdAAoy9IAUbYpH0O0TTETq0qOURV9EA23sD6fEq/EVK YXl4j6FS4b6+NQR5QHhKdIXhhtUsWR9JSidGRjFx4oGwrQN/9Fnp/eZH7qL6bJwbIsVVaeJ 9DiEmGs5GsE/Y297HnTcw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:7lHoLv8baO8=:60wsLi2iM4KceB7fJvS/z6 y8t8kVsPFCUjm1lRxQ/51cxax8XoqWIj2M9RYxXRPO0UVJsLsYc/GfOqL1BP1WOnaDjIdjvyQ RIY8xPEK8ZGY9A/7dxL0XSRilSHk+xETU8xZaAu2sumIqG/MYKSddxW6pERmwDX/WBKHbaL2K JSt+zDrJyU6x5nKJ/RjVUZbiBSvzJPztX3rmznbowudO4oTOFgrWTax2jAN/XxBTBTGEg/Qr9 7iDYdoP6uwr1roeZqAyqsWIRIQoOQwFcJwpo+QQCKhX24zh2PQvLGg1jkA7VznJCqObC1yq8d 858SAWcOfjwqEdFvDQEbcXMaaIaUX0Fxdgoh43caO4l1lxBQZhvR0NDQUXV0jpMsB5cf1ZtEs HYT0eIRo0cA8eMhR5HJQyaWtvvvyflVVUQ/QkK35HFTw0V0lUuQhTmndjKj6Fsem521X9jlPI Z4z0UWF1sMooDCOMcDm8Mx8fY2mnj5EO65wT5zaf3kbRkFd5oNTf6dllEqK+JxN7WbjiU5A10 VibKA3nfQpp77YHmF8XYTK3Jv9aM/5HgeI74GallwBAI2LV+sCetNY7WkVEZx2c1SnK6YPaV3 nk7/NfwywVHm3IaXGTE6+/bTkePcZiylT/QelNjByEy74FsFJW+qqbGrrFktNqff/Nq0yc9la 64DjJPEAcgt0c5/oC3mgX3Ky5H6iTiCysRo7KZUdXeglqHeJQ/oBSWus9KAAcAQwP43dGmdz5 kN/CAALw8E+VH+IwXW4YgVY8CWGeyx0XlymRDazpf9jRa3q4/fcb1h937XgzXx/GXWtTbPnZr XxHjq/WhJtE+4q9GxvcDiyuLxN4+NiaO3hBHSBLuuKRt8VufT/no4RetCwdIKbX8/bnKfoEQH kxWbXnhab6WjGlNHerolkY+wdmaOkpYuAnDxK1QgE58n+1kJ9UirVTA30IIUMwY4LlDS2xX0k zVQHcnndgrsIFBVqAn+c45ACYMjE5oE1JX74d61+uUGy+BZxv1kFTqVyY41PS+hWQXnYfVYhH +A9vaVFgIHmC6zeG7YHdZn4aualnXFUu3X40vgLZxxAfGLPOctivCK8HA78GMxB+Yirok1XKW ahesmEG9rBDvYmjj0/AU6bLfpC7pJBw2VcBGqzs51/f1zeIV6QL+BXddEXTDrQGFp/iyNXpu4 dILh7olRgqYw2JTVLC3EK2BITMupU0j5xxXcs//eOK28BhAtSjtls8M/z9gRa9l0cNA80= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jan Kiszka Avoids ../arch/x86/include/asm/proto.h:14:30: warning: =E2=80=98struct task_struc= t=E2=80=99 declared inside parameter list will not be visible outside of t= his 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: =E2=80=98struct task_struc= t=E2=80=99 declared inside parameter list will not be visible outside of t= his definition or declaration long do_arch_prctl_common(struct task_struct *task, int option, ^~~~~~~~~~~ if linux/sched.h hasn't be included previously. Signed-off-by: Jan Kiszka =2D-- 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 b6a9d51d1d79..8c5d1910a848 100644 =2D-- 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); =2D- 2.26.2