From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2BFCC4BA0B for ; Wed, 26 Feb 2020 06:28:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7F63421556 for ; Wed, 26 Feb 2020 06:28:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726872AbgBZG1F (ORCPT ); Wed, 26 Feb 2020 01:27:05 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:33484 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726089AbgBZG1F (ORCPT ); Wed, 26 Feb 2020 01:27:05 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id B0D083520EA08317C573; Wed, 26 Feb 2020 14:27:01 +0800 (CST) Received: from [127.0.0.1] (10.173.221.195) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Wed, 26 Feb 2020 14:26:51 +0800 Subject: Re: [RFC PATCH] Use IS_ENABLED() instead of #ifdefs To: Christophe Leroy , , , , , , , , , CC: , References: <92d936b83e47f6a65866ca2d39a0d5bfefba6279.1582693094.git.christophe.leroy@c-s.fr> From: Jason Yan Message-ID: <071e97e0-2772-76bf-2434-03769fc71c5a@huawei.com> Date: Wed, 26 Feb 2020 14:26:51 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <92d936b83e47f6a65866ca2d39a0d5bfefba6279.1582693094.git.christophe.leroy@c-s.fr> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.173.221.195] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ÔÚ 2020/2/26 13:04, Christophe Leroy дµÀ: > --- > This works for me. Only had to leave the #ifdef around the map_mem_in_cams() > Also had to set linear_sz and ram for the alternative case, otherwise I get Great. Thank you for the illustration. Jason