Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3811964rdg; Wed, 18 Oct 2023 06:53:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHTwoDWGfhXJELq7adDakhHzW9iMhVqwyJddOENYkHgjwFWW3WiXm0oNifr5Qs+JOo+xD9d X-Received: by 2002:a17:902:fa4f:b0:1c9:ccbc:4ca1 with SMTP id lb15-20020a170902fa4f00b001c9ccbc4ca1mr4352388plb.46.1697637223747; Wed, 18 Oct 2023 06:53:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697637223; cv=none; d=google.com; s=arc-20160816; b=hOVz0xvKMAVNu/slAxuyqQ04J5Ng3PXrRVh4v7pz1zCn8hEiHU63BMIohtV+iHrFzc 72YUF1pfgJ2Ux4yKbuwb+oB0PBcWEHclsHdFsAS++aItxTu49u/pN3jS9v9Is5OTjBDr CYzq8OTuTcZ4KDS6y41Ot0F5X3qIrTwCshcvGbo3yGHX/MMocVgWdWWqRHBaWEe/jgOz npyELfh4xFm1v0pibOrBfVd7ZgJd+TxEhXiWxvx07RvsWnc9Z4cfuZ9ndneyOZlWQw8X BIdaa4ueL9JKAwxQ2ihAYjKM0IQQwlAZzgAv9Wg7eUASoqVPXqbYJRLXCF9UckTZ3WLY gtag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=ydhK18ftbJO9RoyfmM9QxlvPkbn2XJfutkPRfMZmBR0=; fh=kKmFWBaKmkc+Y3z/MHVgL2QTpArBcxvwVOVMn8nTaUw=; b=F3NJf2bJ0ecckzZ8pG8GiB7e6AemRnsXN2VDutIgJmNsZ01Mhaxtuk8F/6Uhw0nyJU +tbBPas7wayifzOUkuvHHonto7IPFTCM0xkjVLbJ5xkh7AScxx/vpp5er+HZHdgQLAft IBtSx2o7doaxSc4k/owgXQymRGILBBCWikfgIrUFowLEjrZ0aL/5ZdXzhu/CEenBunk1 Cpj3t5JNppcf6HN+qVBfJfN8ro9E+9DC5FHEvX5RHQ2lgnxZCdbw6HTh61FESCLMwoyt pk5YJieZYS1Zkvx/TzhThSt7yuVUMfs4A18mVPGr3VDNxQJkM/+3NgnxIbARPv933fwQ srUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id u8-20020a17090282c800b001be025f8407si3713911plz.37.2023.10.18.06.53.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 06:53:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 719F3801C0A1; Wed, 18 Oct 2023 06:53:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344784AbjJRNxg convert rfc822-to-8bit (ORCPT + 99 others); Wed, 18 Oct 2023 09:53:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344782AbjJRNxf (ORCPT ); Wed, 18 Oct 2023 09:53:35 -0400 Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com [209.85.219.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B6E095; Wed, 18 Oct 2023 06:53:34 -0700 (PDT) Received: by mail-yb1-f169.google.com with SMTP id 3f1490d57ef6-d9a398f411fso7765504276.3; Wed, 18 Oct 2023 06:53:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697637213; x=1698242013; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zDpjjdShjqITiNCQrSVmXLGjWP750vEbHAu62sP/538=; b=SwqArA01wiEYxfXGaB31wHqQw9jmrznCnIGCP06VWEyJQ7jO1DznAUzvOJAvWHEu8O 3jJV5itCY7sEpMdNa+q8wOZ+Oc2sc3A/h16Z6Kw9pqP3zWvct5po1nVUNP0J0EkkxvOe O7Jx5YD70GiEA+qK39uEr1FEotpTUG7JywO+r0ctEE5IYnCjSu5ovbOogH0KC9oyCUdV 7YynolYu9NfI21eb9zflodX8H9USnwUSBFZFku6eOB2aTASfpwGB6c+RthIUrvj3Fgnt 96ywnwUm6MpY7swL4o/Diz6Q3RV9eKshMKAN+AjWIdv+9fU/f/fItXWG/Fqj7UM2kknJ i7Ug== X-Gm-Message-State: AOJu0YxjLLkNq/qYLr79VOdP7D6+7v34ZyXs4C8Q6r9ZIRtn+5bnN4c2 hzJoa+jQb58WzHhtqRqetqyMvHbb30W6bA== X-Received: by 2002:a25:8145:0:b0:d9a:5475:6aac with SMTP id j5-20020a258145000000b00d9a54756aacmr5280076ybm.48.1697637213269; Wed, 18 Oct 2023 06:53:33 -0700 (PDT) Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com. [209.85.128.182]) by smtp.gmail.com with ESMTPSA id x16-20020a25ce10000000b00d9a36ded1besm1318895ybe.6.2023.10.18.06.53.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Oct 2023 06:53:32 -0700 (PDT) Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-5a7c7262d5eso86180347b3.1; Wed, 18 Oct 2023 06:53:32 -0700 (PDT) X-Received: by 2002:a05:690c:10c:b0:5a7:afc9:3579 with SMTP id bd12-20020a05690c010c00b005a7afc93579mr6112881ywb.18.1697637212500; Wed, 18 Oct 2023 06:53:32 -0700 (PDT) MIME-Version: 1.0 References: <20230709123329.33674-1-denghuilong@cdjrlc.com> <7554aadc5afb915ee1065cea56053cb6@208suo.com> In-Reply-To: <7554aadc5afb915ee1065cea56053cb6@208suo.com> From: Geert Uytterhoeven Date: Wed, 18 Oct 2023 15:53:19 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] sh: heartbeat: prefer 'unsigned int' to bare use of 'unsigned' To: xuanzhenggang001@208suo.com Cc: ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 18 Oct 2023 06:53:41 -0700 (PDT) On Sun, Jul 9, 2023 at 2:39 PM wrote: > 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, patch: **** malformed patch at line 19: heartbeat_data *hd, Please fix your email setup. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds