Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14496420pxu; Tue, 5 Jan 2021 03:13:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcGD9o526juK7uta37NjXoI+Z1Fjo8JfcuVc4g2kPAEhmLJx1EC0wiZ3AKUuW7QuC/UZjF X-Received: by 2002:a17:906:9588:: with SMTP id r8mr68727109ejx.148.1609845214362; Tue, 05 Jan 2021 03:13:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609845214; cv=none; d=google.com; s=arc-20160816; b=Jqy4keXNGa7nLGy/KRfM2B9hqbQH8MbsbqLvm17dF4V141jDWRPujKSbd3ym60deyb uw+N3OnijcuoplhjA7MOeIJw6m0lS5svqsusS+yINUMESLLdJKxyQYezU78cOdY8jTF1 /y+mwTFFjPAiMhwXdNtMy/9EibPh5gnjR6aMI6wU8qsOBg08jQ/Y7G32jy8moY+Pzq2x S25o4cYmEDJZ4FweBSxSkQUbWZogftJzAyBsSkjc0K90oUKwlphLZSPS2ekd9pGOs4Oe wc5HpF5UA2qhOmT5wp5L/CJzd2igr7e5Ra29pKeHvhKXlpA83hAIfYgEmzHh+uzDz2cs d2gQ== 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; bh=PKWuouXVT2LKCbTQ8qdZ/IxRDTAiC46jRA6EblweW7E=; b=cCWEXKp0/QZmcIkaYpJDBAM+PY6tgwVhkGKlRKF+IzjDYMxgGgG8i46gX7Lv7lZms7 WVlWnJ2MyYoPMiHo3VHJZBNFDdIqu70UhNIxJxxBittl9p0wuDA1UEJxlGxpxNHBFg5u LZ9Jr9hWhCqhxcpafPMXuyeEf6+NRrqn5GuwFtrGVa78u1lmPu8XxkQQ+inQ2qa1P98T jZVOxcWLggZ0czp1idjfvQsNbFt6SrNEBuiumnPRGOaDU3XQTpNjNIfvtIxAGV2Pdf3l K17CDnrTgK3T8gMv6f8dwL1R95169jjyXVna3UkbHeMqT5/mxXHjESjBJJX+fdFXCbyI AE9Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rl11si32619075ejb.33.2021.01.05.03.13.11; Tue, 05 Jan 2021 03:13:34 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729102AbhAELMX (ORCPT + 99 others); Tue, 5 Jan 2021 06:12:23 -0500 Received: from mail-ot1-f41.google.com ([209.85.210.41]:40108 "EHLO mail-ot1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728507AbhAELMX (ORCPT ); Tue, 5 Jan 2021 06:12:23 -0500 Received: by mail-ot1-f41.google.com with SMTP id j12so28886796ota.7; Tue, 05 Jan 2021 03:12:07 -0800 (PST) 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=PKWuouXVT2LKCbTQ8qdZ/IxRDTAiC46jRA6EblweW7E=; b=q0DXnjkKqc/ALGgGgLFgD/TFl9zSNWTaxeHXjXD8ksmj9Yd+bPJnjQ06xWkGyGa49R Esv/1d7zRcojU1ko44iFi0EXjdtJRFOt0U2aHPrphhCKxCTbD56whgYJJjTZr6NUigi8 CyRu6GyZd47R2iZrkC0WHr+qjixmBIHS9KB/0vqsoT+QRkDiQwPTc8z7y2xWtudUpKUM +ByoizcLZMVye4TNh7HL0elx+WM4R3Gm3T/DZqlYr7spzJD8DV779RQH0pg4ldlbCNP7 poZqOzPTZiM3xkpBr96DIR3V4mFAIGaWqa2PXsfv2l+Y3aEF9mAW29xCvOYRbYZuezym ttLQ== X-Gm-Message-State: AOAM530qwMk9AB3Y74i4ameIP47EN/FOmRTVCKXlh7bbXlUSEpxLoix/ TKHuLq7OtipCRoeUeMyxUbWQJBkJCJ1qTvZLyWw= X-Received: by 2002:a05:6830:1f5a:: with SMTP id u26mr55990412oth.250.1609845102054; Tue, 05 Jan 2021 03:11:42 -0800 (PST) MIME-Version: 1.0 References: <20201230145708.28544-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20201230145708.28544-3-prabhakar.mahadev-lad.rj@bp.renesas.com> <20210104213005.GK5645@sirena.org.uk> <20210104234018.GA19909@amd> <20210105104234.GA29908@amd> In-Reply-To: <20210105104234.GA29908@amd> From: Geert Uytterhoeven Date: Tue, 5 Jan 2021 12:11:31 +0100 Message-ID: Subject: Re: [PATCH 2/2] spi: rpc-if: Remove CONFIG_PM_SLEEP ifdefery To: Pavel Machek Cc: Mark Brown , "Lad, Prabhakar" , Lad Prabhakar , Jiri Kosina , Sergei Shtylyov , linux-spi , Linux Kernel Mailing List , Linux-Renesas , Chris Brandt Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pavel, On Tue, Jan 5, 2021 at 11:42 AM Pavel Machek wrote: > > On Tue, Jan 5, 2021 at 12:40 AM Pavel Machek wrote: > > > > > > > .name = "rpc-if-spi", > > > > > > > - .pm = DEV_PM_OPS, > > > > > > > + .pm = &rpcif_spi_pm_ops, > > > > > > > > > > You're aware rpcif_spi_pm_ops is now always referenced and thus emitted, > > > > > > increasing kernel size by 92 bytes if CONFIG_PM_SLEEP=n? > > > > > > This may matter for RZ/A SoCs running from internal SRAM. > > > > > > > > > Hmm didn't realise this would be an issue on RZ/A. > > > > > > > > > Mark, could you please drop this patch from your branch. > > > > > > > > Please send an incremental patch with an appropriate changelog. > > > > > > Let's fix this properly. I'm pretty sure we have some macros that can > > > solve this without re-introducing the ifdefs... > > > > There's pm_ptr(), but it uses CONFIG_PM as a selector, not CONFIG_PM_SLEEP. > > Okay; so we could introduce pm_sleep_ptr(). > > Or we could just put single #ifdef CONFIG_PM_SLEEP around the .pm > assignment? That would be improvement on the original, and still > result in the same binary, right? Indeed. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds