Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp207865imj; Thu, 14 Feb 2019 18:43:07 -0800 (PST) X-Google-Smtp-Source: AHgI3IbAG3IqjIabVVvaIZtW4+n524+QN2QQpEXsE6U7hUFhwtU0jYyK9tbmA3IoQgwBBm5ZXPXm X-Received: by 2002:a62:4bd5:: with SMTP id d82mr7290974pfj.85.1550198587163; Thu, 14 Feb 2019 18:43:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550198587; cv=none; d=google.com; s=arc-20160816; b=MJbizCbEFNY6OOnmNTbuzf0nHEKrVKDBHKdA5wFYusp26idm/tuRWXrD4TvVKNhcBe DY5gVKb34JEiZS97Zirkc1jSd+g+jWOJ5EVK6GSudGX9k9oR0Sk+VI8REXg36ByDcpjB qVxkDzolfHcLk3SK5Cr+5BKJcgIez8NA74hiejT5+wxPVeQsAvP3fgTrp/3ERydn70gn /6qtSZqQreLj1th2MsPWeKB5ItHTU9yIru9R7l5R1J8BDPOJdwJJkCz1SnGpCP93GWaB jeP3XfC3wpdVUa5OOzqF5ntwP+knl/RLTaD4peA4Daw2kQ1Kv3unjjcsArxPylDZU+9q QMDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Cfpx6uv7Zuwcc1poc0d37CERkbs0H1HT0dqYked7gYs=; b=JoRvjOBCY06pXu3CvRTIfVvccKHp0AUBZh0uYnm4RNPq0tHGgPoCLeWtnh+JC/hzbu TJspxzbWpFOTWuuASKd/muL+qGbFthigg3rbjPSeeITibQKS2AT16pm1k1vP3vVMsbvi a1RdtTJd36hGM/CDEhk8DakwhFSduQRKmmrLuLPS7cILJB5y1EX2o4wzeTiaha3IMswN V9zQEPHw8i5QrsFOZLtJsFmUhMDqE8pLq12QPD+6vql/evQETOb72GYewwgasdURLcgC ZeRtONK0UO3+P3YR0Ff8oDtl0D42JpxyO7dLMZnfEMzqpWRAGgHLPQ8kiwjMpbYMxm3Y 8QpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lMdY9Alx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z8si3788102pgv.204.2019.02.14.18.42.51; Thu, 14 Feb 2019 18:43:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lMdY9Alx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389007AbfBOCJq (ORCPT + 99 others); Thu, 14 Feb 2019 21:09:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:49894 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388638AbfBOCJm (ORCPT ); Thu, 14 Feb 2019 21:09:42 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6B8D7222D7; Fri, 15 Feb 2019 02:09:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550196582; bh=JJLWOw5LLD1Lg0ZmECfqNzQ3X16kfv5gFGW3KC5cyPk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lMdY9AlxALsBxNxNWe1ZfXUSJmt2uXzFKEdhkvtJZV1f/xB8rQM+6M3MjTkeZP2IO ukNq29JsiiuIYQHIyHCndrJQ+aGPMol1beFzKwKfCzCUAe6E2/+euFOhXhOx1v2zjy r4u+4f472iTZ00BDbU+GS0LYod0+jD/XSnm2Lk4Q= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Alison Schofield , Shuah Khan , Sasha Levin , linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 4.20 26/77] selftests/vm/gup_benchmark.c: match gup struct to kernel Date: Thu, 14 Feb 2019 21:08:04 -0500 Message-Id: <20190215020855.176727-26-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190215020855.176727-1-sashal@kernel.org> References: <20190215020855.176727-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alison Schofield [ Upstream commit 91cd63d320f84dcbf21d4327f31f7e1f85adebd0 ] An expansion field was added to the kernel copy of this structure for future use. See mm/gup_benchmark.c. Add the same expansion field here, so that the IOCTL command decodes correctly. Otherwise, it fails with EINVAL. Signed-off-by: Alison Schofield Acked-by: Kirill A. Shutemov Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- tools/testing/selftests/vm/gup_benchmark.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/vm/gup_benchmark.c b/tools/testing/selftests/vm/gup_benchmark.c index 880b96fc80d4..c0534e298b51 100644 --- a/tools/testing/selftests/vm/gup_benchmark.c +++ b/tools/testing/selftests/vm/gup_benchmark.c @@ -25,6 +25,7 @@ struct gup_benchmark { __u64 size; __u32 nr_pages_per_call; __u32 flags; + __u64 expansion[10]; /* For future use */ }; int main(int argc, char **argv) -- 2.19.1