Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2208795pxm; Fri, 4 Mar 2022 11:24:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3pnEP/72qody84WN+22Al4LkavzWo9G4IOa2yoiepfsuSx7shxlR1IUnTzY5FY7KSzA4M X-Received: by 2002:a05:6a00:2313:b0:4e0:ffa7:bbe0 with SMTP id h19-20020a056a00231300b004e0ffa7bbe0mr214658pfh.53.1646421888376; Fri, 04 Mar 2022 11:24:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646421888; cv=none; d=google.com; s=arc-20160816; b=wda5rHmYKR2a9VOOnjXCf9nDJX6HrHpnNhLEg/R62+G1aw4lf2hBAogqYHdyd85jl2 tqQk3Ze5V2VFcAhDl60rfwKtH9mWUHUBss5g80YRqfPntR81BwkZI5+j9Bj2p2GTXsWF L8YGQFe6w9vn8RcA79R6Y6a87/VtSaN35dLifMm9nOO/41CIlcHTC/3Ce0WWcfW5GW2G eIPT7GRmny0ScPNSk9SxqQhkE0xgIJBBZ+l0pL+hHPvFGV0h/d9a+KMUbmJJQy8k63q1 qz8ptRZZWRKq9fi9U+tNoPhKeVINorHq3KRHvUCVmQgcqGCUMSag1FUHb5hUlSHJkeRm iyUw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NgcKpbYcf2hi8vkeeDFW+llAZ4317MhJ4ll5aBH+/Nc=; b=vNafb2HUj/GjUToTgeRyI+vkiMXSsjugY9BzlGWjd/x+kuUyTJsZftuTfQC9Cvwc1W MnCJv9wTd2IAJUsGwBSR0k0phGE8QHgHQD9fi5PZeEsp8GPSop2h9mwprYJQLw8PVlAp Fk/9J0O75+hmGF81g99kiqbUaHCM9w+4fgwbLbq35op4H0Tc0G/QVubqpYK8/ua13UeU vIND6iz0wfD90WrF8R9Lb2x5EPhK9byBqaCJiqXmGpS+SRybgzQNL0zFFQHT3/Df3fc6 c9tcQYELm+2FNreHQupWLf3YDFmRkkVtj4TT+kF1Vi1KELYPAvqGfrcxAeLjyhgw4Fjr xd4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NbBTL7qD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t8-20020a634608000000b003737f7c857dsi5309582pga.527.2022.03.04.11.24.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 11:24:48 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NbBTL7qD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 280DCF9FBD; Fri, 4 Mar 2022 11:10:02 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238430AbiCDRg4 (ORCPT + 99 others); Fri, 4 Mar 2022 12:36:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241377AbiCDRge (ORCPT ); Fri, 4 Mar 2022 12:36:34 -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 B70661D21DC for ; Fri, 4 Mar 2022 09:35:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646415317; 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=NbBTL7qDSMD96vk8yqglIGrbhBg7Wi4lFtgAQrvDAMcYtUMxcE1oPIMMjbc+Myy2fNSC+X 2Zn1L72LTSdM/D9Dwb8WuxxPwpAVxEIKJ7EovfABpMZB/0or4C3RWOd5jlghfmCdx9b7Bm hPFBpd8lOt2y1rDcCCuw+1KLcFjsdW0= 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 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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; -- 2.35.1