Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp405369pxu; Tue, 1 Dec 2020 14:26:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxe8U4ddgiADA5zyp/7ZDJhf6tD2hOJ60GalVyBhHrYWH5dPcGtK68wjnBX9KpTtM9QGWGB X-Received: by 2002:a17:906:8255:: with SMTP id f21mr2808438ejx.265.1606861570335; Tue, 01 Dec 2020 14:26:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606861570; cv=none; d=google.com; s=arc-20160816; b=U2ho9aRgiu2+fYnmn/c8TGqmXlc2x8nr/xUakzik7Z0XKq8LF3PlnjvMq1t5aO7/TA QtVkabchcS+SyvfPrlpelYETZHb9OXOkMZgQqqUhnjOi2cVAbgVA/ACEJ3QY/2+6k4fH bJ+zS5Qp0lxuqOsYirgaKXnklJ16WCl5eSMoHUlGE3ucRNO/WzzBBXwG65EsnIVGvJq4 MzmHcm4MxBd7pwUEijOxfaWJeSdsH+r6AonD4Qawh6XCX3yWPOhybI50VanJspGm53+T TNhEDo3Wlg+B61WJ0dZQys95xLSMEVb1FTDm0xmC6JFWSdyUBDNoTcc9DwPxZLzz9WUi YMiQ== 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=zdHReRdPPrOdaJd5SPmatYAEHYJQycL0BSMACGRqTQk=; b=K+TJ2e4prF8HFuTo93xt3N+0owdemdoKa19/HM/fWAVBiu7vwDnRQ6P1x4m+6JPeR9 DBZgk3+ehLrVyNbYb3oXMrHjkuVHPsjPpEdXmCn3zHCdvDthQlensb3ffnoZHXwUxCUQ t73Bp2aAnL7RyciBzeeOR7AF5xlj3I9lc84uJo6SUKQR0KwakYXkulynzPTkH/owMMf4 sbl8IcDb98x1WHtxsaq8q7TstMyxQJqz2s/skNFQFTVN9mgWG3HC4uqxYwqNhA7F54Bg joyb8KrVhE+P8SmuVyBF75Tm6HfCYk/Lp9VybWhCB3MbnMqvEjoOjgi9vrZTws4pCV2D 491Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=k9nlptr+; 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 rv17si775888ejb.729.2020.12.01.14.25.47; Tue, 01 Dec 2020 14:26:10 -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=k9nlptr+; 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 S2389700AbgLAJK1 (ORCPT + 99 others); Tue, 1 Dec 2020 04:10:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:47648 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389685AbgLAJKX (ORCPT ); Tue, 1 Dec 2020 04:10:23 -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 F42372067D; Tue, 1 Dec 2020 09:10:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606813808; bh=aKivXo9prfiD48kBv+1THI6AQjC3GMkfvkx95PB3S48=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k9nlptr+fkuawBNAIQ4IZiXpAW4gUtHPRTjEXQZP/nfRcKPc86qi9KPjBDy6lFZ+h /5uCLPttbb783fqAU/qiT9Hwl9GLbBceuxcQosgFZkvrw0bsORfBRL2EDFn7kiITnl 9aAV/Vt64yOq3GVs5UA4vZpFp7HDWp4FTF4gdPrI= 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 5.9 066/152] xtensa: uaccess: Add missing __user to strncpy_from_user() prototype Date: Tue, 1 Dec 2020 09:53:01 +0100 Message-Id: <20201201084720.583155767@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201084711.707195422@linuxfoundation.org> References: <20201201084711.707195422@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 b9758119feca1..5c9fb8005aa89 100644 --- a/arch/xtensa/include/asm/uaccess.h +++ b/arch/xtensa/include/asm/uaccess.h @@ -302,7 +302,7 @@ strncpy_from_user(char *dst, const char __user *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