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 E78FEC433E0 for ; Fri, 15 May 2020 09:18:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C619B206F1 for ; Fri, 15 May 2020 09:18:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728026AbgEOJST (ORCPT ); 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