linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] i2c: Remove '-Wno-deprecated-declarations' compiler warning
@ 2018-08-19 13:51 Sedat Dilek
  2018-08-19 15:23 ` kbuild test robot
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Sedat Dilek @ 2018-08-19 13:51 UTC (permalink / raw)
  To: Wolfram Sang, linux-i2c, linux-kernel, Linus Torvalds
  Cc: Sedat Dilek, Nick Desaulniers

This can be dropped with commit 771c035372a036f83353eef46dbb829780330234
("deprecate the '__deprecated' attribute warnings entirely and for good")
now in upstream.

Please, use the kbuild infrastruture to disable compiler warnings.
This should be...

CFLAGS_i2c-core-base.o := $(call cc-disable-warning, deprecated-declarations)

This has the advantage to check if other compilers like GCC support this.

NOTE: My compiler is a prerelease of LLVM/Clang version 7.

[1] https://clang.llvm.org/docs/DiagnosticsReference.html#wdeprecated-declarations

CC: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Sedat Dilek <sedat.dilek@credativ.de>
---
[ v2: Fix typo s/no-deprecated-declarations/deprecated-declarations. -dileks ]
 drivers/i2c/Makefile | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile
index 72c94c60fdd1..bed6ba63c983 100644
--- a/drivers/i2c/Makefile
+++ b/drivers/i2c/Makefile
@@ -18,4 +18,3 @@ obj-$(CONFIG_I2C_STUB)		+= i2c-stub.o
 obj-$(CONFIG_I2C_SLAVE_EEPROM)	+= i2c-slave-eeprom.o
 
 ccflags-$(CONFIG_I2C_DEBUG_CORE) := -DDEBUG
-CFLAGS_i2c-core-base.o := -Wno-deprecated-declarations
-- 
2.18.0


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

end of thread, other threads:[~2018-08-24 15:03 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-19 13:51 [PATCH v2] i2c: Remove '-Wno-deprecated-declarations' compiler warning Sedat Dilek
2018-08-19 15:23 ` kbuild test robot
2018-08-19 16:46 ` Linus Torvalds
2018-08-20  2:12   ` Benjamin Herrenschmidt
2018-08-20  8:06     ` Wolfram Sang
2018-08-20 11:25       ` Benjamin Herrenschmidt
2018-08-20 20:36       ` Linus Torvalds
2018-08-21  2:04         ` Wolfram Sang
2018-08-24 13:01 ` Wolfram Sang
2018-08-24 13:49   ` Sedat Dilek
2018-08-24 14:07     ` Wolfram Sang
2018-08-24 14:19       ` Sedat Dilek
2018-08-24 15:01         ` Wolfram Sang
2018-08-24 15:03           ` Sedat Dilek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).