From patchwork Sun Aug 19 13:45:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sedat Dilek X-Patchwork-Id: 959323 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-i2c-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=credativ.de Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41tdg354pPz9s4c for ; Sun, 19 Aug 2018 23:52:47 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726486AbeHSREU (ORCPT ); Sun, 19 Aug 2018 13:04:20 -0400 Received: from gauss.credativ.com ([93.94.130.89]:33091 "EHLO gauss.credativ.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725953AbeHSRET (ORCPT ); Sun, 19 Aug 2018 13:04:19 -0400 Received: from gauss.credativ.com (localhost [127.0.0.1]) by gauss.credativ.com (Postfix) with ESMTP id 207EB1E1AA5; Sun, 19 Aug 2018 15:45:48 +0200 (CEST) Received: from localhost.localdomain (x59cc99f1.dyn.telefonica.de [89.204.153.241]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: sdi@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id 9FCAE1E1954; Sun, 19 Aug 2018 15:45:47 +0200 (CEST) From: Sedat Dilek To: Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Torvalds Cc: Sedat Dilek , Nick Desaulniers Subject: [PATCH] i2c: Remove '-Wno-deprecated-declarations' compiler warning Date: Sun, 19 Aug 2018 15:45:40 +0200 Message-Id: <20180819134540.8653-1-sedat.dilek@credativ.de> X-Mailer: git-send-email 2.18.0 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org 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, no-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 Signed-off-by: Sedat Dilek --- 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