Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2797592ybg; Thu, 24 Oct 2019 15:33:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMNy/K8d/f/PtVtls3LR1DGLH8pCyGtbu6ioWVQ5pJND6nzlMlwykCTebYeSF6gOCaWBtD X-Received: by 2002:a17:906:4d95:: with SMTP id s21mr447643eju.175.1571956403606; Thu, 24 Oct 2019 15:33:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571956403; cv=none; d=google.com; s=arc-20160816; b=jzt7N/6GhANU3dUs1qcBKCMMO03BQnLN1LtCodUczpL+DAsONSXims4yovis4nkhBw 06UlFK3HX61j3Gkqek6APH5hRHcJq+d/ivK+LBQ8HCRTVpDN/5Q4yq8fMTEfy4Li+y1X pTvg4p5Iv+vDcVhzqJA8zlcYR+elOS/OXFPKvDL/zkYGeHLYxt9FUzI0hRU1ISNDJX8c YJ61tg66CE+o4q++eioyuaD2ZcM+oEnhSAx1nA9k2+VvIc+t4RkdCPmJQXJ0WplEIGRk 368h7nQnQ9nUkXTqe+iuB60CWbcV4Plj9uVXUQkcAeo7pF3yS9xeWm+612caLbIVMyi6 6IKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=k3oPwwXbd7aVpRc6mBG49c0derbL+ABsS83WbajBnnw=; b=rnJOlSNKg6TKgL+ryGZIQbpguH7rmSa9ebWdgSp+T/5r1vUNDPE0rRhWN13du4Zlqh PbeS3aBh6TwcncjCbEW94L4p8EXiKBq45CX3AmsqeLB3z17RtkAMIl1GY8uUI04RUsHj Pgan4RXYJbNV7as/AaLMtgMtzmZ87L+QXUKJFzxZ8noeGx2QEW2/KPK+UTUDxJykUnMB vYNAq2eoAlLYcYSZzmuFxPNLBLWNNZqplDVq+XB5NFYtZV0tpOCcDTCXZinNluSY3g4U 1HOZc/lHtKE5QTGYboZv7ZFIAai/fzEFiKKmTey9pQP7yDUR/WUNnOXvttvXQ3654Vbb IMlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=bzZWVk1x; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gf5si64371ejb.324.2019.10.24.15.32.59; Thu, 24 Oct 2019 15:33:23 -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; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=bzZWVk1x; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733188AbfJXH5G (ORCPT + 99 others); Thu, 24 Oct 2019 03:57:06 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:41426 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408770AbfJXH5F (ORCPT ); Thu, 24 Oct 2019 03:57:05 -0400 Received: by mail-lf1-f65.google.com with SMTP id x4so12011807lfn.8 for ; Thu, 24 Oct 2019 00:57:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=k3oPwwXbd7aVpRc6mBG49c0derbL+ABsS83WbajBnnw=; b=bzZWVk1xf3C9Ge+H3fkjakaR/mYMcxx2L27X/iVa2ADAj8YO0NmKGyQENunfk67bSo A/Im4Lh6qWQl5euFpS1xIDgwzN1hBwLC6m3nD4Ra9JQaXHtEY8zHvRjrexwE3tFOS4QE zrI7roAbGySgX/PGnKZNHY7qZ6M6BwFbTLwec= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=k3oPwwXbd7aVpRc6mBG49c0derbL+ABsS83WbajBnnw=; b=NMCbx0f+2biAqOyKhtUb2DT5PA09Votn/qCh8oFgv5H5PnY7hy+vKowbzQ8Qi3fmTO ue9IgAtB2gqCPcF7oVJ8lKZ2F7YcsOSWmAOyPsOE8FUpBDvVqDmTK4zvH9qyud6ZAgL4 H5SiHtDXxTAFGDMtu19yqjWf0LhAph/hakNinD4HiGptf6NyMaE+RUqjYgVIhSE0Ti1Z YuCTyS2qqHGO0RT/xNnnboRgk8NZNUsuDJik7KxV3UubR1IiIAMDY+xK1MZvOPN9yjg+ oHwvr8X92LHt2lE4tQ0UsePXEwv1rOB4HEWmnLDb0L5ebCzlHhBiKeWEHzq9zs2w5mJg mSJw== X-Gm-Message-State: APjAAAXnJ08hyLJ82ApfHp77y/y/tn/43vABvszoaM6thZOl6UPiuIih RBkG+/VxTyvyLUAlX0j6YrfPfg== X-Received: by 2002:ac2:5ec2:: with SMTP id d2mr9235070lfq.112.1571903822235; Thu, 24 Oct 2019 00:57:02 -0700 (PDT) Received: from [172.16.11.28] ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id e8sm8739712ljf.1.2019.10.24.00.57.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Oct 2019 00:57:01 -0700 (PDT) Subject: Re: [PATCH v4] string-choice: add yesno(), onoff(), enableddisabled(), plural() helpers To: Andrew Morton , Jani Nikula Cc: linux-kernel@vger.kernel.org, Joonas Lahtinen , Rodrigo Vivi , intel-gfx@lists.freedesktop.org, Vishal Kulkarni , netdev@vger.kernel.org, Greg Kroah-Hartman , linux-usb@vger.kernel.org, Julia Lawall References: <20191023131308.9420-1-jani.nikula@intel.com> <20191023155619.43e0013f0c8c673a5c508c1e@linux-foundation.org> <18589470-c428-f4c8-6e3e-c8cfed3ad6e0@rasmusvillemoes.dk> From: Rasmus Villemoes Message-ID: <26bc9c97-363b-2a07-8338-e3fdc576ce68@rasmusvillemoes.dk> Date: Thu, 24 Oct 2019 09:57:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <18589470-c428-f4c8-6e3e-c8cfed3ad6e0@rasmusvillemoes.dk> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/10/2019 09.40, Rasmus Villemoes wrote: > column. Maybe your compiler doesn't do string literal merging (since the > linker does it anyway), so your .rodata.str1.1 might contain several > copies of "yes" and "no", but they shouldn't really be counted. Sorry, that's of course nonsense - the strings only appear once in the TU (inside the static inline function), so gcc must treat them all as the same object - as opposed to the case where the implementation was #define yesno(x) ((x) ? "yes" : "no") So that can't explain why you saw a smaller text segment using the OOL version. Rasmus