Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2182210pxa; Mon, 3 Aug 2020 09:24:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuX874l3jAbYkdXrIIwyh0YLO30cox/UXeKsPiF5srY4/fo91xH8ORaKmMK/Dv00zEvbWg X-Received: by 2002:a17:906:f0cc:: with SMTP id dk12mr16815239ejb.97.1596471877207; Mon, 03 Aug 2020 09:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596471877; cv=none; d=google.com; s=arc-20160816; b=tEVvYi38of140GpQqclKi6gcZIU2ULIYiXtG4mXZya/QSBjr4mdl/rfW8IuXFWyAzI v4e/x4JDe9yajbaMnxegpdTR+60AgbhIK0bkj7kzBWveuClYjCbVJDN6+eJ5nMLZQVLw VrvI4EUx74CjpqZgSziBz7M9NaE/32S8PuB6IdOthKZzDv1eawCjzV80C3emjD5B1fw3 Zj+phOjQ5RWPmYSCIsFZ1VCn69aWqt3p/0OcGxHmiU1QwgpVbYMS0OfEpa/a6GGr5id4 EWOuB44Md2eZmJYrTRMT88d9CBbLpbIr+hBJooy98E7Xy1m0oKqy1Q6klsiyy9k7Fdho c0TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=JGx/+3R80pqTONt1Ak8Jv0FtZ9RnXmGr5UYQh/nJfgc=; b=wE8m7cu+4XHfXkJ6qD/LVM9LVhAfNyEA11eGr4f+QcazClCOUAUWVTuQVDas5OrIx/ y/I/euM+mxaG36N0FFID8c07EqrQVQGdgZohUogRbjEWQrYRzXKDxahKJXj/9FxmvN3l jbkyq08IZR7y/pnsG5PK0meZZuILsIjJ253y/hD1X9zEES4L+FxI/T1Ih9XZ2mG1vBGK Yk2KKb080qZvvOJ3ZHt29fBrVnvhc3mYdeJ1MpRJygH4kEawtLCb83p+RZQsvWBe6o0t aBm2eB+qjtjJbBSmxAuQ4POheje2y4ODp8RAp6Cre8SYFZcqK27BLcjh59hPgh2Bc2Bl FUXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=oz4WmDl9; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mb9si10415381ejb.536.2020.08.03.09.24.14; Mon, 03 Aug 2020 09:24:37 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=oz4WmDl9; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728361AbgHCQV7 (ORCPT + 99 others); Mon, 3 Aug 2020 12:21:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726239AbgHCQV6 (ORCPT ); Mon, 3 Aug 2020 12:21:58 -0400 Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73EB6C06174A for ; Mon, 3 Aug 2020 09:21:58 -0700 (PDT) Received: by mail-qt1-x843.google.com with SMTP id t23so25505540qto.3 for ; Mon, 03 Aug 2020 09:21:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JGx/+3R80pqTONt1Ak8Jv0FtZ9RnXmGr5UYQh/nJfgc=; b=oz4WmDl9Oz190893VnZkDCS4wOQS4shbES/m+6CcrPuw3fjI5AZstk82q//PF40BNs 4k/NwG7css1MZBhTXvQLh28/2o4aIBgNGfTwdKMMODCiZpc7IpbfzYjsIWIDuyh3BnrX 5O2V+Rki7eiEbpxTeoaC2Z4o3CZ2dwh14f07LxmDxYRFHazxX1nh6pJ9Ju4S697eKnBO HpXs3evqkVI1kVv7mfTOrYpMyuxY/jwcftllH0I7E9L3ICCAztypg4i69Mnuejqu8Bta lbFrqBrnWGuY86UlHOb3KsWJ0Ai8TVnVOSVk+jf15UsoCQWwfqJvEtREw/5Z5xS5fZz8 QPIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JGx/+3R80pqTONt1Ak8Jv0FtZ9RnXmGr5UYQh/nJfgc=; b=j5ZI9pfhieEn9CFZpc4L9TtIXpCfGEaoG6nhQaD3qyEk0WJBdiF9ZagCx4MLr7aIdh myHdzd/N6oAAKtPuVjgdyi+5lM/Xl3Rcy008oyqCvu2NMnJ6XjZTLWWG0+s7L08wB2Qb gGCPgWAACJKfYJRrUTakcNpLDCgBFI5PPWDsk1Mv+b6C2P9N741uoJ7gKl0SIgQRMh1p Z2Zo+ic//ea5ejmWCniC9R6V6kBUm7dbWfD0BRbBo1m2oxAq/vKmrPVEbIVj5ipnfVFT Gj3jNl8ntLGy5Pebft+/+d2BverwYDcZlZCvPhLviwfovho/SaPUzUWK2zgICGbLldpd qScA== X-Gm-Message-State: AOAM53068pdD8g2HpmcZXOSJ8/akHaskjpmzMyvexssVgMHsTwcww27v N+uHlIK7e/HPSdwlK2KadfTN2hHyORHh1c7UxWfsdg== X-Received: by 2002:ac8:110e:: with SMTP id c14mr17167408qtj.71.1596471717331; Mon, 03 Aug 2020 09:21:57 -0700 (PDT) MIME-Version: 1.0 References: <20200803131948.41736-1-yuehaibing@huawei.com> In-Reply-To: <20200803131948.41736-1-yuehaibing@huawei.com> From: Brian Vazquez Date: Mon, 3 Aug 2020 09:21:45 -0700 Message-ID: Subject: Re: [PATCH net-next] fib: Fix undef compile warning To: YueHaibing Cc: "David S . Miller" , kuba@kernel.org, Randy Dunlap , Linux NetDev , open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Acked-By: Brian Vazquez On Mon, Aug 3, 2020 at 6:20 AM YueHaibing wrote: > > 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 > >