Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13473426ybl; Sun, 29 Dec 2019 12:45:38 -0800 (PST) X-Google-Smtp-Source: APXvYqyoGwqgSIWKeXg8ia8mv1MJwH+DP8bgt2+VHmrahWy9QVfRvCNTtsHfpapQoLY03CNOuAqn X-Received: by 2002:a05:6830:1257:: with SMTP id s23mr70648006otp.241.1577652338254; Sun, 29 Dec 2019 12:45:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577652338; cv=none; d=google.com; s=arc-20160816; b=znJ5PRhgOWaMUwUntDsXS9+2015BuNM9tXLra2YV/BUI01FEYysOfpMJ/63qkMamNQ dq6aFfH/jfVW79jfS5zrKsXxnuYJZWbQBEMkjj3Z5t7AKqoZ8LBfC3/Cezj5GgBS6U3n qxoWv21uNeNQc+XlQ82cvjY+CT1JKZ/KaWu2+FipOFFK+Jir8nYM1rd2k7hDWJUTJjaQ Y9orTLwrJ4lbI6pTyPbsh3aPo5KKQAX9oxhhrSSiPYnk6KmcsimH4Ujsg9ud5Rx+nWRL RkhEYkhpyXjOWh5qjKiHslmyOVZRYJDqpeFf3Uw0HEewCrALCAPfYLFreybC8lX6dZMB uuEg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fhd71lJ3k4FCku6+zIlimMzVY2jag02pf864j2XU/w0=; b=t2sV/q7RKeJUddQtoHcgCLgUjN8p4ulsCrkL6Da+WIohWvGvTtfP8JyocqE+LGxLDn fFGUOJzgQIz5CcHmeLB8wb5Ta1pT0zxDH4i+fw9vlFDG+P6atOA5YfAMyXLt9rhv8dhw UcztSyZxFTI+rv5i3XbTpYk+3PM/wK2rjbq/DUwFvnOTqVCbXZT2wIMYnWsJMFAk3YjO nJ9ZuCXR0INermdJP4+dkIdG2Qekb7L5q0xhP3FjxAStixz3l2ZFI5IizaK6WgCmgaN1 dLD6zcxupNCJOokrz/frJ/lmGgaTaC29dtxZf9tjDlaLGF2kEBkFTlyVhLHCSCXVja3t 1MMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AVDXyxqV; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2si13398081oto.207.2019.12.29.12.45.27; Sun, 29 Dec 2019 12:45:38 -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=AVDXyxqV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730999AbfL2RqC (ORCPT + 99 others); Sun, 29 Dec 2019 12:46:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:55392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730793AbfL2RqA (ORCPT ); Sun, 29 Dec 2019 12:46:00 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 36A31207FF; Sun, 29 Dec 2019 17:45:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577641559; bh=2xvGjflBVNDq5E1XdzK89Pin9Puce38Ph1IVVtxAnac=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AVDXyxqVXghHAlxHkmIpDcDZ+UC509dqeqVeLW53oo94wocj9xi0N0au6Jgr5FbBd /Xu46qu3U8AAKvjJ4Nawu0wnDKrNoqkXVhQKypc9RWucYIcXv4rp5iR33hMXwHuJ2o 3QidNaPmPfZON6ffaHCopJJH1Wy1HEBnPWFvWdgg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, John Fastabend , Andrii Nakryiko , Alexei Starovoitov , Sasha Levin Subject: [PATCH 5.4 117/434] selftests/bpf: Fix btf_dump padding test case Date: Sun, 29 Dec 2019 18:22:50 +0100 Message-Id: <20191229172709.457188361@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229172702.393141737@linuxfoundation.org> References: <20191229172702.393141737@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrii Nakryiko [ Upstream commit 76790c7c66ccc8695afc75e73f54c0ca86267ed2 ] Existing padding test case for btf_dump has a good test that was supposed to test padding generation at the end of a struct, but its expected output was specified incorrectly. Fix this. Fixes: 2d2a3ad872f8 ("selftests/bpf: add btf_dump BTF-to-C conversion tests") Reported-by: John Fastabend Signed-off-by: Andrii Nakryiko Signed-off-by: Alexei Starovoitov Link: https://lore.kernel.org/bpf/20191008231009.2991130-4-andriin@fb.com Signed-off-by: Sasha Levin --- .../testing/selftests/bpf/progs/btf_dump_test_case_padding.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/progs/btf_dump_test_case_padding.c b/tools/testing/selftests/bpf/progs/btf_dump_test_case_padding.c index 3a62119c7498..35c512818a56 100644 --- a/tools/testing/selftests/bpf/progs/btf_dump_test_case_padding.c +++ b/tools/testing/selftests/bpf/progs/btf_dump_test_case_padding.c @@ -62,6 +62,10 @@ struct padded_a_lot { * long: 64; * long: 64; * int b; + * long: 32; + * long: 64; + * long: 64; + * long: 64; *}; * */ @@ -95,7 +99,6 @@ struct zone_padding { struct zone { int a; short b; - short: 16; struct zone_padding __pad__; }; -- 2.20.1