Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8698729ybi; Thu, 6 Jun 2019 17:55:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxxKd9KwJsIEW7t6BQ441TqtCxOjFePg+s9uev6l3nMMLZzi4pZpvqnWJB0ibm64nyV61lI X-Received: by 2002:a65:4307:: with SMTP id j7mr515641pgq.91.1559868939483; Thu, 06 Jun 2019 17:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559868939; cv=none; d=google.com; s=arc-20160816; b=bkyyCpcaypRWkFFjCebCAGKJXORB55/kmgjxQBCc7yd95xMWL7JkvU23dlxaMf5AK/ 9uDOrULAoc7g7B7nqdiikeL1I9nZGZca6o88DQ9z6uELvChzz0ntKvHmDilL72s0nNct +FCMfsE6VoLa89TgybjChCq81k3Iuf9Tao8XzAk6VWT2VOHad60gWnUIdPPq7dVyL/16 2cIZdWRDNCZyvQikAGG14B5uHs3b9c2+MIyPHf6R3lUsjHRI14T8u0+lTEBV5Xoawzj1 Ny7Re0qBFL8LeS4rrq3Vy7iiWjqzFMmFS/VqPSYSTJP653QTDqi/EXMEB/Qt6TgsZTtr gqkw== 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=jjpV/GVZC7/6NIkIkxAR62f8LfbTURZiuQDu/JwjMc4=; b=kYZOYVCpmICl9ulzp0O7Jwv+XlDDTW7N/3HWoP1w9RMAa4hwV+nm+yIjCE5QKnroEM IdUACkfTQp9Zmbc9FsC5k/7zTYxj5SqVMbzrCY8rOpGXV5oCiKX6nLOvoBCRuGdASWdX pZxq/Z5+y2exF9HTZTkVhrTlpqBtGu+/hsFf/Q0lpO9zne1p3ETc/KqpKpBsRuhtCKBx GR9y9EO9xkWUhACaO0TNPIW/q7xpEQFq53QZDf0cIHwZFaK4iCUru3M2pv0sM8zUt+n8 cjBE48/cnusTB/QRGtc2rbjEUAuKp7TkajUMrf+WgN7i0/l74Y9JzcEh9yci1ql0p235 6wEQ== 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 ch15si517190plb.316.2019.06.06.17.55.23; Thu, 06 Jun 2019 17:55:39 -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 S1728355AbfFGAZB (ORCPT + 99 others); Thu, 6 Jun 2019 20:25:01 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:33024 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728329AbfFGAY6 (ORCPT ); Thu, 6 Jun 2019 20:24:58 -0400 Received: by mail-lj1-f194.google.com with SMTP id v29so219354ljv.0 for ; Thu, 06 Jun 2019 17:24:57 -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=jjpV/GVZC7/6NIkIkxAR62f8LfbTURZiuQDu/JwjMc4=; b=ftO77Bu2IdirJOWIFYUrO8vXx/MtJsdRUYOnVAD7GbclfjJY7ff4AIrkhCdqwQmiDM EAXdYb8q9/7lB9AJYMXeNeyWUP2prQ965aohHk7mucpRFvjBHpXcmBhVJ+EwHFcKAn9o /G+naUNohEV1/buCDv83hCOOjK4P8BCgLOHA3RG95MCiYyLqVeOFG7OW2rFNLs9RQs/E FiIzRjYKUqeR6sQ1kjMDqDAr6XuQroC34mfWz4qglJiID3nupF6av3jqdpxvOulQzdj+ OlSapjScuBEb+H24qu0rgxeS5c0kNFwGdpbFGWDu8U6hTBuHT9BJBPAvS5hR7owakAZ6 VlfA== X-Gm-Message-State: APjAAAVYD6okJ9XgaR4SEqvz89xEbTSwFArePpRJlDHyr0tTw7rAfFo8 9H+Gf56lD6d8zq4FSyYuc+BBYsKV4X4UBUWTzrs9pQ== X-Received: by 2002:a2e:83ca:: with SMTP id s10mr22921626ljh.163.1559867096646; Thu, 06 Jun 2019 17:24:56 -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: <2b1e5628-cc36-5a33-9259-08100a01d579@infradead.org> From: Matteo Croce Date: Fri, 7 Jun 2019 02:24:20 +0200 Message-ID: Subject: Re: mmotm 2019-05-29-20-52 uploaded (mpls) +linux-next To: Randy Dunlap Cc: Andrew Morton , broonie@kernel.org, linux-fsdevel@vger.kernel.org, LKML , linux-mm@kvack.org, Linux Next Mailing List , mhocko@suse.cz, mm-commits@vger.kernel.org, Stephen Rothwell , "netdev@vger.kernel.org" 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 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