Received: by 10.223.164.202 with SMTP id h10csp479852wrb; Thu, 30 Nov 2017 13:40:02 -0800 (PST) X-Google-Smtp-Source: AGs4zMY+lUuCp4W/fkVQryvSgbjCHSIdvBQ9juxrpPPQ5mTKm8l55xYg/+XdS85cTLVh4DCRRWQs X-Received: by 10.84.130.33 with SMTP id 30mr4069151plc.161.1512078001985; Thu, 30 Nov 2017 13:40:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512078001; cv=none; d=google.com; s=arc-20160816; b=tivybs5uFz52lMI8agmd9d5QSLy7/BY9wHo6C0Pjt8qGFq4pSAlTLgXS6kUQhOk4ly rCDQ8ocw+NMOMoMYBisz14bxvidCpdOuOTUm1usyXwp5Z3U7d0fdF9FWuIiTeQnSAU/S qc1zCyY/zVBB0cJ62qwsjJy0gnCrxSNISnouzro8GXm2Mnz8RAAPs6ocq2fbSCobGpFj 14BMV57xuh0ykeI6IyWsNon0HhFdhg6qNbCYcjPkq4fsQvur2T33vvvHgpwLpUdM7PR1 Oy5K4hCOQBI7XgVa0oUCEAH7X4Z9qQlplNBbyswLmgGXK5XYfrO4BYrr1bsc4eraHUrM ykNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=76AzM4T6Xwmqte2ZrbIcPAtueG9vm8Ea7MEv4Ow4ghs=; b=AuhcVw4u2xnOn+qn5JovYKQUBvNqe6MUF1U5WOL/izGn7LDUlEwLpkrgOu+p/6NWZB ERq4IybuyQf78HzQVvK7H0Up6gAsx3QjYU79qSjYL2Gl0T1R53BUAlLjJCH4VXskDTIE hAJUf5+pke/4ONIlT2d+qXtQtgEpk6wzK/XFZ8SLeqxBf12hXcAC8QldFv3iXO/MDTWq 2nZpS0ZhX0ZF6Lv4Z4KX8KPGpygwWHkzLpLdT+z+yhtbgbxOOJ884fjWKi2RUp4la4HZ saDs9dx9uWRVa0txqJW2xh3FB+d8TAqVcW8pwNqnaUkW0PixO2z01TeSp72CcsxkoRn1 LCjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1si3628396pgf.482.2017.11.30.13.39.48; Thu, 30 Nov 2017 13:40:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751513AbdK3VjB (ORCPT + 99 others); Thu, 30 Nov 2017 16:39:01 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:45272 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750747AbdK3Vi7 (ORCPT ); Thu, 30 Nov 2017 16:38:59 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 10AA720741; Thu, 30 Nov 2017 22:38:58 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (unknown [91.160.177.164]) by mail.free-electrons.com (Postfix) with ESMTPSA id B8E8D20386; Thu, 30 Nov 2017 22:38:57 +0100 (CET) Date: Thu, 30 Nov 2017 22:38:57 +0100 From: Boris Brezillon To: Masahiro Yamada Cc: linux-mtd@lists.infradead.org, Cyrille Pitchen , linux-kernel@vger.kernel.org, Han Xu , Marek Vasut , Brian Norris , Richard Weinberger , David Woodhouse Subject: Re: [PATCH] mtd: nand: remove unnecessary extern from driver headers Message-ID: <20171130223857.71fb290b@bbrezillon> In-Reply-To: <1511443123-30525-1-git-send-email-yamada.masahiro@socionext.com> References: <1511443123-30525-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 23 Nov 2017 22:18:43 +0900 Masahiro Yamada wrote: > 'extern' is not necessary for function declarations. > > scripts/checkpatch.pl with --strict option reports the following: > > CHECK: extern prototypes should be avoided in .h files Applied. Thanks, Boris > > Signed-off-by: Masahiro Yamada > --- > > drivers/mtd/nand/denali.h | 4 +-- > drivers/mtd/nand/gpmi-nand/gpmi-nand.h | 46 +++++++++++++++++----------------- > drivers/mtd/nand/sm_common.h | 2 +- > 3 files changed, 26 insertions(+), 26 deletions(-) > > diff --git a/drivers/mtd/nand/denali.h b/drivers/mtd/nand/denali.h > index 2911066..9ad33d2 100644 > --- a/drivers/mtd/nand/denali.h > +++ b/drivers/mtd/nand/denali.h > @@ -329,7 +329,7 @@ struct denali_nand_info { > #define DENALI_CAP_DMA_64BIT BIT(1) > > int denali_calc_ecc_bytes(int step_size, int strength); > -extern int denali_init(struct denali_nand_info *denali); > -extern void denali_remove(struct denali_nand_info *denali); > +int denali_init(struct denali_nand_info *denali); > +void denali_remove(struct denali_nand_info *denali); > > #endif /* __DENALI_H__ */ > diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.h b/drivers/mtd/nand/gpmi-nand/gpmi-nand.h > index a45e4ce..06c1f99 100644 > --- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.h > +++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.h > @@ -268,31 +268,31 @@ struct timing_threshold { > }; > > /* Common Services */ > -extern int common_nfc_set_geometry(struct gpmi_nand_data *); > -extern struct dma_chan *get_dma_chan(struct gpmi_nand_data *); > -extern void prepare_data_dma(struct gpmi_nand_data *, > - enum dma_data_direction dr); > -extern int start_dma_without_bch_irq(struct gpmi_nand_data *, > - struct dma_async_tx_descriptor *); > -extern int start_dma_with_bch_irq(struct gpmi_nand_data *, > - struct dma_async_tx_descriptor *); > +int common_nfc_set_geometry(struct gpmi_nand_data *); > +struct dma_chan *get_dma_chan(struct gpmi_nand_data *); > +void prepare_data_dma(struct gpmi_nand_data *, > + enum dma_data_direction dr); > +int start_dma_without_bch_irq(struct gpmi_nand_data *, > + struct dma_async_tx_descriptor *); > +int start_dma_with_bch_irq(struct gpmi_nand_data *, > + struct dma_async_tx_descriptor *); > > /* GPMI-NAND helper function library */ > -extern int gpmi_init(struct gpmi_nand_data *); > -extern int gpmi_extra_init(struct gpmi_nand_data *); > -extern void gpmi_clear_bch(struct gpmi_nand_data *); > -extern void gpmi_dump_info(struct gpmi_nand_data *); > -extern int bch_set_geometry(struct gpmi_nand_data *); > -extern int gpmi_is_ready(struct gpmi_nand_data *, unsigned chip); > -extern int gpmi_send_command(struct gpmi_nand_data *); > -extern void gpmi_begin(struct gpmi_nand_data *); > -extern void gpmi_end(struct gpmi_nand_data *); > -extern int gpmi_read_data(struct gpmi_nand_data *); > -extern int gpmi_send_data(struct gpmi_nand_data *); > -extern int gpmi_send_page(struct gpmi_nand_data *, > - dma_addr_t payload, dma_addr_t auxiliary); > -extern int gpmi_read_page(struct gpmi_nand_data *, > - dma_addr_t payload, dma_addr_t auxiliary); > +int gpmi_init(struct gpmi_nand_data *); > +int gpmi_extra_init(struct gpmi_nand_data *); > +void gpmi_clear_bch(struct gpmi_nand_data *); > +void gpmi_dump_info(struct gpmi_nand_data *); > +int bch_set_geometry(struct gpmi_nand_data *); > +int gpmi_is_ready(struct gpmi_nand_data *, unsigned chip); > +int gpmi_send_command(struct gpmi_nand_data *); > +void gpmi_begin(struct gpmi_nand_data *); > +void gpmi_end(struct gpmi_nand_data *); > +int gpmi_read_data(struct gpmi_nand_data *); > +int gpmi_send_data(struct gpmi_nand_data *); > +int gpmi_send_page(struct gpmi_nand_data *, > + dma_addr_t payload, dma_addr_t auxiliary); > +int gpmi_read_page(struct gpmi_nand_data *, > + dma_addr_t payload, dma_addr_t auxiliary); > > void gpmi_copy_bits(u8 *dst, size_t dst_bit_off, > const u8 *src, size_t src_bit_off, > diff --git a/drivers/mtd/nand/sm_common.h b/drivers/mtd/nand/sm_common.h > index d3e028e..1581671 100644 > --- a/drivers/mtd/nand/sm_common.h > +++ b/drivers/mtd/nand/sm_common.h > @@ -36,7 +36,7 @@ struct sm_oob { > #define SM_SMALL_OOB_SIZE 8 > > > -extern int sm_register_device(struct mtd_info *mtd, int smartmedia); > +int sm_register_device(struct mtd_info *mtd, int smartmedia); > > > static inline int sm_sector_valid(struct sm_oob *oob) From 1584863180548039287@xxx Thu Nov 23 13:21:50 +0000 2017 X-GM-THRID: 1584863180548039287 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread