Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4057411rwe; Mon, 17 Apr 2023 07:24:24 -0700 (PDT) X-Google-Smtp-Source: AKy350bdx9SXoOuscWrux7OfIrgALIn0QwtaI3GkH6jV/59E0zX5o1LPYAMu2O4O6r+bJ8hWqNG6 X-Received: by 2002:aca:a986:0:b0:38e:aa4:e4a4 with SMTP id s128-20020acaa986000000b0038e0aa4e4a4mr1214917oie.8.1681741464053; Mon, 17 Apr 2023 07:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681741464; cv=none; d=google.com; s=arc-20160816; b=UuehCb58izF7iW7M6sTHx6wEJdhIXnXVSJfJiqtryBl6jXeR6xsLkjF6LLInB+utAQ DJBexwXN0JULkBO+XOAEI3hado90/Q+PomOJgpfqL4b+8IcS2dY4nvJxomZI0WVuD3YV aBkwFq9igo0zQjsrengIT/QsYQWWGgJX5S/PXzyG/AWwDYi4LTLCPckB2ubrH6PFeOW2 uc2pKaa++22Tya0j4Z9jkpepyCMiuifZ5lF5YEA/sRkXPpcz6SbZNm+h8L3+ILN2i5/l 9fjP+SKnb01cWrSM2xoj04uoI9/Wb6BU4CGM96zH6WXTi//oQdZIhoo76XhzVb+pHt6F +CYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zcAXhJDSSs1Sa4mzGV306VoEVJD5V01wmqzu5Qn14d0=; b=UwGgG+xLUsfA2ozJ16q1DwuNqxvC8lW+DMwLHOZEciimpX3HGXsaUR9R32kjmF+Rv3 4qZsMYUpFe9u3alcwFYDWmXsPznPnwf0bLHm9CRJhlfS6/ZOoXo/r1tn69K/OMQq5+ql 4mpoyvWwagqwJEL2kqVCirk1bdbeV4WNxpyodwCHLD9nmrVSfzbpJHjrDglhI6unQdwQ 2YJ7wnqOiHjI8wJ8cLzHkEfNqyQWIy9wt1oOQYZEuePBxqejrZsxFj7qb02QBWExQ1hj 0+HlkHs9b58Pvut1QSeJgO43YEovIKrSV8E2jKXeqoeU/WQuwJJ+h0dLf1yNkfiWCcKg 2ERg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=byoamTDb; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j14-20020a056830014e00b0068be3740c37si9600612otp.41.2023.04.17.07.24.10; Mon, 17 Apr 2023 07:24:23 -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=@intel.com header.s=Intel header.b=byoamTDb; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229959AbjDQOTV (ORCPT + 99 others); Mon, 17 Apr 2023 10:19:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbjDQOTU (ORCPT ); Mon, 17 Apr 2023 10:19:20 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66EE9AD; Mon, 17 Apr 2023 07:19:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681741153; x=1713277153; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6+IWgC8Bon0J7vBYLs+uH4i2nmSl2ZjVNXYdDXAbBmE=; b=byoamTDbMe4+qcO5xToT+V/iMaYyDig5xFOEiqttnjz/sJxdGtssrUuc iJX7bnBc1yGbkKSO7My4HhqvuWKidnDKczzmqHgnU6zswfgSdWxWgRC1S Hybp2l+72tYmbfYbONzew/hGHBxhvmMVyNvFrQDvIshuT9QKn5IK391/P Aw/SqnEhemAsoA7XxVkK3+TTE2SbJTsvCn7pM0ieRTfrN0a4WFIjpOR1u Zb8VNBE0QiUkF3AjILtJKR+E89EupwCG7QWUjiVbJqumg9/Q5iQdhT/q/ Q5dhEueQMzYkhK/+uQJJQoANZYnKa5dmyYNKPfsvI/3TQ1P6m2/bMsaw+ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10683"; a="372779493" X-IronPort-AV: E=Sophos;i="5.99,204,1677571200"; d="scan'208";a="372779493" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2023 07:17:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10683"; a="723260296" X-IronPort-AV: E=Sophos;i="5.99,204,1677571200"; d="scan'208";a="723260296" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 17 Apr 2023 07:17:48 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1poPfv-000cRJ-1C; Mon, 17 Apr 2023 14:17:47 +0000 Date: Mon, 17 Apr 2023 22:16:52 +0800 From: kernel test robot To: Oleksij Rempel , "David S. Miller" , Andrew Lunn , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , Woojung Huh , Arun Ramadoss Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org, Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, UNGLinuxDriver@microchip.com Subject: Re: [PATCH net-next v1 2/2] net: dsa: microchip: Add partial ACL support for ksz9477 switches Message-ID: <202304172250.WOCLE8lZ-lkp@intel.com> References: <20230411172456.3003003-3-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230411172456.3003003-3-o.rempel@pengutronix.de> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 Hi Oleksij, kernel test robot noticed the following build warnings: [auto build test WARNING on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/Oleksij-Rempel/net-dsa-microchip-rework-ksz_prmw8/20230412-012709 patch link: https://lore.kernel.org/r/20230411172456.3003003-3-o.rempel%40pengutronix.de patch subject: [PATCH net-next v1 2/2] net: dsa: microchip: Add partial ACL support for ksz9477 switches config: x86_64-randconfig-a011-20230417 (https://download.01.org/0day-ci/archive/20230417/202304172250.WOCLE8lZ-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/a25d395c637a31cbf5c2188bf8f8475d4bdeeee8 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Oleksij-Rempel/net-dsa-microchip-rework-ksz_prmw8/20230412-012709 git checkout a25d395c637a31cbf5c2188bf8f8475d4bdeeee8 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/dsa/microchip/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304172250.WOCLE8lZ-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/net/dsa/microchip/ksz9477_acl.c:622:27: warning: no previous prototype for function 'ksz9477_acl_get_init_entry' [-Wmissing-prototypes] struct ksz9477_acl_entry *ksz9477_acl_get_init_entry(struct ksz_device *dev, ^ drivers/net/dsa/microchip/ksz9477_acl.c:622:1: note: declare 'static' if the function is not intended to be used outside of this translation unit struct ksz9477_acl_entry *ksz9477_acl_get_init_entry(struct ksz_device *dev, ^ static >> drivers/net/dsa/microchip/ksz9477_acl.c:887:28: warning: variable 'entry' set but not used [-Wunused-but-set-variable] struct ksz9477_acl_entry *entry; ^ 2 warnings generated. vim +/ksz9477_acl_get_init_entry +622 drivers/net/dsa/microchip/ksz9477_acl.c 609 610 /** 611 * ksz9477_acl_get_init_entry - Get a new uninitialized entry for a specified 612 * port on a ksz_device. 613 * @dev: The ksz_device instance. 614 * @port: The port number to get the uninitialized entry for. 615 * 616 * This function retrieves the next available ACL entry for the specified port, 617 * clears all access flags, and associates it with the current cookie. 618 * 619 * Returns: A pointer to the new uninitialized ACL entry. 620 */ 621 > 622 struct ksz9477_acl_entry *ksz9477_acl_get_init_entry(struct ksz_device *dev, 623 int port) 624 { 625 struct ksz9477_acl_priv *acl = dev->ports[port].acl_priv; 626 struct ksz9477_acl_entries *acles = &acl->acles; 627 struct ksz9477_acl_entry *entry; 628 629 entry = &acles->entries[acles->entries_count]; 630 entry->cookie = acl->current_cookie; 631 632 /* clear all access flags */ 633 entry->entry[KSZ9477_ACL_PORT_ACCESS_10] = 0; 634 entry->entry[KSZ9477_ACL_PORT_ACCESS_11] = 0; 635 636 return entry; 637 } 638 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests