All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Glauber <jan.glauber@caviumnetworks.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Ulf Hansson <ulf.hansson@linaro.org>,
	"kbuild-all@01.org" <kbuild-all@01.org>,
	"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	David Daney <ddaney@caviumnetworks.com>,
	"Steven J . Hill" <Steven.Hill@cavium.com>,
	David Daney <david.daney@cavium.com>
Subject: Re: [PATCH v11 6/9] mmc: cavium: Add MMC PCI driver for ThunderX SOCs
Date: Wed, 15 Feb 2017 14:54:23 +0100	[thread overview]
Message-ID: <20170215135423.GA3464@hardcore> (raw)
In-Reply-To: <CAK8P3a2MT2yWaPvy3K9MoPAtjeqkUmGfSB3gxFk1YHdnReeRHQ@mail.gmail.com>

On Wed, Feb 15, 2017 at 01:34:40PM +0100, Arnd Bergmann wrote:
> On Mon, Feb 13, 2017 at 4:45 PM, Ulf Hansson <ulf.hansson@linaro.org> wrote:
> > On 13 February 2017 at 16:24, Jan Glauber
> > <jan.glauber@caviumnetworks.com> wrote:
> >> On Sun, Feb 12, 2017 at 09:09:29AM +0800, kbuild test robot wrote:
> >>> Hi Jan,
> >>>
> >>> [auto build test ERROR on linus/master]
> >>> [also build test ERROR on v4.10-rc7 next-20170210]
> >>> [if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
> >>>
> >>> url:    https://github.com/0day-ci/linux/commits/Jan-Glauber/Cavium-MMC-driver/20170206-214740
> >>> config: arm64-allmodconfig (attached as .config)
> >>> compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
> >>> reproduce:
> >>>         wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> >>>         chmod +x ~/bin/make.cross
> >>>         # save the attached .config to linux build tree
> >>>         make.cross ARCH=arm64
> >>>
> >>> All errors (new ones prefixed by >>):
> >>>
> >>>    In file included from drivers/mmc/host/cavium-mmc.c:28:0:
> >>>    drivers/mmc/host/cavium-mmc.h:41:7: warning: "CONFIG_MMC_CAVIUM_THUNDERX" is not defined [-Wundef]
> >>>     #elif CONFIG_MMC_CAVIUM_THUNDERX
> >>>           ^~~~~~~~~~~~~~~~~~~~~~~~~~
> >>
> >> Hi Ulf,
> >>
> >> We are aware of this build error, the line above should be:
> >> #elif IS_ENABLED(CONFIG_MMC_CAVIUM_THUNDERX)
> >
> > Please avoid using IS_ENABLED() - unless really needed.
> >
> > Doesn't "#ifdef" work here?
> >
> 
> No, CONFIG_MMC_CAVIUM_THUNDERX is a tristate symbol and #ifdef won't
> work for =m.

Yes, that was the reason for using IS_ENABLED().

> Ideally, the base driver would not have any such preprocessor checks at
> all though, and just work either way. While I realize that octeon and thunderx
> are mutually exclusive in practice, the patch as it is written here is somewhat
> confusing as turning on both options (with COMPILE_TEST) will break
> at least one of the two.

I'll try to get rid of the preprocessor checks for the next version.

--Jan

>     Arnd

  reply	other threads:[~2017-02-15 13:54 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-06 13:39 [PATCH v11 0/9] Cavium MMC driver Jan Glauber
2017-02-06 13:39 ` [PATCH v11 1/9] dt-bindings: mmc: Add Cavium SOCs MMC bindings Jan Glauber
     [not found]   ` <20170206133953.8390-2-jglauber-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
2017-02-09  0:40     ` Rob Herring
2017-02-09  0:40       ` Rob Herring
2017-03-03 11:47     ` Ulf Hansson
2017-03-03 11:47       ` Ulf Hansson
2017-03-06 11:09       ` Jan Glauber
2017-02-06 13:39 ` [PATCH v11 2/9] mmc: cavium: Add core MMC driver for Cavium SOCs Jan Glauber
2017-03-03 11:47   ` Ulf Hansson
2017-03-03 18:39     ` David Daney
2017-03-07 10:49     ` Jan Glauber
2017-03-08  9:45       ` Ulf Hansson
2017-03-08 17:52         ` Jan Glauber
2017-02-06 13:39 ` [PATCH v11 3/9] mmc: cavium: Add MMC platform driver for Octeon SOCs Jan Glauber
2017-02-06 13:39 ` [PATCH v11 4/9] mmc: cavium: Work-around hardware bug on cn6xxx and cnf7xxx Jan Glauber
2017-02-06 13:39 ` [PATCH v11 5/9] mmc: cavium: Add support for Octeon cn7890 Jan Glauber
2017-02-06 13:39 ` [PATCH v11 6/9] mmc: cavium: Add MMC PCI driver for ThunderX SOCs Jan Glauber
2017-02-12  1:09   ` kbuild test robot
2017-02-12  1:09     ` kbuild test robot
2017-02-13 15:24     ` Jan Glauber
2017-02-13 15:45       ` Ulf Hansson
2017-02-15 12:34         ` Arnd Bergmann
2017-02-15 13:54           ` Jan Glauber [this message]
2017-02-06 13:39 ` [PATCH v11 7/9] mmc: cavium: Add scatter-gather DMA support Jan Glauber
2017-02-12  1:27   ` kbuild test robot
2017-02-12  1:27     ` kbuild test robot
2017-02-06 13:39 ` [PATCH v11 8/9] mmc: cavium: Support DDR mode for eMMC devices Jan Glauber
2017-02-06 13:39 ` [PATCH v11 9/9] MAINTAINERS: Add entry for Cavium MMC driver Jan Glauber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170215135423.GA3464@hardcore \
    --to=jan.glauber@caviumnetworks.com \
    --cc=Steven.Hill@cavium.com \
    --cc=arnd@arndb.de \
    --cc=david.daney@cavium.com \
    --cc=ddaney@caviumnetworks.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=ulf.hansson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.