public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drm/amdkfd: bad CONFIG_ prefix for enum entries
@ 2015-06-04 13:44 Valentin Rothberg
       [not found] ` <CAFCwf11PncuNGFZGheThJDyzYSLw8=zRn7p__PewY824wccCRg@mail.gmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Valentin Rothberg @ 2015-06-04 13:44 UTC (permalink / raw)
  To: yair.shachar
  Cc: Paul Bolle, Andreas Ruprecht, hengelein Stefan, oded.gabbay,
	airlied, linux-kernel, dri-devel

Hi Yair,

your commit fbeb661bfa89 ("drm/amdkfd: Add skeleton H/W debugger
module support") has shown up in today's linux-next tree (i.e.,
next-20150604).  The commit adds the following lines of code to
drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.h:

+/* CONFIG reg space definition */
+enum {
+       CONFIG_REG_BASE = 0x2000,       /* in dwords */
+       CONFIG_REG_END = 0x2B00,
+       CONFIG_REG_SIZE = CONFIG_REG_END - CONFIG_REG_BASE
+};

There is a problem with the 'CONFIG_' prefix of those entries.  This
prefix is reserved for Kconfig options in Make/Kbuild and CPP syntax,
so that static analysis tools (and readers of the code) may mistakenly
assume that the symbol is defined somewhere in a Kconfig file.

I detected the issue with ./scripts/checkkconfigsymbols.py.  Would you
mind renaming those entries to something without the 'CONFIG_' prefix?
 I can also take care of it if you wish to.

Kind regards,
 Valentin

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-06-04 17:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-04 13:44 drm/amdkfd: bad CONFIG_ prefix for enum entries Valentin Rothberg
     [not found] ` <CAFCwf11PncuNGFZGheThJDyzYSLw8=zRn7p__PewY824wccCRg@mail.gmail.com>
2015-06-04 13:59   ` Valentin Rothberg
2015-06-04 14:01   ` Alex Deucher
2015-06-04 14:04     ` Valentin Rothberg
2015-06-04 15:09       ` Alex Deucher
2015-06-04 16:47         ` Christian König
2015-06-04 17:42           ` Valentin Rothberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox