Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp692907lqt; Fri, 19 Apr 2024 07:48:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXyVXV17XskM0FnciEYFilhef2xRbp2h4dYevonsoNOjLITS0ccYy53/KMw/KUSS9JvDe3KJ3LirxyrSpKrhFZdkIAvGL+Nwqr0NEe4RQ== X-Google-Smtp-Source: AGHT+IH+8IpHOu2H8WISDArWagoB3/+XkuTX8CPMI6D/W8MNfBnuzNM4bsf+STqqdXjIUdfjLNMZ X-Received: by 2002:a05:6830:3b8b:b0:6eb:786a:a5a1 with SMTP id dm11-20020a0568303b8b00b006eb786aa5a1mr2225818otb.7.1713538098007; Fri, 19 Apr 2024 07:48:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713538097; cv=pass; d=google.com; s=arc-20160816; b=KCQ0Ei6UBQgdCrYFCdoEmXOYhcxfQXMVuLyKTVhCIfTV31asdsCqQlstbJ9W0/PkAF 4yKOeAkkXS1iBgpFE759rUfoiYCWrymunGW3eaPgG0llxqLW9v46pL+R4joOfLhNFT/b aC07bCCtEaolNlqVNMSEsf+UxG3D0MmSQE0OPwquWSiqH8XHlBZ+OIWyv83+LE06DhhR 3kVr8SM11plx1RqUtsGNmTzpSrMXqSL8Ln1oCSOkgvvjRxSF9UXUAUpYqAu26OtuZTJs pFgh2b767Bwdv62wRWwWwx5iRjrRXbIZUWchJ1oslaCP++Li7Idz2nfmYIfavSeeCdGk J2IQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=p3tRvWw2O2vdDwe2obpuCUtDs3sDu2+8DyL2Vd+38UI=; fh=ECceH2dayNfnvmqOepwt3462Sc1jlGs79NtdtkTNamk=; b=BfFp0eefG40CqSK2OYTYizeYGNWcbM3cJrQza0ossrslsKBf/k9hx00X8n/AIMY9wR 6hkPj2OYvwAYCGTQlmqByer7H/d8Ui4tsA2wrvN+XnBCktx/CveC2qAx5HK3UTk/q9gN jyhEYHiF2jg7QcFmOkePWGK/kCbmkY9w5Fr+kELu/P2LBzpQkHnwSVzZJULe3XpHMzRj Cq3KXz1taEnSVF/8PPQd91Y3AWv510/pGl0Vizf4EYtqygRB4JF6zFx+l35VyhQa4adG BDNO2yMKKqppETkL+nAC95PY14IoeeUBb3nQxvAV6cpTqPhbTmUiEu4B9579YnAd7YkS KSrw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GCYZbVvR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151602-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151602-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id yf3-20020a05620a3bc300b0079027341957si829676qkn.772.2024.04.19.07.48.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 07:48:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151602-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GCYZbVvR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151602-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151602-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 368451C22DEA for ; Fri, 19 Apr 2024 14:48:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC07112F591; Fri, 19 Apr 2024 14:48:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GCYZbVvR" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EDB4612F38C; Fri, 19 Apr 2024 14:48:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713538081; cv=none; b=h5dIQerB48b6+CnrSsCw+BRnJncsdby9+0Velvs/tuVx0WGVjmetComzKGqbaDAoU3uuNPZ5vlhlBl7EkyOSjt9a/33/bGag2WCDP+ATZgnzgzG3OPgNbs21Xj8S3bo5TBqCAjG0bLjPmRl5IbYJTIcQg/m8SHSBVHCNVx7OVj0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713538081; c=relaxed/simple; bh=04Zb97cdbjMlae6r4F3dTKaH5KftkuQ84e3WYGNsYLs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EFjLoHnw+xqzcXognQS/6ohtAHMq8slCOnyilHmGxPOaSJLPcM4JZGqxIes4D+wS1YIx9msqF3j0Z1wqs7LCnwD31mbKmAna/jsdaMAWTymUZ6/R2P5IIkWgpaxCo7ELC1Uzew5jikLDiXnWg+v1Vi680mIho9yntVTXPX19Q88= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GCYZbVvR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57788C3277B; Fri, 19 Apr 2024 14:47:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713538080; bh=04Zb97cdbjMlae6r4F3dTKaH5KftkuQ84e3WYGNsYLs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=GCYZbVvR+1L//Icu5z8sFMdYKIR1ejBxfDJ1NZBGkulj230FA8h4+EPI8l+sRgcfo uXnel7+7nPOK8D3PPxAdFvSVwF3EhB9BqILKGtm0bORqAli2/+fRGXa3bza0ypI5gz ZAPCzJShrHit4gRUSYkocUZPhbsR9FuozJKge/7WekX7fpqtfuGIlwK9GWgUkDnJvO QXvS6XDrBOB/OUhE3d/J9Adfdm57q7dr8CKAed4Q3e6rlZyZ096ebQEAZ73UChRV4J 33+lV36Xt6Gx3mNu0V0G/rmr7SrFHENrqX/Fpl6OIRZj5BldTAzK+X869Aa7c2RIz+ /07EJW/fSFsjA== From: Benjamin Tissoires Date: Fri, 19 Apr 2024 16:47:51 +0200 Subject: [PATCH 1/3] HID: bpf: fix a comment in a define Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240419-hid_bpf_lazy_skel-v1-1-9210bcd4b61c@kernel.org> References: <20240419-hid_bpf_lazy_skel-v1-0-9210bcd4b61c@kernel.org> In-Reply-To: <20240419-hid_bpf_lazy_skel-v1-0-9210bcd4b61c@kernel.org> To: Jiri Kosina , Benjamin Tissoires Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Tissoires , stable@vger.kernel.org X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713538077; l=1167; i=bentiss@kernel.org; s=20230215; h=from:subject:message-id; bh=04Zb97cdbjMlae6r4F3dTKaH5KftkuQ84e3WYGNsYLs=; b=yLZ6mBpSWzokrza1a7v3QlUhFGuN9C1xEmWUI8JWBzWdcwBt3E4fKUw1/HRIw4va9+O7OzF8T fwt0eP57nY0CaR4JVgUmn/6lMaog/3V6Bck7G0WQCXtd3pPuuT3NxoB X-Developer-Key: i=bentiss@kernel.org; a=ed25519; pk=7D1DyAVh6ajCkuUTudt/chMuXWIJHlv2qCsRkIizvFw= It compiles fine, but my editor is troubled by this. Makes things clearer by putting the comment above the #define, this way we are sure it all goes well. Cc: stable@vger.kernel.org Fixes: f5c27da4e3c8 ("HID: initial BPF implementation") Signed-off-by: Benjamin Tissoires --- drivers/hid/bpf/hid_bpf_jmp_table.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/hid/bpf/hid_bpf_jmp_table.c b/drivers/hid/bpf/hid_bpf_jmp_table.c index aa8e1c79cdf5..89496aabbe15 100644 --- a/drivers/hid/bpf/hid_bpf_jmp_table.c +++ b/drivers/hid/bpf/hid_bpf_jmp_table.c @@ -19,10 +19,10 @@ #include "hid_bpf_dispatch.h" #include "entrypoints/entrypoints.lskel.h" -#define HID_BPF_MAX_PROGS 1024 /* keep this in sync with preloaded bpf, - * needs to be a power of 2 as we use it as - * a circular buffer - */ +/* keep this in sync with preloaded bpf, + * needs to be a power of 2 as we use it as a circular buffer + */ +#define HID_BPF_MAX_PROGS 1024 #define NEXT(idx) (((idx) + 1) & (HID_BPF_MAX_PROGS - 1)) #define PREV(idx) (((idx) - 1) & (HID_BPF_MAX_PROGS - 1)) -- 2.44.0