Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4010397pxf; Mon, 22 Mar 2021 23:35:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYJbHS9V+9kgNE8oacrGOOE8Lt63NzuB7KhLI6v1blV9GTsb1FivMn2swb/8IeElY5t8Fz X-Received: by 2002:aa7:c3c1:: with SMTP id l1mr3085697edr.208.1616481322223; Mon, 22 Mar 2021 23:35:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616481322; cv=none; d=google.com; s=arc-20160816; b=sdQIBj2KcCybLwpiKv/J8IS3Cy2Q18MuiOuFZZt65CiyqNGD+iA+cBUUSQ180wpRvB OvlEcuc70cfLuOO9OQ+Sl5i2AFIJCHtWPU+sHhijJejz9dTpFSsPcvxIMK1/IIK9dv2U xKoA8vyljjKpzIpy3efuRYpn9ptIetff/TJmtzmNcZFLS4R+uqpRg36bkwy5/D70FiyM LMxrSAzygchsBFl3E220tc4JKAaP+sCKOMROfm0LRPnDMQMX/8grNEIcw9ltt2PkeAEc ltDTtoesqIlQKmzOM3ICkx5RlWkk61JqBWjHSJCVSHxemKCCdu4vl239VTtc5GI21jLF /fUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Q5vbB4ELiR17Z8hRUusoeYeuOgsGuL/IU9aW9BYP7OY=; b=ZdygKIakYUH6fauaVyt01vG5EwJwsr4Jn/mMRKIj4djPNwVrVhFnMJAcJpaS/YfR4v w4mmbiQ5U0aEz4v74J5UXA7smRM3P45KtOiZuRFibHjU3JWJXBqRQSMHzYt6ZT7XXiIp 3mkE09GlLI2PK+0sMGsIjDuGF9SzONumbY3kRqPtwxHoUu3adgQfo9gaphP9d2Ssc69V LSK2edj5mrY5q8V5cSApLIqZqWqiual+WIV/YtOGaH0C7eVHWQZajnq3f8kqe2yNU/hO lmk5AfqVOtrmjtS59NIu86X6gZXpcbksKBKFy1e0k5KCcFl8dwRDQVn8tVlMAke6cuF+ ijbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s15si12737412eja.163.2021.03.22.23.34.59; Mon, 22 Mar 2021 23:35:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229746AbhCWGdc (ORCPT + 99 others); Tue, 23 Mar 2021 02:33:32 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14063 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbhCWGdX (ORCPT ); Tue, 23 Mar 2021 02:33:23 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4F4M1z2lVvzNqTS; Tue, 23 Mar 2021 14:30:47 +0800 (CST) Received: from [10.174.178.163] (10.174.178.163) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.498.0; Tue, 23 Mar 2021 14:33:14 +0800 Subject: Re: [PATCH] mm: process_vm_access: Remove duplicate include of compat.h To: Wan Jiabing , Andrew Morton CC: , , References: <20210323032322.262579-1-wanjiabing@vivo.com> From: Miaohe Lin Message-ID: Date: Tue, 23 Mar 2021 14:33:14 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210323032322.262579-1-wanjiabing@vivo.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.163] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/3/23 11:23, Wan Jiabing wrote: > linux/compat.h has been included at line 8.So we remove > the duplicate one at line 12. > line 12 one is added via eb351d75ce1e ("mm/process_vm_access.c: include compat.h") to fix the build error: mm/process_vm_access.c:277:5: error: implicit declaration of function 'in_compat_syscall'; did you mean 'in_ia32_syscall'? [-Werror=implicit-function-declaration] There might be something wrong. > Signed-off-by: Wan Jiabing > --- > mm/process_vm_access.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/mm/process_vm_access.c b/mm/process_vm_access.c > index f5fee9cf90f8..4bcc11958089 100644 > --- a/mm/process_vm_access.c > +++ b/mm/process_vm_access.c > @@ -9,7 +9,6 @@ > #include > #include > #include > -#include > #include > #include > #include >