Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp501960pxb; Thu, 5 Nov 2020 05:59:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJws92Fq72KpoQ3LcfQLrwKcDGkypQRJwevNI1XG0isNX01UYsmoId7+K02qPyh5u7r6w1+f X-Received: by 2002:aa7:da81:: with SMTP id q1mr2675510eds.14.1604584786200; Thu, 05 Nov 2020 05:59:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604584786; cv=none; d=google.com; s=arc-20160816; b=IcqKi/7ClTgzAWp1jzih07Pf4jLnHaBgr4QdTb6AnCQ8hXfAS90FQrVCm0+Al+PIp4 GdwEH3p0K6nyJkJlApXAr+gQcLFYpl+ALI8XTzQiEaJs5dlvU60hBkk2I8O1DgJfGq0R m0GE15mFgOzjvKkZTCpHOK8Ng65mNBrkiMXuDYLNYkhKnTWEAQ1cu1WDyS39d9j3e8CB WiXkD5YrEmTri+S0rmTKZ7nmXwX8N5ibt6/27mgsyhzIO81ML2+OrL3zESLcZQ9VLEby kZZ8Q0SxkbEEAqqwozPbMQDWQFDKSws+ys6VyDWSZYoZfvdytt9T5lqWP4/B5nO/vURs Bmmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hI0UzcPlzM3Z+TT8BLCsTb4B4PaVfW/TF8pw2jZ+3SI=; b=F4SWejAjrBYpCB8duhTA9S1BLejsas0IO4SO9lgvNUI2sbu1dB4k+ShPmrx5KJtWAF /lO5ZyDZCNhqA0BBmJe7Pu79ydRCZsjmcFxZdc8vLPrBzeR9wbyOAudjL+NUVRd4tg/x zljIf9mrsMI8Og6FvjVIvHcrW64M8YWN6F7353ZGcqnxIDR/zLVH4tM8cedMm7bCN+nR 4YpxuViZEDAKG+RY2PzSgM2QtP3NrrZENkMljwLNJdr6tgGfYNlSx3Q0tVxRn0kwtF+y veREPJLHQFJ4TidLIF38Vrd1tAE0IDnAFbvv+ZCihxhh3/p9rInJ8blcvaYBPSp/eI9A 4OsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rI4ESeXM; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t8si1190325edy.496.2020.11.05.05.59.23; Thu, 05 Nov 2020 05:59:46 -0800 (PST) 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=@linaro.org header.s=google header.b=rI4ESeXM; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730676AbgKEN55 (ORCPT + 99 others); Thu, 5 Nov 2020 08:57:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730660AbgKEN54 (ORCPT ); Thu, 5 Nov 2020 08:57:56 -0500 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41710C0613CF for ; Thu, 5 Nov 2020 05:57:56 -0800 (PST) Received: by mail-lf1-x143.google.com with SMTP id u18so2401941lfd.9 for ; Thu, 05 Nov 2020 05:57:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hI0UzcPlzM3Z+TT8BLCsTb4B4PaVfW/TF8pw2jZ+3SI=; b=rI4ESeXM81khgcgR6VhCZFZCkhrDyz3SIB12oAg7aevlhKQnfwxm9DRbitflnAvySF b1+dCx0m83TOzFMQGZwu7zNhPOmY3mmvUQhzRTdKxLNkVT7kcXUsbga9iaNUP94wqONn HcOpAPayUbys/sx7e+1QFzx1rG6ppvxwBQnsLb8WXkR0i+wuTc6bKp4xVgOzX+k4uMox gcQMpeuLqq5aD/5FfogyW5ppol6/4UXTiW39v/24AqNx2otBT+thZL6nOfGhJDC7YXLT 6XF/Eu4jZQ0GCf4aMXgOyA6B19+xP20CWGHGAj6oyWL+z5BNUpKQK26HmLXEAsMDKFOp Z46Q== 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=hI0UzcPlzM3Z+TT8BLCsTb4B4PaVfW/TF8pw2jZ+3SI=; b=aRVafxpKrnBHQD/qqKz573JtY9Tn9xuMyUhjTRgW6956GygiZnhF9yDSwmgReYbhc0 BpNe4RzgdQwn/3vKLWgBejuyilZbM/Bj6RO1EPiabJmirH6oz1Y7Ek9JlFlRbsBOdtJr ds/oa9ssotcLwGr0KNi1CwpwDy+nnxr6u2I9OzjY8NhLQ0EY/6CePinReA9cf0h+BEF4 mVfaFdqZAdtnCxM8EcFGlqK+SOaugvJFpBRrfkR2bx7U0bu7GQo18nDqnGdzBNghyt7w yYSAjpCcmLM+WE6Cs98I/4W2dlcxt6+5BGmVUtx55eMLABwxHQxM/aSzpuRFEbeWYb3b iDBw== X-Gm-Message-State: AOAM5320gWj7o5LoNsEztW8Ig4ab8QCH59gQkniNzD0DHH1gOGF7tCt7 GG4VeLrFkJVwEbiQ3ZN6Ic69lg0sVSBzVN0a5RQ/I0ZDnaanwQ== X-Received: by 2002:ac2:50c1:: with SMTP id h1mr983249lfm.333.1604584674765; Thu, 05 Nov 2020 05:57:54 -0800 (PST) MIME-Version: 1.0 References: <20201028145117.1731876-1-geert+renesas@glider.be> In-Reply-To: <20201028145117.1731876-1-geert+renesas@glider.be> From: Linus Walleij Date: Thu, 5 Nov 2020 14:57:44 +0100 Message-ID: Subject: Re: [PATCH] pinctrl: Remove hole in pinctrl_gpio_range To: Geert Uytterhoeven Cc: Heiko Stuebner , "open list:GPIO SUBSYSTEM" , "open list:ARM/Rockchip SoC..." , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 28, 2020 at 3:51 PM Geert Uytterhoeven wrote: > On 64-bit platforms, pointer size and alignment are 64-bit, hence two > 4-byte holes are present before the pins and gc members of the > pinctrl_gpio_range structure. Get rid of these holes by moving the > pins pointer. > > This reduces kernel size of an arm64 Rockchip kernel by ca. 512 bytes. > > Signed-off-by: Geert Uytterhoeven > --- > Compile-tested only (arm/multi_v7_defconfig and arm64/defconfig). Patch applied. Do you think it'd be worth it to add a check to checkpatch to suggest to move pointers toward the end of any struct? Yours, Linus Walleij