Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp401448pxu; Tue, 1 Dec 2020 14:19:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzyJ5fFyu+ypp9kElxz6/Lyr0cnSTrcBNgbrszSfBelfdNmb7FPDpzlKYwHdlxV8FSEG9F X-Received: by 2002:a17:907:270e:: with SMTP id w14mr5219496ejk.552.1606861185156; Tue, 01 Dec 2020 14:19:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606861185; cv=none; d=google.com; s=arc-20160816; b=n8EgInFGL0YnioL9shtldgrrLtFQN/Ix+ziZvXS22sRj3nGCSmn1634/QXg4AgtPKy 6UeIAsElh5EKRfIGSWhvbSiU1FaVnDewAk3BYfPpfUMNW2X7ba5X3ZEIl5TKv5/6sgU9 s3QIEq2ZIP8Ud062bcHFc0+xtKMOEUHoGaVaGnsMlVG1pDlEMJ1wZBZ6TOOAg5PKIOuE ksjdHml6tg+wPO3zPXJPpUljN65SsK4HZVbnUqDfetT38OAHkS8gJIJ+2q4AdGmjIJqM YLQdsQ/bMVQjuItAfHWdTfZd7BMA+ZoBa02sRrX8IpiUqf7mrvY89fyWDdsUkD2tkTuD jkYQ== 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=bc1XjXC70wrko84IQUtDaT0KqGen/GAhqUhqJFB+ttU=; b=jjRVUAOZYXxd1KlOBno5g3Om4ucC48b4TpGved/kcYUYAmZYCbaO3wioq+JV/5cy3Q 5fvIPZX1gp0I8I335Dpu6USuT1wLJ9SkVVzjnqe4gagQapZdFNn4s3OLlJlF/IE59Uso mzm6OkyNHVjdXz2o5PRSO/nywWDzMO0gRfFK2xiy/2tIgNJpm6N5zqk5S0BQerClYAcu tfYs+zkryC0CbMbzFOjYRylZDRpP5epuDG3dsT/e7i5IGUD8KRtjIibqKAXCTuKOhfl6 DqLuOtNZ0UgzL2shB+NV/JPqSi66AxkSALVTga0003UYZlgHLM9z+dHIXd/mx/sWgU98 OlDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="SUfpR/j6"; 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 r12si769634edo.212.2020.12.01.14.19.22; Tue, 01 Dec 2020 14:19:45 -0800 (PST) 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="SUfpR/j6"; 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 S2388510AbgLAJBP (ORCPT + 99 others); Tue, 1 Dec 2020 04:01:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:37256 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388480AbgLAJBK (ORCPT ); Tue, 1 Dec 2020 04:01:10 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 366712220B; Tue, 1 Dec 2020 09:00:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606813254; bh=8qixQJveTgM/slIqqZMCI09l3i7SFF5l94iIB84rPyk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SUfpR/j6g7+CP+c8WKvI/siVQQ1irbYW6Ahy33WudLocynfHwDTPPdUzbro38oycN /YniMqRwP+f1txK86fFmniqGHRBg3s3wW7V+ZBRCkJ7h9mI6RdoYomqPyx+r5XRnj6 LgqMYUk1nmoOQIt+L8gDji9A1bkC6OQZ40h73fHs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Laurent Pinchart , Max Filippov , Sasha Levin Subject: [PATCH 4.19 27/57] xtensa: uaccess: Add missing __user to strncpy_from_user() prototype Date: Tue, 1 Dec 2020 09:53:32 +0100 Message-Id: <20201201084650.498869030@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201084647.751612010@linuxfoundation.org> References: <20201201084647.751612010@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: Laurent Pinchart [ Upstream commit dc293f2106903ab9c24e9cea18c276e32c394c33 ] When adding __user annotations in commit 2adf5352a34a, the strncpy_from_user() function declaration for the CONFIG_GENERIC_STRNCPY_FROM_USER case was missed. Fix it. Reported-by: kernel test robot Signed-off-by: Laurent Pinchart Message-Id: <20200831210937.17938-1-laurent.pinchart@ideasonboard.com> Signed-off-by: Max Filippov Signed-off-by: Sasha Levin --- arch/xtensa/include/asm/uaccess.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/xtensa/include/asm/uaccess.h b/arch/xtensa/include/asm/uaccess.h index f1158b4c629cf..da4effe270072 100644 --- a/arch/xtensa/include/asm/uaccess.h +++ b/arch/xtensa/include/asm/uaccess.h @@ -291,7 +291,7 @@ strncpy_from_user(char *dst, const char *src, long count) return -EFAULT; } #else -long strncpy_from_user(char *dst, const char *src, long count); +long strncpy_from_user(char *dst, const char __user *src, long count); #endif /* -- 2.27.0