From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1429439AbdDYKY5 (ORCPT ); Tue, 25 Apr 2017 06:24:57 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35877 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1176657AbdDYKYt (ORCPT ); Tue, 25 Apr 2017 06:24:49 -0400 Date: Tue, 25 Apr 2017 19:24:40 +0900 From: Sergey Senozhatsky To: js1304@gmail.com Cc: Andrew Morton , Minchan Kim , Sergey Senozhatsky , linux-kernel@vger.kernel.org, kernel-team@lge.com, Joonsoo Kim Subject: Re: [PATCH v3 3/4] zram: make deduplication feature optional Message-ID: <20170425102440.GA491@jagdpanzerIV.localdomain> References: <1492737291-11455-1-git-send-email-iamjoonsoo.kim@lge.com> <1492737291-11455-4-git-send-email-iamjoonsoo.kim@lge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1492737291-11455-4-git-send-email-iamjoonsoo.kim@lge.com> User-Agent: Mutt/1.8.2 (2017-04-18) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On (04/21/17 10:14), js1304@gmail.com wrote: [..] > int zram_dedup_init(struct zram *zram, size_t num_pages); > void zram_dedup_fini(struct zram *zram); > +#else > + > +static inline u64 zram_dedup_dup_size(struct zram *zram) { return 0; } > +static inline u64 zram_dedup_meta_size(struct zram *zram) { return 0; } > + > +static inline void zram_dedup_insert(struct zram *zram, struct zram_entry *new, > + u32 checksum) { } > +static inline struct zram_entry *zram_dedup_find(struct zram *zram, > + struct page *page, u32 *checksum) { return NULL; } > + > +static inline void zram_dedup_init_entry(struct zram *zram, > + struct zram_entry *entry, unsigned long handle, > + unsigned int len) { } > +static inline bool zram_dedup_put_entry(struct zram *zram, > + struct zram_entry *entry) { return true; } > + > +static inline int zram_dedup_init(struct zram *zram, > + size_t num_pages) { return 0; } > +static inline void zram_dedup_fini(struct zram *zram) { } > + > +#endif doesn't compile on CONFIG_ZRAM=m config. -ss