Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34198015rwd; Sun, 9 Jul 2023 07:05:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlGhPYc4Crdmy2UFh4QAmcsMRXHGmdPPNBuTvvLl1zborsD72YRSE5NkNonZTwrksXQ1wR1P X-Received: by 2002:a17:906:1046:b0:993:d920:87cb with SMTP id j6-20020a170906104600b00993d92087cbmr5627632ejj.23.1688911523282; Sun, 09 Jul 2023 07:05:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688911523; cv=none; d=google.com; s=arc-20160816; b=0PL5Z1nZiguDu4Fzn6AYH/RBpkwX94CStOQIlJWFGwVseFxM2Bedd7iAVfS7pqf6iK Qp8KEaDS+X8BbbsU1cogMvzqRbZCg6+qSQhTOcoG39uDFf3br4WGOnvuBKpZX0+2M0t0 9SXZW1dxX3RvJD5f91zTqRgUXJ4HY9oGO9uQsb2Ed9hpysEfll+W85uamE+o1v9C3YiA mae5X/BoUuYhBqD0uwxosvI4ekwY9o15yAvAYzgrNn+EhAskaQ7z3gkvVu9H1L29pRhl YJCj9MfVIzsKopK7NHCUV4jmB3prfRHzdZzhTCk5Jebwg8ubHMoJZrGCP8W0nMpxTF4O EtyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=hc4WQLj2DRnSXWWVw+LhAdGmNfrjGttPISNb2sjXbDo=; fh=vYq2KFn5Xa3BHgGewj3v2nfk7Q60PomvcNYp3KzAse0=; b=tXB40viUw1wt+/+YwBWCZBFNFZB4zDt20iYG+akXUT8I73IoabSAn2Nu1f2pS92AQv ZdzBsYgCbzo/UVUcRaoO2pggPFJ4V0B5yaPu6cdvTgtOB4BtuUTSCBFeBXGMYuOauf1H dYmuThU1qkKCli0j/ZJat0YB1cuX9yQ6lTRf39oCW4RMbcSnfciARet5h+DTsHal1yt/ 2itD6DvdBbiCcXJ3TvSqx8hPvlIDXl3y+CIR2OuvpeTpe2mgJvDqRUvo7ZaV2j7pW7DU 6c0/d5N2Wr+oojgSFMhYOmV7xDumSLsk695IB2kJgO2wSoqn72POgZ9Llo7o+hLr0AX/ RlgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b="oWuCm1q/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mf22-20020a170906cb9600b0098882e012dasi1054552ejb.443.2023.07.09.07.04.59; Sun, 09 Jul 2023 07:05:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b="oWuCm1q/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230272AbjGIMfO (ORCPT + 99 others); Sun, 9 Jul 2023 08:35:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjGIMfN (ORCPT ); Sun, 9 Jul 2023 08:35:13 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFBCC12A for ; Sun, 9 Jul 2023 05:35:11 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4QzRRb3ZLWzBJBg0 for ; Sun, 9 Jul 2023 20:35:07 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1688906107; x=1691498108; bh=mjXTHNdHAU+xS5sfdZYN0S62k7a JHZJWnjIbQuU5p7A=; b=oWuCm1q/QTLpYYbNzAAN8Jxv6YUE0bOSrxULpz9lrmc hX4qTLv2X65rAVMrn+O+atPYlJfT6zHg0s4rWsxoht9GzUAdmb57/RBN2PlTAZ98 +PnidPMY+aI8Z0ABqrrscQSEPHXtytBlrPF1iL/pB4z+O31XRuIvpBChFKpm4qUM afIRfzIVeAQV4lK/aiSie/5cn99D77CUp6D21A5+iZNmJ3/7Qlf03F9EFH/PQXtw 5a9RDN7puQLZufkNPjUKTsaeNhgq5IZMmVqRqdD2wXqgPLuXYbxd4naehbNnVvDO EMhf1blJziCiU0IZtj7DBXlcb1YhAIEOx1TGTcJc0lQ== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 1EB2A-I8HSDU for ; Sun, 9 Jul 2023 20:35:07 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4QzRRZ6c6lzBHXkb; Sun, 9 Jul 2023 20:35:06 +0800 (CST) MIME-Version: 1.0 Date: Sun, 09 Jul 2023 20:35:06 +0800 From: xuanzhenggang001@208suo.com To: ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de Cc: linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] sh: heartbeat: prefer 'unsigned int' to bare use of 'unsigned' In-Reply-To: <20230709123329.33674-1-denghuilong@cdjrlc.com> References: <20230709123329.33674-1-denghuilong@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: <7554aadc5afb915ee1065cea56053cb6@208suo.com> X-Sender: xuanzhenggang001@208suo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_BLOCKED,RDNS_NONE,SPF_HELO_FAIL,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following warnings reported by checkpatch: arch/sh/drivers/heartbeat.c:33: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' arch/sh/drivers/heartbeat.c:62: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Zhenggang Xuan --- arch/sh/drivers/heartbeat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sh/drivers/heartbeat.c b/arch/sh/drivers/heartbeat.c index 24391b444b28..07f04ed0d517 100644 --- a/arch/sh/drivers/heartbeat.c +++ b/arch/sh/drivers/heartbeat.c @@ -30,7 +30,7 @@ static unsigned char default_bit_pos[] = { 0, 1, 2, 3, 4, 5, 6, 7 }; static inline void heartbeat_toggle_bit(struct heartbeat_data *hd, - unsigned bit, unsigned int inverted) + unsigned int bit, unsigned int inverted) { unsigned int new; @@ -59,7 +59,7 @@ static inline void heartbeat_toggle_bit(struct heartbeat_data *hd, static void heartbeat_timer(struct timer_list *t) { struct heartbeat_data *hd = from_timer(hd, t, timer); - static unsigned bit = 0, up = 1; + static unsigned int bit = 0, up = 1; heartbeat_toggle_bit(hd, bit, hd->flags & HEARTBEAT_INVERTED);