Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3114164rwb; Mon, 15 Aug 2022 18:27:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR45MAQanby4RKq4Q1C9rwDF10QD6xXr/Xuki7ulWtPNSzik2Cq9zh6IUD2PMAXGHhW47XwF X-Received: by 2002:a05:6a00:1a44:b0:528:6af7:ff4a with SMTP id h4-20020a056a001a4400b005286af7ff4amr19109527pfv.78.1660613234297; Mon, 15 Aug 2022 18:27:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660613234; cv=none; d=google.com; s=arc-20160816; b=mci60ImfpmcxaUR0jfZy7r1wwSxHzFC1y/PSJIOMl7FEQhUU+56VcUlriX4zdIHVkG XjuPjnfUClHXiWIBP8QaOTLE71M1+lMPbzkl6vkLacBa20Lry6FQveTzpzDzehWhuxH+ qSps2J+uJj2MEnDwsrJepCBfRA8AEAbLGEZRyozd0dS5MR7d6WAbO/1/vl9bQH1zZQGE Jd988GEly30lz/tXK/LzeQDjnEd5v7oCYhrNUpd+kJIrPG+1MouTFOorN/KASc94lvX9 LxsoktXZ3SelKXXo+6kO7Uv8EvvmtaaYnMqO3D/5HZO/UR3k2hSc0SUfPZ88PKYAr/Mm RHhQ== 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=DTPB7Zj21/iCCK8ZT1pwTOvYgHf22dsMrkvSWZHQKv0=; b=SfM1lVT2WZkdwiZkVM0Q+Jdg3Kgl6p420f+VyrZCxxRlaGE1m+67sO2DqlXBO9qCKK z7yXbL/UdE/eHFUlHLUBL3AJuD1UNzOhIxnXbseSa99IOrrQsFSGZcUHjRg0usWE18Le IKFSif77VafocDoU27/WatXXYEurYtydLKJBc3gUWqvJlDJKLmNE9COQLzFL+ePRkjTG nJOC0xZxJIRhbkd42b56/x5hXuMhjo8Mp6lIiT2oDluu4ytY7TJXK1xoFqfGA8WTLe33 P02L8pFD5W2P6azWMWsrUoN/Xzh0CS3EYFAc8a9l0+p2OkbZVCWdqui4g7VWHCBFOrkp B3qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Tjp8GdQT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bu11-20020a056a00410b00b0052dfe17ce46si11008396pfb.285.2022.08.15.18.26.55; Mon, 15 Aug 2022 18:27:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Tjp8GdQT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S245416AbiHOXpV (ORCPT + 99 others); Mon, 15 Aug 2022 19:45:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354283AbiHOXlr (ORCPT ); Mon, 15 Aug 2022 19:41:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 244CAB86B; Mon, 15 Aug 2022 13:11:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B4ED06077B; Mon, 15 Aug 2022 20:11:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA20AC433C1; Mon, 15 Aug 2022 20:11:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594293; bh=m6tmQ3fcvqEazC3ml2tP0P8yC/apYVAOn4jfufH1sJ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Tjp8GdQThCTq0OsWotrGBEoZ04KsIiLE2Ewu0rqN3H/W8P5QyUnvAEuRnCm6IrYMe 3gRCJ/sg+ox56h2cT3F96k2BowJMq83KkGn+GSck2+5lnVL9bLspwswb2VNA/lyCrU bL4Wm/s1IKa05iU3GlVAJQqxmQdRDVExW4vYPcAQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Kumar Kartikeya Dwivedi , Alexei Starovoitov Subject: [PATCH 5.18 1088/1095] bpf: Fix sparse warning for bpf_kptr_xchg_proto Date: Mon, 15 Aug 2022 20:08:07 +0200 Message-Id: <20220815180514.042329632@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Kumar Kartikeya Dwivedi commit 5b74c690e1c55953ec99fd9dab74f72dbee4fe95 upstream. Kernel Test Robot complained about missing static storage class annotation for bpf_kptr_xchg_proto variable. sparse: symbol 'bpf_kptr_xchg_proto' was not declared. Should it be static? This caused by missing extern definition in the header. Add it to suppress the sparse warning. Fixes: c0a5a21c25f3 ("bpf: Allow storing referenced kptr in map") Reported-by: kernel test robot Signed-off-by: Kumar Kartikeya Dwivedi Link: https://lore.kernel.org/r/20220511194654.765705-2-memxor@gmail.com Signed-off-by: Alexei Starovoitov Signed-off-by: Greg Kroah-Hartman --- include/linux/bpf.h | 1 + 1 file changed, 1 insertion(+) --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -2228,6 +2228,7 @@ extern const struct bpf_func_proto bpf_f extern const struct bpf_func_proto bpf_loop_proto; extern const struct bpf_func_proto bpf_strncmp_proto; extern const struct bpf_func_proto bpf_copy_from_user_task_proto; +extern const struct bpf_func_proto bpf_kptr_xchg_proto; const struct bpf_func_proto *tracing_prog_func_proto( enum bpf_func_id func_id, const struct bpf_prog *prog);