Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1284567ybl; Wed, 14 Aug 2019 14:05:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwz7d5ik0nfGkKAIR6AsYJW928gN97QszoJLhVi5b3yR4LfWPzTn+UlN7dRCeP4+nsND+vR X-Received: by 2002:a17:90a:cc11:: with SMTP id b17mr1526609pju.136.1565816748263; Wed, 14 Aug 2019 14:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565816748; cv=none; d=google.com; s=arc-20160816; b=UFvYZK+4xqD4MTMb63iS6PEEbs0bgneNG5OLwkWGrtbZOIcCRqO3hqMc2B6JUSw5+b q2V/HhDrl/ZBQwdySFF4du34SwPxAVAmEt9EowXNy6RnBjxngW7Lu49vIShZuSWmHGdM bVZOa9ihMFSHEbZaUyXQAe/yi8SeTPStEhDYfVLaJH+uhjFHbi7WN8wqQcXYg+srP8i3 EHaLA4xmjyYsgcugfL+rMRKZD7GOjlQIAKs48Lrl+ymics9HxWEqWCz8kBHpItXwQ7xN QDBV47L47V2Um7MC+j0ljAn4/9F0P21vADdUEy/eaPpu6A4kYeeymVRZsOMRapFj9zG5 4KoQ== 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:dkim-signature; bh=fQvw6+Cysy9DNZAaud1joF+LzoMS/HD7HFa+/9L4GG0=; b=XjIJVAldAeTlXvpyhZR2TJeEkP01qsoHLLFTjqipSxLKi0xvGaejqmWnYjr7Fe7Tsl brGxVIC59OC3uAANHBL9WItYO5A+SSDy0DMVjjy0YcYZ+jSyyIV1AYYtqWQ6cUvZkSh+ MAZgxHTMd1W60dQUbeDb5GwT9dalFDKn3NkgCT7akahT2zNAT+liABGcM+CU8R+jQnWm JqYdiA8/UIgCW1wdJHM0QA/DYoavYGhWnyaA+MuX9Hq1fwNGm1J2mluXVa1nreJr+5PX i8yEafA8lEDdmegV9N8EBE8trvwLQMQEXCf40V2AmluT7ykTveExefK9JcLkbO8YDXPV gfyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=jPBf3uDu; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5si541419pll.439.2019.08.14.14.05.31; Wed, 14 Aug 2019 14:05:48 -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=@google.com header.s=20161025 header.b=jPBf3uDu; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729546AbfHNVDS (ORCPT + 99 others); Wed, 14 Aug 2019 17:03:18 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:44500 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728524AbfHNVDS (ORCPT ); Wed, 14 Aug 2019 17:03:18 -0400 Received: by mail-oi1-f196.google.com with SMTP id k22so39548oiw.11 for ; Wed, 14 Aug 2019 14:03:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fQvw6+Cysy9DNZAaud1joF+LzoMS/HD7HFa+/9L4GG0=; b=jPBf3uDulUcoKNAc5FGbcIPpld5MB7MguGlABvefio2QnWvJq/obtoqu6LpahFZIkQ rM/GMVkfcRxE3U1bulrtw0Zs/k9utF6dZSbCwlX6WycAAjJgYMSbiXmThaLHRA6xThco HZWYFDFuZtVUJTvJgk524nTNZRqlxLibSrVV+70Nyx4Ob47dkyLqrBabX24h5YgReC+W t0UblEXnsWwaot5BRaD5GakbpFUgKWjS0dCY/pj1V7gaFj+wT35TLpg0S7O+vFDCztih CI9HH/dfo1Rjqicz02DtjCrRt8heoR+3fKr4BErk1UwzCeCQ4BdkjzhheZqxAUuD1PVj 0IEA== 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=fQvw6+Cysy9DNZAaud1joF+LzoMS/HD7HFa+/9L4GG0=; b=J5bk6Q+XYGNScmBJMeMI8Tax5PVOh8U9ayNtv1HkdSF5KWZOuAbY85OYftJg/nUWS5 Ys9nd6qypsavX5kWivFK5OYlUyPn3Q5x8qK8mgOsKdD3CQ/wR7de5CpmeCnuwoTNj7xd djnf/KbCkpPFtvZWLer6NEeB+H7gPTQAsFeqHWjvO0Zj/+tDpczan6svwLf4zn61PO9j 0Ul2joOsmxXBWffq+kq9R5a+NeHQHsuYk4zlbS/PTW4wiVnAnqvqwqNR5gjLTeRqKDc2 VNNXqY8grYOm5EoqJHVWUWSJolnfUdp9cpcwo3StrgKZonTvGUSIMoe5c9UPWnZEwyN9 nMBw== X-Gm-Message-State: APjAAAXzcvEWmnsd1nFzHDoT2iZDSVF5W9VQ1UELYvpROMeTa5N7eOjx KGmZd5ZX4ux6UwRjm1lo90yL4cojyglT5UV5mvE58w== X-Received: by 2002:aca:6104:: with SMTP id v4mr1341676oib.172.1565816597247; Wed, 14 Aug 2019 14:03:17 -0700 (PDT) MIME-Version: 1.0 References: <20190806192654.138605-1-saravanak@google.com> <20190806192654.138605-2-saravanak@google.com> In-Reply-To: From: Saravana Kannan Date: Wed, 14 Aug 2019 14:02:41 -0700 Message-ID: Subject: Re: [PATCH 2/2] of/platform: Disable generic device linking code for PowerPC To: Rob Herring Cc: Greg Kroah-Hartman , Frank Rowand , Stephen Rothwell , Android Kernel Team , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@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 Tue, Aug 6, 2019 at 3:04 PM Saravana Kannan wrote: > > On Tue, Aug 6, 2019 at 2:27 PM Rob Herring wrote: > > > > On Tue, Aug 6, 2019 at 1:27 PM Saravana Kannan wrote: > > > > > > PowerPC platforms don't use the generic of/platform code to populate the > > > devices from DT. > > > > Yes, they do. > > No they don't. My wording could be better, but they don't use > of_platform_default_populate_init() > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/of/platform.c#n511 > > > > > > Therefore the generic device linking code is never used > > > in PowerPC. Compile it out to avoid warning about unused functions. > > > > I'd prefer this get disabled on PPC using 'if (IS_ENABLED(CONFIG_PPC)) > > return' rather than #ifdefs. > > I'm just moving the existing ifndef some lines above. I don't want to > go change existing #ifndef in this patch. Maybe that should be a > separate patch series that goes and fixes all such code in drivers/of/ > or driver/ Bump. Thoughts? I don't think changing the existing if(n)defs should be part of this patch series. -Saravana