From patchwork Fri Mar 4 17:28:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Tissoires X-Patchwork-Id: 548387 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B9BEC433EF for ; Fri, 4 Mar 2022 17:36:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241356AbiCDRgy (ORCPT ); Fri, 4 Mar 2022 12:36:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241363AbiCDRgd (ORCPT ); Fri, 4 Mar 2022 12:36:33 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9D6A8E02CF for ; Fri, 4 Mar 2022 09:35:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646415315; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NgcKpbYcf2hi8vkeeDFW+llAZ4317MhJ4ll5aBH+/Nc=; b=QV4bn7u30hpOAauo9eyombRXH/ZkSJ/cxel7x/PVeSBUqM2x3i+KkUTz3qWqCdB1FFB/k3 iwd4srDaqwRbYTlxA0+AhmoWCobm8goRTFoyhLIrRMbcUYk8k7Wa5bDkpQMHllnFj7uZ1x geQ+oEeDRYoIK9nzJTPfIhgWoGrF2ME= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-117-DY3KTqRHNQ-zHvi72pqlHg-1; Fri, 04 Mar 2022 12:35:12 -0500 X-MC-Unique: DY3KTqRHNQ-zHvi72pqlHg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 333015EF; Fri, 4 Mar 2022 17:35:10 +0000 (UTC) Received: from plouf.redhat.com (unknown [10.39.192.55]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0A8B886595; Fri, 4 Mar 2022 17:35:02 +0000 (UTC) From: Benjamin Tissoires To: Greg KH , Jiri Kosina , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Shuah Khan , Dave Marchevsky , Joe Stringer Cc: Tero Kristo , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, Benjamin Tissoires Subject: [PATCH bpf-next v2 28/28] samples/bpf: fix bpf_program__attach_hid() api change Date: Fri, 4 Mar 2022 18:28:52 +0100 Message-Id: <20220304172852.274126-29-benjamin.tissoires@redhat.com> In-Reply-To: <20220304172852.274126-1-benjamin.tissoires@redhat.com> References: <20220304172852.274126-1-benjamin.tissoires@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Add the new flag parameter. Signed-off-by: Benjamin Tissoires --- new in v2 --- samples/bpf/hid_mouse_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/bpf/hid_mouse_user.c b/samples/bpf/hid_mouse_user.c index d4f37caca2fa..bfae25e7b659 100644 --- a/samples/bpf/hid_mouse_user.c +++ b/samples/bpf/hid_mouse_user.c @@ -98,7 +98,7 @@ int main(int argc, char **argv) bpf_object__for_each_program(prog, obj) { progs[prog_count].fd = bpf_program__fd(prog); progs[prog_count].type = bpf_program__get_expected_attach_type(prog); - progs[prog_count].link = bpf_program__attach_hid(prog, sysfs_fd); + progs[prog_count].link = bpf_program__attach_hid(prog, sysfs_fd, 0); if (libbpf_get_error(progs[prog_count].link)) { fprintf(stderr, "bpf_prog_attach: err=%m\n"); progs[prog_count].fd = 0;