Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2052239pxa; Mon, 3 Aug 2020 06:21:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyW9Ox33KcPC5FV2kzhTBk659yNjhE9TzdakFrP0mCa/BN9mHtsPxfxh5ImcVEX35rTgcqb X-Received: by 2002:a17:906:b1d0:: with SMTP id bv16mr3807734ejb.326.1596460863897; Mon, 03 Aug 2020 06:21:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596460863; cv=none; d=google.com; s=arc-20160816; b=PO0xMVKmxpZk7Rxheobgppg9XoDA0S6iCQr6JE0xHqxghH4lyiBMzLtFFFtjtlh1ne cr6XjAOKtgk4zCQIXC1dBJ/p3DmS1XbwtZTgedmbdl5ZNFRCbmDwlL5YYatYflvkZHhr EAZyc2RdKAZ4oK/EVEIHleCan4crtgcvdcJLFJx9YLB1Fijorm+cz3LeONaqS90r412/ 0HvjdInpg+qlStfQZNWNS0J/IHkmXfWaBFuaxPGjdTsAbB3SFUhVgG8P0pXbnrogXw+J 7Ivk+9X1TA3ORUD7CpIqg1UeD+Y6B2bdUIjxivALP1/C8F4qF2MpNEnctb0FBz2jW6lj 7wPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=3vJQDnAoDQMqx8QkspmJ/Tv5EV/ghK9Afn3dlGe+3Mg=; b=d999wlwnWc6TxTpft6mftEUZZsr9j+sDc1UHkgfwvVG2BMFxZhATBx4Ltb7xxHOGPY 5f41YL9ZxXhlFgyZFhrXpSStRAS3fv5y3vPd3Gpe4omZAyeVUszo17HY6W5RxZPEeJIn a51Q1W3ak3Jl0SNOQjGQg4pcHcAnLYcK4LwvhrpKyL0LH27fAjZOld98tIFnB0bwMdMb DRSNEURj3GQN0z72l7CiA8g0u2f4wGdprpTdc8VLsa+JggOVRlvpjhnrodUhD6UUFCWL uIVqe9DgrHthwyv7PV0aolD1BFxEzT6zQjWLh0e1EpgaZ0zV7MhiJx+BsiBwq+uSsj0Q O1gg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk23si10202286edb.261.2020.08.03.06.20.42; Mon, 03 Aug 2020 06:21:03 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726624AbgHCNUb (ORCPT + 99 others); Mon, 3 Aug 2020 09:20:31 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:8751 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725948AbgHCNUb (ORCPT ); Mon, 3 Aug 2020 09:20:31 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 3A3FB65EF7DEDF839AB2; Mon, 3 Aug 2020 21:20:27 +0800 (CST) Received: from localhost (10.174.179.108) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Mon, 3 Aug 2020 21:20:20 +0800 From: YueHaibing To: , , , CC: , , YueHaibing Subject: [PATCH net-next] fib: Fix undef compile warning Date: Mon, 3 Aug 2020 21:19:48 +0800 Message-ID: <20200803131948.41736-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.179.108] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org net/core/fib_rules.c:26:7: warning: "CONFIG_IP_MULTIPLE_TABLES" is not defined, evaluates to 0 [-Wundef] #elif CONFIG_IP_MULTIPLE_TABLES ^~~~~~~~~~~~~~~~~~~~~~~~~ Fixes: 8b66a6fd34f5 ("fib: fix another fib_rules_ops indirect call wrapper problem") Signed-off-by: YueHaibing --- net/core/fib_rules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c index a7a3f500a857..51678a528f85 100644 --- a/net/core/fib_rules.c +++ b/net/core/fib_rules.c @@ -23,7 +23,7 @@ #else #define INDIRECT_CALL_MT(f, f2, f1, ...) INDIRECT_CALL_1(f, f2, __VA_ARGS__) #endif -#elif CONFIG_IP_MULTIPLE_TABLES +#elif defined(CONFIG_IP_MULTIPLE_TABLES) #define INDIRECT_CALL_MT(f, f2, f1, ...) INDIRECT_CALL_1(f, f1, __VA_ARGS__) #else #define INDIRECT_CALL_MT(f, f2, f1, ...) f(__VA_ARGS__) -- 2.17.1