Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp140646rdb; Wed, 1 Nov 2023 21:15:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFaD5Xs9Rw8Dn797FJiTELny14EJazHafNwjWH/APQYcSZRqQBELGRxiCYZDu1Rj1NUv3Dd X-Received: by 2002:a17:90a:ee93:b0:27e:277:3015 with SMTP id i19-20020a17090aee9300b0027e02773015mr16376556pjz.16.1698898543194; Wed, 01 Nov 2023 21:15:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698898543; cv=none; d=google.com; s=arc-20160816; b=i7WYeZfUv1qLkNdqje2kIM0UhwT08TjBv/8w5LR7S3tP0gvDSZgKACClKG/1tpRzIz x3M8LuRHjo6q1qdqUSTWXTkjaQtDdpUKCtyfJzGvYDuNqe0BKFd9qQ1V6RTFGyAr8MyG 3Zp/CFaqbb99eCenQE501OMZaEvcnIUrCUgsmQYorfedEWPv1O5fLVQ9YMbSfz6P0M2w 8iU8rhxy3TtJIjpX+YLiHj54RQbzU4hvjSptNR5I/qG/W+r/qZjGcalNIvZYvZg/uuLf /xArW384raffeewGXkBc/CxHNlHftrWj9ahWjYvGSErhJWdvKRsw9Lbm/bk3zmzt9sAA IhnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=l2ERJmNCXpNQzaa/pOXbBozNE0zvfvVFXQMe5dR3+hc=; fh=jCgPQfw1CEmh4ldmGesgas2DRphZIrM3oGi1kzB4tfU=; b=PGv/044+2aSzAQAfnHYmbrmL4q4OvopnCYdNOwxceFIOVU94p4LLe3q/JDVazVZjJ5 JYLOq5aA5uvOwAwdMZcarjf7PtoOZIie4ExpBVU9sGecWfl7rxcyrjmJgffmV4gNkiFT evXjO4YmcyLsZeDuzs2E9lqfUVkrKsNpHSlv5s7O/OIIUa9PvmGvCpubY54jJ070Cjl1 gH2+FOl+kEVPt9Q3FDifwky/GQ+fm6Toh2sipPEfo2TP7nFluCUXXZ3X1C8jTnqkfXyg 0K3eLEFZQh+4dIkO3gkOWEZKm8h7XoSDR+FMRiU8uA4U4O4czLCszuSQceGWd5e3wQpz Ig/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KhCmC0Af; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id gp24-20020a17090adf1800b0027d20cab1d3si2024841pjb.42.2023.11.01.21.15.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 21:15:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KhCmC0Af; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 03A898066641; Wed, 1 Nov 2023 21:15:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348426AbjKBEPj (ORCPT + 99 others); Thu, 2 Nov 2023 00:15:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348417AbjKBEPh (ORCPT ); Thu, 2 Nov 2023 00:15:37 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64FECA6 for ; Wed, 1 Nov 2023 21:15:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698898531; x=1730434531; h=date:from:to:cc:subject:message-id:mime-version; bh=YWSSMCsulCRLdzOjDrEsEiAA9R2C1SvVYwlBRHY11MY=; b=KhCmC0AfKMwX+aiwg5znT1snzAi+UtNG55NZu9odiNZAZ0d3TJ5PaAXA Ym97gtjxpWlP4Nw9BugAloBIFwYR7oMVUlWU45Er/QNxFymDzBcwALZBd Sl4q7R5ogSZeVD1ynDjU0QoMsBO5//aRaroW1fxSGh3D1eUQCbhIKl/vw OKQZcOWAa8o5fq4iZj+sz58d3AebCYHlY3zFyjaCyZ6l+XzvKspDVMdPq aVtemsjNDArXPeYFah8zZBKVDoPh19V64aRZzRyVk4NstuKVrryFlSsvi f+pLw2OauTpFR7dOO2e9jvGkOPpTFC4y8Ahe9f1hbq7fyzSlV6opqAnON A==; X-IronPort-AV: E=McAfee;i="6600,9927,10881"; a="385811200" X-IronPort-AV: E=Sophos;i="6.03,270,1694761200"; d="scan'208";a="385811200" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2023 21:15:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10881"; a="1092590988" X-IronPort-AV: E=Sophos;i="6.03,270,1694761200"; d="scan'208";a="1092590988" Received: from lkp-server01.sh.intel.com (HELO 17d9e85e5079) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 01 Nov 2023 21:15:29 -0700 Received: from kbuild by 17d9e85e5079 with local (Exim 4.96) (envelope-from ) id 1qyP79-00016K-1C; Thu, 02 Nov 2023 04:15:27 +0000 Date: Thu, 2 Nov 2023 12:14:31 +0800 From: kernel test robot To: Daan De Meyer Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Martin KaFai Lau Subject: net/core/filter.c:11773:17: warning: no previous declaration for 'bpf_sock_addr_set_sun_path' Message-ID: <202311021257.nD9pHYSn-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 01 Nov 2023 21:15:42 -0700 (PDT) Hi Daan, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: babe393974de0351c0e6cca50f5f84edaf8d7fa1 commit: 53e380d21441909b12b6e0782b77187ae4b971c4 bpf: Add bpf_sock_addr_set_sun_path() to allow writing unix sockaddr from bpf date: 3 weeks ago config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20231102/202311021257.nD9pHYSn-lkp@intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231102/202311021257.nD9pHYSn-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202311021257.nD9pHYSn-lkp@intel.com/ All warnings (new ones prefixed by >>): net/core/filter.c:11747:17: warning: no previous declaration for 'bpf_dynptr_from_skb' [-Wmissing-declarations] __bpf_kfunc int bpf_dynptr_from_skb(struct sk_buff *skb, u64 flags, ^~~~~~~~~~~~~~~~~~~ net/core/filter.c:11760:17: warning: no previous declaration for 'bpf_dynptr_from_xdp' [-Wmissing-declarations] __bpf_kfunc int bpf_dynptr_from_xdp(struct xdp_buff *xdp, u64 flags, ^~~~~~~~~~~~~~~~~~~ >> net/core/filter.c:11773:17: warning: no previous declaration for 'bpf_sock_addr_set_sun_path' [-Wmissing-declarations] __bpf_kfunc int bpf_sock_addr_set_sun_path(struct bpf_sock_addr_kern *sa_kern, ^~~~~~~~~~~~~~~~~~~~~~~~~~ net/core/filter.c:11877:17: warning: no previous declaration for 'bpf_sock_destroy' [-Wmissing-declarations] __bpf_kfunc int bpf_sock_destroy(struct sock_common *sock) ^~~~~~~~~~~~~~~~ vim +/bpf_sock_addr_set_sun_path +11773 net/core/filter.c 11772 11773 __bpf_kfunc int bpf_sock_addr_set_sun_path(struct bpf_sock_addr_kern *sa_kern, 11774 const u8 *sun_path, u32 sun_path__sz) 11775 { 11776 struct sockaddr_un *un; 11777 11778 if (sa_kern->sk->sk_family != AF_UNIX) 11779 return -EINVAL; 11780 11781 /* We do not allow changing the address to unnamed or larger than the 11782 * maximum allowed address size for a unix sockaddr. 11783 */ 11784 if (sun_path__sz == 0 || sun_path__sz > UNIX_PATH_MAX) 11785 return -EINVAL; 11786 11787 un = (struct sockaddr_un *)sa_kern->uaddr; 11788 memcpy(un->sun_path, sun_path, sun_path__sz); 11789 sa_kern->uaddrlen = offsetof(struct sockaddr_un, sun_path) + sun_path__sz; 11790 11791 return 0; 11792 } 11793 __diag_pop(); 11794 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki