From patchwork Fri Jan 25 06:07:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 10780607 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 960CC746 for ; Fri, 25 Jan 2019 06:08:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 81FD82E82E for ; Fri, 25 Jan 2019 06:08:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74CF72F071; Fri, 25 Jan 2019 06:08:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5FF02E82E for ; Fri, 25 Jan 2019 06:08:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726289AbfAYGIh (ORCPT ); Fri, 25 Jan 2019 01:08:37 -0500 Received: from conuserg-12.nifty.com ([210.131.2.79]:31719 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726100AbfAYGIg (ORCPT ); Fri, 25 Jan 2019 01:08:36 -0500 X-Greylist: delayed 8276 seconds by postgrey-1.27 at vger.kernel.org; Fri, 25 Jan 2019 01:08:35 EST Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id x0P67sVU012319; Fri, 25 Jan 2019 15:07:54 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com x0P67sVU012319 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1548396474; bh=gv+6Ws9f6VGzifMs3BOTay8m5/soowYJG26BjthdvwU=; h=From:To:Cc:Subject:Date:From; b=kdzOFXN5I2JQ8HD/qMU6QzH0przQefrFUd97ofzZm0nGpzufXiBv4Hf2ZcYOm86r0 n6gLc3AqkAkf+vvn0GZREEBg7W3Kp2Pg7PB9VezogbwxnQ27h+Xa1L1dgpkqwNTr7G DSzabC1Q9jxNS2BB3E3RhcFZ92bAlIEG+M1TAhK2WwGkZz65o/oIEtE55BST3KkCIe xayw5sbilUDRH/9vU1hV2t3Ol7MGQ3RqJxWaOLumRr4AtB85LiaUolcls8QXWWeXYL sidRquS7e8DbqD9DQzT2TKIDix3mzIt0LedJ8sgHoS/EkjIJioBxmy7yshttDpQCSb HMSCqi4S3TFiQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Herbert Xu , linux-crypto@vger.kernel.org Cc: Masahiro Yamada , "David S. Miller" , linux-kernel@vger.kernel.org Subject: [PATCH] crypto: bcm: remove -I. header search path and unused macro define Date: Fri, 25 Jan 2019 15:07:48 +0900 Message-Id: <1548396469-13395-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The header search path -I. in kernel Makefiles is very suspicious; it allows the compiler to search for headers in the top of $(srctree), where obviously no header file exists. 'git grep BCMDRIVER' has no hit. So, this macro is not referenced. I was able to build this driver without the extra compiler options. Signed-off-by: Masahiro Yamada --- drivers/crypto/bcm/Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/crypto/bcm/Makefile b/drivers/crypto/bcm/Makefile index 13cb80e..7469e19 100644 --- a/drivers/crypto/bcm/Makefile +++ b/drivers/crypto/bcm/Makefile @@ -11,5 +11,3 @@ obj-$(CONFIG_CRYPTO_DEV_BCM_SPU) := bcm_crypto_spu.o bcm_crypto_spu-objs := util.o spu.o spu2.o cipher.o - -ccflags-y += -I. -DBCMDRIVER