Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10825823imu; Mon, 31 Dec 2018 07:27:58 -0800 (PST) X-Google-Smtp-Source: ALg8bN505n4KIJ1bVWTsA9auRgLpfBXgeURTJghPRfyDuxT68WAZtERayPLtY6UG0ZDtJEIEZeW3 X-Received: by 2002:a62:34c6:: with SMTP id b189mr39302668pfa.229.1546270078432; Mon, 31 Dec 2018 07:27:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546270078; cv=none; d=google.com; s=arc-20160816; b=HHtpE8TE0mo/In8Kx9MEKVDdH6g7iTvjq16P76A1N/D3hkgOtzfY/VXiHJWAVV3g/F 0VciSVgG3vRW+0/JjB8IW0FelLvuqCgrya7qde26vYwdDAlzgqkIF7fov7XVB9EhQwxh G9IG/vgf51uqFw1PRl042kPX9x9e/+O49KAX8kZUPmpa8f+GTM5+MppgjFn80MNfSL0O /CJgf+gUdH5+bbNilqnpeAL9TcThAGIfRsa0mqPHJKnioMqT3ZKnl+Tqw3CA6/YY/0Sw nDjBJwZHxgF576E/FIMheEIn0GQn6cU7WlhuUGb5MDN0iEDvUJKJ9OppElDwTqMtjofe +Aww== 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:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=iHLT3iSFzH9m35HKRNdlrOocROgqGcL0yt3yQ84Hmkw=; b=XkKgFknP7qU8l9EgSaL0yxppakqfUue5qCN1e97vYMPbq+v5Aj1BKunLb1V+Lz/p7f sX8QRYPohrP4O7TWrxOFKZch7n/2t24L2rS+JI4MDVWDAbWPJkegtmMmpTUzpss3fDle oWqiknZaOtimIeCYmlC+Ol5QPtMqLsCFNYnwPFJMGhNSbpNPl38RpevPyhLTdzHDvLbs P8ux/tu9ZDLq0eMKexvZ3tCFTq/mCFS2q3eYpPA7t4K9sir8Ionl591xaGrkle6ekhqI rS4SRJJ7eETleX48mALGMG7c0l1ot/102dSSBR6JbryMkTqbFdmAu0Ln3n8YIv0aN6T0 kipw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=BxjUa5Q4; 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 go15si44166412plb.219.2018.12.31.07.27.17; Mon, 31 Dec 2018 07:27:58 -0800 (PST) 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=fail header.i=@nbd.name header.s=20160729 header.b=BxjUa5Q4; 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 S1727064AbeLaOl2 (ORCPT + 99 others); Mon, 31 Dec 2018 09:41:28 -0500 Received: from nbd.name ([46.4.11.11]:39040 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725899AbeLaOl2 (ORCPT ); Mon, 31 Dec 2018 09:41:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=iHLT3iSFzH9m35HKRNdlrOocROgqGcL0yt3yQ84Hmkw=; b=BxjUa5Q4BLk6FRoxQb+l1zymM+ As0GubXoSx9OuFrFkZsMEptoqPCuDUAsS2DLQYGSsang3KBmNCmYgNiJ9Ij+U54d4bWIMAKIvLX0t illyjSYXGcHdOSMFPuv/axqEbOMQWeRzHP0RUZYZN+U0uc/tbgeKCKgBvmJQ9xLL3/eI=; Subject: Re: [PATCH] mt76: make const array 'data' static, shrinks object size To: Colin King , Lorenzo Bianconi , Kalle Valo , "David S . Miller" , Matthias Brugger , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20181230132640.6916-1-colin.king@canonical.com> From: Felix Fietkau Openpgp: preference=signencrypt Autocrypt: addr=nbd@nbd.name; prefer-encrypt=mutual; keydata= mQGiBEah5CcRBADIY7pu4LIv3jBlyQ/2u87iIZGe6f0f8pyB4UjzfJNXhJb8JylYYRzIOSxh ExKsdLCnJqsG1PY1mqTtoG8sONpwsHr2oJ4itjcGHfn5NJSUGTbtbbxLro13tHkGFCoCr4Z5 Pv+XRgiANSpYlIigiMbOkide6wbggQK32tC20QxUIwCg4k6dtV/4kwEeiOUfErq00TVqIiEE AKcUi4taOuh/PQWx/Ujjl/P1LfJXqLKRPa8PwD4j2yjoc9l+7LptSxJThL9KSu6gtXQjcoR2 vCK0OeYJhgO4kYMI78h1TSaxmtImEAnjFPYJYVsxrhay92jisYc7z5R/76AaELfF6RCjjGeP wdalulG+erWju710Bif7E1yjYVWeA/9Wd1lsOmx6uwwYgNqoFtcAunDaMKi9xVQW18FsUusM TdRvTZLBpoUAy+MajAL+R73TwLq3LnKpIcCwftyQXK5pEDKq57OhxJVv1Q8XkA9Dn1SBOjNB l25vJDFAT9ntp9THeDD2fv15yk4EKpWhu4H00/YX8KkhFsrtUs69+vZQwbQcRmVsaXggRmll dGthdSA8bmJkQG5iZC5uYW1lPohgBBMRAgAgBQJGoeQnAhsjBgsJCAcDAgQVAggDBBYCAwEC HgECF4AACgkQ130UHQKnbvXsvgCgjsAIIOsY7xZ8VcSm7NABpi91yTMAniMMmH7FRenEAYMa VrwYTIThkTlQuQINBEah5FQQCACMIep/hTzgPZ9HbCTKm9xN4bZX0JjrqjFem1Nxf3MBM5vN CYGBn8F4sGIzPmLhl4xFeq3k5irVg/YvxSDbQN6NJv8o+tP6zsMeWX2JjtV0P4aDIN1pK2/w VxcicArw0VYdv2ZCarccFBgH2a6GjswqlCqVM3gNIMI8ikzenKcso8YErGGiKYeMEZLwHaxE Y7mTPuOTrWL8uWWRL5mVjhZEVvDez6em/OYvzBwbkhImrryF29e3Po2cfY2n7EKjjr3/141K DHBBdgXlPNfDwROnA5ugjjEBjwkwBQqPpDA7AYPvpHh5vLbZnVGu5CwG7NAsrb2isRmjYoqk wu++3117AAMFB/9S0Sj7qFFQcD4laADVsabTpNNpaV4wAgVTRHKV/kC9luItzwDnUcsZUPdQ f3MueRJ3jIHU0UmRBG3uQftqbZJj3ikhnfvyLmkCNe+/hXhPu9sGvXyi2D4vszICvc1KL4RD aLSrOsROx22eZ26KqcW4ny7+va2FnvjsZgI8h4sDmaLzKczVRIiLITiMpLFEU/VoSv0m1F4B FtRgoiyjFzigWG0MsTdAN6FJzGh4mWWGIlE7o5JraNhnTd+yTUIPtw3ym6l8P+gbvfoZida0 TspgwBWLnXQvP5EDvlZnNaKa/3oBes6z0QdaSOwZCRA3QSLHBwtgUsrT6RxRSweLrcabiEkE GBECAAkFAkah5FQCGwwACgkQ130UHQKnbvW2GgCfTKx80VvCR/PvsUlrvdOLsIgeRGAAn1ee RjMaxwtSdaCKMw3j33ZbsWS4 Message-ID: <453b64e0-220e-69a8-c855-51903707a88b@nbd.name> Date: Mon, 31 Dec 2018 15:41:21 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20181230132640.6916-1-colin.king@canonical.com> Content-Type: text/plain; charset=utf-8 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 2018-12-30 14:26, Colin King wrote: > From: Colin Ian King > > Don't populate the const array 'data' on the stack but instead > make it static. Makes the object code smaller by 78 bytes: > > Before: > text data bss dec hex filename > 5438 1080 0 6518 1976 mediatek/mt76/mt76x2/usb_mcu.o > > After: > text data bss dec hex filename > 5296 1144 0 6440 1928 mediatek/mt76/mt76x2/usb_mcu.o > > (gcc version 8.2.0 x86_64) > > Signed-off-by: Colin Ian King Applied, thanks. - Felix