Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4543300ybv; Tue, 25 Feb 2020 22:28:53 -0800 (PST) X-Google-Smtp-Source: APXvYqwa3Pez7mg74BuFkEMlizS6dqM/AaORPA/T2Wgp5VYbKwoXh19g68ck/P6Jo9rFYagDqpwK X-Received: by 2002:aca:4ad8:: with SMTP id x207mr1766341oia.55.1582698533480; Tue, 25 Feb 2020 22:28:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582698533; cv=none; d=google.com; s=arc-20160816; b=tb4L7ttHzQHX9nE7s28+xZVD91dDspGRy8qVNkFL9aJWfbiosPutou60RgY59uZBl5 j/wkqVVqFQg632uJEPqEmT29wy1bJQlMRp1Cif4LvvzbWJ+SKBi296g4Rnb8GNkq6PMP FuC20U8kl/p1kEZdcO0tDYh31EqUXiqyiJKSE6aKUoVysn2iQY4goDWgjtlGmdI3hG8F LmsqmrTfFMug/DoVLJvEZWlGnmJuIG3PIWBMirPiNj4xlTIj2MsSLBMd6LTEE35WzXNt uywiuY75IUyLqTLy+voq/KwePQWhp0vLUjJb3h2wG+/ConnC8bHWvBflX5144BpNvcd3 hhfQ== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=dJ0iwx3YxlOOCr/F8cxIuQ7ogK82pAdPVWX+he34wg8=; b=udslJHEH92MA1eAR1gGiWS25cpeW28c24m/GdyAtNhB5cb8fknHgWOmJE3jIWgfSen 06Wtv76ea1q7M1R1fMycoOyscPsobantwtLA9Kqz8pOefoav0AMmpUOy9KvMzmM9TMgE 8U0zKETDz4Rs5KHqwERoE7f54Gt9h81oYUZZIcsVvv2ibXI5tSy8cenntjWqxVkMIJnj c9HT/AF9RImGxb1i09gpbmqRachfE3lYSE9TJAFLrZQQfmzWjR46sLBNP5UNJ7WO9wL5 fE1JwPyEraLGWggj48+aaBGjZoCZAxUMQPtKTyk4IEhIxFsSp2RcXHYQ6LDUZUPEcWVR 6rZg== 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 s21si752941otr.304.2020.02.25.22.28.24; Tue, 25 Feb 2020 22:28:53 -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 S1726474AbgBZG1F (ORCPT + 99 others); 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