Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_PASS,URIBL_BLOCKED, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78080C43381 for ; Sat, 23 Mar 2019 08:35:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4DC9B218D4 for ; Sat, 23 Mar 2019 08:35:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726093AbfCWIfw (ORCPT ); Sat, 23 Mar 2019 04:35:52 -0400 Received: from mga14.intel.com ([192.55.52.115]:22371 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725909AbfCWIfv (ORCPT ); Sat, 23 Mar 2019 04:35:51 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Mar 2019 01:35:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,256,1549958400"; d="scan'208";a="285212741" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 23 Mar 2019 01:35:49 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1h7c85-0003GQ-DC; Sat, 23 Mar 2019 16:35:49 +0800 Date: Sat, 23 Mar 2019 16:35:45 +0800 From: kbuild test robot To: Yi-Hung Wei Cc: kbuild-all@01.org, netdev@vger.kernel.org, Yi-Hung Wei , Pravin Shelar Subject: Re: [PATCH net-next 2/2] openvswitch: Add timeout support to ct action Message-ID: <201903231610.JKqtc21s%lkp@intel.com> References: <1553116295-16359-2-git-send-email-yihung.wei@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1553116295-16359-2-git-send-email-yihung.wei@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi Yi-Hung, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Yi-Hung-Wei/netfilter-Export-nf_ct_destroy_timeout/20190323-094843 reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' sparse warnings: (new ones prefixed by >>) net//openvswitch/conntrack.c:1854:25: sparse: undefined identifier 'xt_ct_destroy_timeout' >> net//openvswitch/conntrack.c:1154:28: sparse: incompatible types in comparison expression (different address spaces) net//openvswitch/conntrack.c:1188:23: sparse: incompatible types in comparison expression (different address spaces) include/linux/slab.h:664:13: sparse: undefined identifier '__builtin_mul_overflow' >> net//openvswitch/conntrack.c:1854:46: sparse: call with no type! include/linux/slab.h:664:13: sparse: call with no type! vim +1154 net//openvswitch/conntrack.c 1143 1144 static void ovs_ct_add_timeout(struct net *net, struct nf_conn *ct, 1145 const char *timeout_name, u16 l3num, u8 l4num) 1146 { 1147 #ifdef CONFIG_NF_CONNTRACK_TIMEOUT 1148 typeof(nf_ct_timeout_find_get_hook) timeout_find_get; 1149 typeof(nf_ct_timeout_put_hook) timeout_put; 1150 struct nf_ct_timeout *timeout; 1151 struct nf_conn_timeout *timeout_ext; 1152 1153 rcu_read_lock(); > 1154 timeout_find_get = rcu_dereference(nf_ct_timeout_find_get_hook); 1155 if (!timeout_find_get) { 1156 net_info_ratelimited("Timeout policy base is empty"); 1157 goto out; 1158 } 1159 1160 timeout = timeout_find_get(net, timeout_name); 1161 if (!timeout) { 1162 net_info_ratelimited("No such timeout policy \"%s\"\n", 1163 timeout_name); 1164 goto out; 1165 } 1166 1167 if (timeout->l3num != l3num) { 1168 net_info_ratelimited("Timeout policy `%s' can only be used by " 1169 "L3 protocol number %d\n", timeout_name, 1170 timeout->l3num); 1171 goto err_put_timeout; 1172 } 1173 1174 if (timeout->l4proto->l4proto != l4num) { 1175 net_info_ratelimited("Timeout policy `%s' can only be used by " 1176 "L4 protocol number %d\n", timeout_name, 1177 timeout->l4proto->l4proto); 1178 goto err_put_timeout; 1179 } 1180 1181 timeout_ext = nf_ct_timeout_ext_add(ct, timeout, GFP_ATOMIC); 1182 if (!timeout_ext) 1183 goto err_put_timeout; 1184 1185 goto out; 1186 1187 err_put_timeout: 1188 timeout_put = rcu_dereference(nf_ct_timeout_put_hook); 1189 if (timeout_put) 1190 timeout_put(timeout); 1191 out: 1192 rcu_read_unlock(); 1193 return; 1194 #endif 1195 } 1196 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation