Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp350062ybk; Fri, 15 May 2020 02:20:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfqmN2Dbeezp81BOuVJCmPl8c8mXKiBdtO7Z5MGUSkaAcA6JW9tWJWyLg+F5LVx2v4fypO X-Received: by 2002:a50:b586:: with SMTP id a6mr1801534ede.292.1589534409034; Fri, 15 May 2020 02:20:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589534409; cv=none; d=google.com; s=arc-20160816; b=PlYU8KX+fdbedx+eJHSVyz1FFWEMaGznmLk9H9BzU+mPUjLgtH/Sl/eU37MMU7HxXL swia9K9ttG61hYSutz8UmT3AjyUJsNTDNUgTmvIaiwQhikG1c8tE/6VI7ehTFpsOxdko B9rprljAO9Ea9XdCWW5uRuzw1qU41h2kd3bV1k+3TCgondjjmcvP1eA1jvp1zL4AHH11 Sln0tAwO6Le/bz88/k/x32vvhvYu3iR95nbW9sV3upNkxul9hCXpy9SNkjemmby8hh/L isyUQ3UApC6Q6J7N8etFGczMWZ5GuoAANRmCEQpExpVZFBsUEZ8ULxn7F6k8zy7MHo9R lNkA== 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=0tN/Q+2u2j3cUsLXJA4XQJNRo+Nf8Mr265uoEDMP040=; b=CtSV5XRQgCoE06fkj/0o9HXmHV4dnvPLnwlcns9k/rlO1YbJhibAS4O/h4UtsWuRaf vm8B+b4wdymh5aboDMpdmfnC4FFh0Pb8625eQMvcq3jPqSHVbUXkDpIxDpJHf/EgR4Hg 4XiV0MpmYYcOXG861WNUDczBr1mUqAEu19xxGl/PWcRTmECaxRMAqxLrhZaSiRvJYR6e eNM+8CQojXwCWejfhdF3fvqxhNL3IKlHKLZb6fLAEUGO+MV25gQR2KhJcvXKw9hRiUvj WGrlIzzrRYcFuoZ0K5d3DXU2Ewyoj9dqicjY5hUBqqFuM1eIkbJbK4/WYPcrribygH+m lU9w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si945121edp.302.2020.05.15.02.19.45; Fri, 15 May 2020 02:20:09 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727958AbgEOJST (ORCPT + 99 others); Fri, 15 May 2020 05:18:19 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4848 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727116AbgEOJST (ORCPT ); Fri, 15 May 2020 05:18:19 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 8383EF3AD3429BBE4F04; Fri, 15 May 2020 17:18:16 +0800 (CST) Received: from [127.0.0.1] (10.67.102.197) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Fri, 15 May 2020 17:17:57 +0800 Subject: Re: [PATCH 3/4] watchdog: move watchdog sysctl to watchdog.c To: Kees Cook CC: , , , , , , , , , , , , , , , , , , , References: <1589517224-123928-1-git-send-email-nixiaoming@huawei.com> <1589517224-123928-4-git-send-email-nixiaoming@huawei.com> <202005150107.DA3ABE3@keescook> From: Xiaoming Ni Message-ID: <287d50e9-28b6-0d9f-1aa7-aac5bbeb0807@huawei.com> Date: Fri, 15 May 2020 17:17:57 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <202005150107.DA3ABE3@keescook> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.102.197] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/5/15 16:09, Kees Cook wrote: > On Fri, May 15, 2020 at 12:33:43PM +0800, Xiaoming Ni wrote: >> +static int sixty = 60; > > This should be const. (Which will require a cast during extra2 > assignment.) > Sorry, I forgot to append const. Thanks for your guidance. Thanks Xiaoming Ni