Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1379775

Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver

From Alexey Brodkin <Alexey.Brodkin@synopsys.com>
Newsgroups linux.kernel
Subject Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver
Date 2016-04-15 14:10 +0200
Message-ID <roaJs-2Nv-27@gated-at.bofh.it> (permalink)
References <rmHzQ-4kX-11@gated-at.bofh.it> <rmNcd-te-5@gated-at.bofh.it> <rmSbU-4A1-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi+AKA-Stephen,

On Mon, 2016-04-11 at 15:03 -0700, sboyd+AEA-codeaurora.org wrote:
+AD4- On 04/11, Alexey Brodkin wrote:
+AD4- +AD4- 
+AD4- +AD4- On Mon, 2016-04-11 at 11:41 +-0100, Jose Abreu wrote:
+AD4- +AD4- +AD4- 
+AD4- +AD4- +AD4- +- +ACo- warranty of any kind, whether express or implied.
+AD4- +AD4- +AD4- +- +ACo-/
+AD4- +AD4- +AD4- +-
+AD4- +AD4- +AD4- +-+ACM-include +ADw-linux/platform+AF8-device.h+AD4-
+AD4- +AD4- +AD4- +-+ACM-include +ADw-linux/module.h+AD4-
+AD4- +AD4- +AD4- +-+ACM-include +ADw-linux/clk-provider.h+AD4-
+AD4- +AD4- +AD4- +-+ACM-include +ADw-linux/err.h+AD4-
+AD4- +AD4- +AD4- +-+ACM-include +ADw-linux/device.h+AD4-
+AD4- +AD4- +ACI-linux/platform+AF8-device.h+ACI- includes +ACI-linux/device.h+ACI- so you may make this list of headers
+AD4- +AD4- a little bit shorter.
+AD4- +AD4- 
+AD4- +AD4- +AD4- 
+AD4- +AD4- +AD4- +-+ACM-include +ADw-linux/of+AF8-address.h+AD4-
+AD4- +AD4- +AD4- +-+ACM-include +ADw-linux/slab.h+AD4-
+AD4- +AD4- +AD4- +-+ACM-include +ADw-linux/of.h+AD4-
+AD4- +AD4- +ACI-linux/of+AF8-address.h+ACI- already includes +ACI-linux/of.h+ACI-.
+AD4- It's ok to include things twice. In fact, its better to avoid any
+AD4- implicit includes so that if we ever want to remove includes from
+AD4- other headers we can do so without disturbing this driver.

IMHO approach with minimal amount of headers is nice just because
it's easier to check if everything is in place. I mean attempt to compile
will immediately reveal a missing header.

So that's what I do - I remove as many inclusions as I may until stuff compiles.

But with approach of explicit inclusion it's much easier to include
much more headers than really needed. The only way to figure out if header is really
required is to manually check all used functions in the current source
which is way too unreliable and probably nobody will do it ever anyways.
And that's how we'll get more stale and pointless inclusions.

-Alexey

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver Jose Abreu <Jose.Abreu@synopsys.com> - 2016-04-11 12:50 +0200
  Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver Alexey Brodkin <Alexey.Brodkin@synopsys.com> - 2016-04-11 18:50 +0200
    Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver "sboyd@codeaurora.org" <sboyd@codeaurora.org> - 2016-04-12 00:10 +0200
      Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver Alexey Brodkin <Alexey.Brodkin@synopsys.com> - 2016-04-15 14:10 +0200
        Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver "sboyd@codeaurora.org" <sboyd@codeaurora.org> - 2016-04-16 01:40 +0200
  Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver Stephen Boyd <sboyd@codeaurora.org> - 2016-04-16 01:50 +0200
    Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver Jose Abreu <Jose.Abreu@synopsys.com> - 2016-04-18 12:40 +0200
      Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver Vineet Gupta <Vineet.Gupta1@synopsys.com> - 2016-04-18 13:50 +0200
        Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver Jose Abreu <Jose.Abreu@synopsys.com> - 2016-04-19 11:20 +0200
          Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver Stephen Boyd <sboyd@codeaurora.org> - 2016-04-20 04:00 +0200
            Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver Jose Abreu <Jose.Abreu@synopsys.com> - 2016-04-20 11:50 +0200
              Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver Alexey Brodkin <Alexey.Brodkin@synopsys.com> - 2016-04-20 18:20 +0200
                Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver Jose Abreu <Jose.Abreu@synopsys.com> - 2016-04-21 12:00 +0200
                Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver Alexey Brodkin <Alexey.Brodkin@synopsys.com> - 2016-04-21 14:20 +0200
                Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver Jose Abreu <Jose.Abreu@synopsys.com> - 2016-04-21 15:20 +0200
                Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver Alexey Brodkin <Alexey.Brodkin@synopsys.com> - 2016-04-21 16:20 +0200
                Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver Vineet Gupta <Vineet.Gupta1@synopsys.com> - 2016-04-22 08:00 +0200

csiph-web