Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3514754pxb; Mon, 1 Mar 2021 12:00:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYXZWUm6pKkxDbjnRQcJYSdFXGj4htaPbiS6ooefBikDJDkVVBf3Fy7Ofn20XDHT8qZQCp X-Received: by 2002:a17:906:3395:: with SMTP id v21mr17544610eja.322.1614628850553; Mon, 01 Mar 2021 12:00:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614628850; cv=none; d=google.com; s=arc-20160816; b=0y1qQ5w3y7C6S/FOlhVLZqrZIry2Cc6POEfeJBr3V6eSnzX5SIMmrMLgOSyUWp0eJF QDtJQ8MaVvvJCp8pofDOnN+xpV9jhg2nlSztfNhIxgNYFp2yYhpKUioFmEa4zECQUMn2 Jd5wfwmattXtbl++aeFJtMPxL1YinVt880K5oFIuUJf+jds7OvlqxRlWoLUGgLQpp7jI bEcSoeJVmiAxlsn76LtfaDHNj9n+fUaIWf5chCKRTEX7l4dFQmCLOgXfxMKoFuqxSmtm 4ZBxdK6x7+BZmlhjC6/9lSWzuOZacOQ22RjRLVIfVBFR0GXu66pMrJui/cQocjyvxZR2 UBSQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OuuyRDGtwM1NH3LBCFhpGs135mWDpdL1LBtmsY2sbFI=; b=GRexvWgfCZsvaQ1szJIeatQjGlacv+qTIwRUM/uHdCR24BqefnB616cIZFzfQb5roU 2wsIcICPdKOAfQ6IP7hJM5p9KNm5JkVOw39615bgrBPesKqgSqNR+SANtLsvwZneAQI0 o/p7vCFsnU1wzI9VW3BvFTUr8ce/hkD2VyUvSPs8aejxk+402QK0ahfjrj03ODiTgjSb OUHnLnsKGRQcwhtHd8qgGGEtpSjC/QlUoaqqCwF8PPsTjb1ugZ6iL8emlTRZB+JJAQA4 Wmo0uOpIvIQ5BJsBdKFc8Qecyb6CJ/SEm6GAy8MUUDRzbvtfC+3WmHij6X5nGg7YuUOn HgQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="jIGaKuz/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ho34si11744077ejc.343.2021.03.01.12.00.28; Mon, 01 Mar 2021 12:00:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="jIGaKuz/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242614AbhCAT6w (ORCPT + 99 others); Mon, 1 Mar 2021 14:58:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:59374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236658AbhCAQ6a (ORCPT ); Mon, 1 Mar 2021 11:58:30 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 000DA64FDB; Mon, 1 Mar 2021 16:36:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616611; bh=GDGJ3g4Scd+bDKAlv7eaA97XD7KuACxjL/H4cfk6TYc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jIGaKuz/q5AJVmzV2UO0Hhs0HvtTAPVb28m4e3nTpuc7P+DMsLmTAhlNyk4h1Zqix jR2+GYgATaSOGeMOI2c0Om24FWNxZ6uoF49nvUiLP8nYFtoUOWk/pSDAMvEVUEHcUM XIqZ6KN6MVHsIOIlLT3VYlMJe5CntAyiaOcDtsos= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Andrii Nakryiko , Alexei Starovoitov , Yonghong Song , Sasha Levin Subject: [PATCH 4.19 035/247] bpf: Avoid warning when re-casting __bpf_call_base into __bpf_call_base_args Date: Mon, 1 Mar 2021 17:10:55 +0100 Message-Id: <20210301161033.401793295@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrii Nakryiko [ Upstream commit 6943c2b05bf09fd5c5729f7d7d803bf3f126cb9a ] BPF interpreter uses extra input argument, so re-casts __bpf_call_base into __bpf_call_base_args. Avoid compiler warning about incompatible function prototypes by casting to void * first. Fixes: 1ea47e01ad6e ("bpf: add support for bpf_call to interpreter") Reported-by: kernel test robot Signed-off-by: Andrii Nakryiko Signed-off-by: Alexei Starovoitov Acked-by: Yonghong Song Link: https://lore.kernel.org/bpf/20210112075520.4103414-3-andrii@kernel.org Signed-off-by: Sasha Levin --- include/linux/filter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/filter.h b/include/linux/filter.h index d61dc72ebb960..117f9380069a8 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -746,7 +746,7 @@ void sk_filter_uncharge(struct sock *sk, struct sk_filter *fp); u64 __bpf_call_base(u64 r1, u64 r2, u64 r3, u64 r4, u64 r5); #define __bpf_call_base_args \ ((u64 (*)(u64, u64, u64, u64, u64, const struct bpf_insn *)) \ - __bpf_call_base) + (void *)__bpf_call_base) struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog); void bpf_jit_compile(struct bpf_prog *prog); -- 2.27.0