Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3123925ybi; Mon, 10 Jun 2019 04:58:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXAOTNTXtyP/45acn3nxzpMOS19W8YBia6sCFxnbYTstlj+twa9QciIPKne+4Lg4aM+HDe X-Received: by 2002:a63:6157:: with SMTP id v84mr15126187pgb.36.1560167898807; Mon, 10 Jun 2019 04:58:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560167898; cv=none; d=google.com; s=arc-20160816; b=ab2JGpzaRzGbL/Bxk5TOkOOP9D6xWkJSL5ZWVYmpOU8qASX5k4CNwg+I+sqdofedjo n76TM1ErgzJiRnRLAKtShfyDvUYZqitEFP8JNw2iiLylJwxttV/k0FrME0LESD1UBgtW WdInKgnef4W+F1hvWREbbmsN16DV1vtvpTHhaKjCMOUrVKM1rBQ0zii/qTy7qOw5GHD4 M08FThH1xMFKaWdeGQqgQPeGix5KPuStsXDBtJTRb5zXmTVHNapKcaSKWL+Gq6h2to/5 aQrjyXhy23em2GXLsKG8c+3wOY7Tbq3zewUCzMxv7GuIRAAldagHsMcWnq99ipcYr5cj plew== 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; bh=C+DUG5gvBn9h1kdmvK6lAg2KMQY86nV/4xNYIFvnPfM=; b=rUfribnNdK3xtFN28C+V1hNarwpowhkc8bAhLTEzQv9bqOC+6WmN7aqxfY65Mlc4YP YmEQbi3sXGOiqPaUghUFwIkudjnm0uV+wEPWeK4y+7FcBdEENlOxXgs0jAVUGCUS/J3s qTC8k6Vr4tf35bbkUSF0CNHcVRAv6OQBuls3rkwqernizAW96X9t3UYIqfVhrgW6lzyF /77jegG0OQ62bJ0zr5fGKgUiZQuSlctIlPeTiMOS5Y4RRpCgbudggp9DRPnqXH9DH+c4 Zz5cLco/3ZhbsM0KlKahSIQz+W+NX4GhqZAzNOdDx9Qcf3uu4RoLQkjeSekaWm0A1v1a O2JA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si4202969pjp.21.2019.06.10.04.58.02; Mon, 10 Jun 2019 04:58:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389221AbfFJLWf (ORCPT + 99 others); Mon, 10 Jun 2019 07:22:35 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:34372 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388611AbfFJLWe (ORCPT ); Mon, 10 Jun 2019 07:22:34 -0400 Received: by mail-lf1-f67.google.com with SMTP id y198so6361933lfa.1 for ; Mon, 10 Jun 2019 04:22:33 -0700 (PDT) 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=C+DUG5gvBn9h1kdmvK6lAg2KMQY86nV/4xNYIFvnPfM=; b=BedlcJqkwtAZTjtIpbImk1b58KIRd4ykYlxiuEGW8l4qE3KLQwz07HFb2rfQGDU8Gp QtN4VM5xRXNOybOdqKp23Y9QKXXF3vcbSIF7hwBcgNqo4Fm/XSEk6HeKX/u3nSvG0J/q v3YNL0yEC5xRkk0NgjQj+HcpDx3CEEqZgsAbgAgoSxeIBtzB5nlEJXaYiXUrIMozKg0n 0nJ8NGgsK5MwaSIKnckpuXO5j6iOO+LeXQ4kjo3P6GYtFQCPEUVo3CvuOqTuVl8eNJng YG2b/Q49dT4HJi73hrPaeCaogChTawtKOSstUpBufbZ0mu09n1fYbXeF5elS+3gI6ezB 9nEQ== X-Gm-Message-State: APjAAAWzjF+wg9HDPPHgaCP2QR7CV0Lb6FvrpGoJhrqFgc9/TG+bmAGQ RdO3SxEsqPNMqFI1y3Oc00hS9FWbW75Tw7NuWap1Og== X-Received: by 2002:ac2:4466:: with SMTP id y6mr7220999lfl.0.1560165752377; Mon, 10 Jun 2019 04:22:32 -0700 (PDT) MIME-Version: 1.0 References: <20190530035339.hJr4GziBa%akpm@linux-foundation.org> <5a9fc4e5-eb29-99a9-dff6-2d4fdd5eb748@infradead.org> <2b1e5628-cc36-5a33-9259-08100a01d579@infradead.org> In-Reply-To: From: Matteo Croce Date: Mon, 10 Jun 2019 13:21:56 +0200 Message-ID: Subject: Re: mmotm 2019-05-29-20-52 uploaded (mpls) +linux-next To: Randy Dunlap Cc: Andrew Morton , broonie@kernel.org, LKML , Linux Next Mailing List , mhocko@suse.cz, mm-commits@vger.kernel.org, Stephen Rothwell 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 On Fri, Jun 7, 2019 at 2:24 AM Matteo Croce wrote: > > On Wed, Jun 5, 2019 at 12:29 AM Randy Dunlap wrote: > > > > On 5/30/19 3:28 PM, Randy Dunlap wrote: > > > On 5/29/19 8:53 PM, akpm@linux-foundation.org wrote: > > >> The mm-of-the-moment snapshot 2019-05-29-20-52 has been uploaded to > > >> > > >> http://www.ozlabs.org/~akpm/mmotm/ > > >> > > >> mmotm-readme.txt says > > >> > > >> README for mm-of-the-moment: > > >> > > >> http://www.ozlabs.org/~akpm/mmotm/ > > >> > > >> This is a snapshot of my -mm patch queue. Uploaded at random hopefully > > >> more than once a week. > > >> > > >> You will need quilt to apply these patches to the latest Linus release (5.x > > >> or 5.x-rcY). The series file is in broken-out.tar.gz and is duplicated in > > >> http://ozlabs.org/~akpm/mmotm/series > > >> > > >> The file broken-out.tar.gz contains two datestamp files: .DATE and > > >> .DATE-yyyy-mm-dd-hh-mm-ss. Both contain the string yyyy-mm-dd-hh-mm-ss, > > >> followed by the base kernel version against which this patch series is to > > >> be applied. > > >> > > > > > > on i386 or x86_64: > > > > > > when CONFIG_PROC_SYSCTL is not set/enabled: > > > > > > ld: net/mpls/af_mpls.o: in function `mpls_platform_labels': > > > af_mpls.c:(.text+0x162a): undefined reference to `sysctl_vals' > > > ld: net/mpls/af_mpls.o:(.rodata+0x830): undefined reference to `sysctl_vals' > > > ld: net/mpls/af_mpls.o:(.rodata+0x838): undefined reference to `sysctl_vals' > > > ld: net/mpls/af_mpls.o:(.rodata+0x870): undefined reference to `sysctl_vals' > > > > > > > Hi, > > This now happens in linux-next 20190604. > > > > > > -- > > ~Randy > > Hi, > I've just sent a patch to fix it. > > It seems that there is a lot of sysctl related code is built > regardless of the CONFIG_SYSCTL value, but produces a build error only > with my patch because I add a reference to sysctl_vals which is in > kernel/sysctl.c. > > And it seems also that the compiler is unable to optimize out the > unused code, which gets somehow in the final binary: > > $ grep PROC_SYSCTL .config > # CONFIG_PROC_SYSCTL is not set > $ readelf vmlinux -x .rodata |grep -A 2 platform_lab > 0xffffffff81b09180 2e630070 6c617466 6f726d5f 6c616265 .c.platform_labe > 0xffffffff81b09190 6c730069 705f7474 6c5f7072 6f706167 ls.ip_ttl_propag > 0xffffffff81b091a0 61746500 64656661 756c745f 74746c00 ate.default_ttl. > > If the purpose of disabling sysctl is to save space, probably this > code and definitions should all go under an #ifdef > > Regards, > -- > Matteo Croce > per aspera ad upstream A proper fix was just merged in davem/net.git commit c1a9d65954c68e13a6adc0225b0d38188fff68ca Author: Matteo Croce Date: Sat Jun 8 14:50:19 2019 +0200 mpls: fix af_mpls dependencies Regards, -- Matteo Croce per aspera ad upstream