Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1643827pxy; Mon, 2 Aug 2021 06:58:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrRPQTtxbIF7sc6/hQONsaYuQnrPTUqAVpCFXYIEvZjQWSw+Os9CF2yGaPqtG3gAJpsQm0 X-Received: by 2002:a05:6638:3a12:: with SMTP id j18mr15288944jaj.75.1627912715218; Mon, 02 Aug 2021 06:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627912715; cv=none; d=google.com; s=arc-20160816; b=d+DdxhjMSf6D2CXbjurRosHmOevlTaUi66insc+mIsoNYQOmEMdexpc6fYuy8l5smd uyGMOimhfwL4aT2dS75NN+EAQ44c9r6mVQ1ZSNCsjZfBx47noDrVHExum+VCR/fwcHMA kX8C5tGisUjhvwx0rvsUkBr5cenVhu/EJjgPJVkUrG78nL8qr9B704zAnkf/BKdqNcCx QDXvi6SwefjMqx0aPDbRPoPvhekuoPrV7lOuALVswFHFYAb/S8qPJ5Hwd75OI+ziY12j 1Igcn8lIVrJfdSO2ibTlD+lLUNHlVJAXIlnmtxwa5gJYlraqtQadrlgXnhHCTT0/LGkt phFg== 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=PUTMAccQY49yMsp0OpMeKdKWr500Y3vga90TvcSafioXnb2QlODr1T86JbXrr0ERd+ 77vxbtss1Z5LhGITwtHieCXSG7ITaULfe7J1+1Tz6/LvIGrYyHkWvVORZ69lZBGeQNGz 8iWzXBV9bPrBnSuo5B7vgFxfiZoK0fPs5uSigBCyv8rIx1cH5bJl+9YkBqlnRdxdvoY8 WKZbmsbTO40RxWGbD3MMBoKxGT+aS689taM9DCEaqPem3T2GpKuyjK838gPNn6PU2vwo Dyh9RF02QMVztWK507bPDSyVxkUwLMtURvjQgYmQ5RXPT0oo5XkOWV7uUFnMSzdATrCs j20Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="qPFZf/dP"; 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 m38si5652970jav.99.2021.08.02.06.58.24; Mon, 02 Aug 2021 06:58:35 -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="qPFZf/dP"; 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 S234928AbhHBN4s (ORCPT + 99 others); Mon, 2 Aug 2021 09:56:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:33610 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235036AbhHBNuz (ORCPT ); Mon, 2 Aug 2021 09:50:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8F6E361104; Mon, 2 Aug 2021 13:50:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627912239; bh=c/pHw0x9Yemy1ZTAUjcVb3eJFXNzIGhqFikizEBodWM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qPFZf/dPFcxJQ1rdRfLBxxrZVHnK/KcDy5DukgDo/HG6TdwgRsKgZwXZoXzYkulCS ilWXBYPcWfMYBOO6S1bXb2f15Br1RxNiaS1dxha6jufNpGhd01xV4/VZOfIjTe//0N E1JDEqgNnevNe5cwxvUG+LN42yfp4n9Jb/tRXE18= 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.4 02/40] x86/asm: Ensure asm/proto.h can be included stand-alone Date: Mon, 2 Aug 2021 15:44:42 +0200 Message-Id: <20210802134335.484340327@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210802134335.408294521@linuxfoundation.org> References: <20210802134335.408294521@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);