Message ID | b25c42eac8beb0862f1b2041e817cb421ec66b4e.1694613528.git.geert@linux-m68k.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp1113543vqx; Wed, 13 Sep 2023 07:10:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHn8kSMhzTfr9wVZRuLBK7DKjP7Eh9jtjz7wq1wofr14hDIkUSJJxO9arnkFUHi/HH3IEnW X-Received: by 2002:a92:c56d:0:b0:34c:b981:52d4 with SMTP id b13-20020a92c56d000000b0034cb98152d4mr2908026ilj.31.1694614236143; Wed, 13 Sep 2023 07:10:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694614236; cv=none; d=google.com; s=arc-20160816; b=rPmtFrn5Gj8ZXM8+wbgx05KKDaiLVa5I4lXzzVEE9tN0uCrARay7tcfExUdVhgNSft A364zJmJ1BAy/m516LhClDnFN4WS1gFjFVFPmrRrONan8MPxUF/LZBVZpODW1rQ4Fi/a uCXcqcMUyJjlwhzY7RGzAy63OyhNGYIBRu0i5wnIQfHSU5O+jfUVRmJcNew9Vmmdl0/R b/Pfd3Xtt1pKCl9QDyXjXKXVz9N3B+hh+LsYjTMlYR7zly5A0hc2Pz4uwHoCfeH4G6S+ Qpk+wX2tAYpasSrVP5ZWtpm09VgJq5QNtBgH0txRLzT64BL9/yqUX0e3EOE5BXIiTaef Mmog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=cYAUmGja78KixbAbs6NEtpY0r6PeQr9UgBRDPuf7jY8=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=xAq0Pmv8MeJiNORgfWQoYD+GyDmfaMn3i7+JGTe4eCXUY2h29/xjLTJ7D70Lf4/nDd NhwPav0KMaoNeX59LKD/i+Bbt8EiAGm6DWE/qr+4+2Qv4sdT5ysLVwuPVLZz9SdgmUKl K74BGtqp3WxcgHEuNOmxzyGVFPFtvMiOrgvMGE130KZ6syJI5PdfE/3LS+3qwoFV3NE4 kHmY2VtW4oaI9LZ94+D7A61rz2moZt7HmDg1jSCJGSK3BdbbGaXoiPDN/Ddmflr37vP4 1kzVn148e1ZZHuoad5uDdkJvNeLpLNyF1zmfh8HnxRuuckVtSlt4sJQQrbPjVxwsHSiH KFZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id a6-20020a631a46000000b00577bf1de778si2363100pgm.585.2023.09.13.07.10.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 07:10:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id B89BA80BB1D8; Wed, 13 Sep 2023 07:10:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241317AbjIMOJ5 (ORCPT <rfc822;pwkd43@gmail.com> + 36 others); Wed, 13 Sep 2023 10:09:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241311AbjIMOJN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 13 Sep 2023 10:09:13 -0400 Received: from cantor.telenet-ops.be (cantor.telenet-ops.be [195.130.132.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B82361BEF for <linux-kernel@vger.kernel.org>; Wed, 13 Sep 2023 07:08:51 -0700 (PDT) Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by cantor.telenet-ops.be (Postfix) with ESMTPS id 4Rm2PG1Kw0z4x7bJ for <linux-kernel@vger.kernel.org>; Wed, 13 Sep 2023 16:08:50 +0200 (CEST) Received: from ramsan.of.borg ([84.195.187.55]) by baptiste.telenet-ops.be with bizsmtp id lS8o2A00x1C8whw01S8orG; Wed, 13 Sep 2023 16:08:50 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from <geert@linux-m68k.org>) id 1qgQXe-003css-1g; Wed, 13 Sep 2023 16:08:47 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from <geert@linux-m68k.org>) id 1qgQXv-00FV5k-CF; Wed, 13 Sep 2023 16:08:47 +0200 From: Geert Uytterhoeven <geert@linux-m68k.org> To: linux-m68k@lists.linux-m68k.org Cc: Arnd Bergmann <arnd@arndb.de>, Finn Thain <fthain@linux-m68k.org>, Michael Schmitz <schmitzmic@gmail.com>, Philip Blundell <philb@gnu.org>, Greg Ungerer <gerg@linux-m68k.org>, Joshua Thompson <funaho@jurai.org>, Sam Creasey <sammy@sammy.net>, Laurent Vivier <laurent@vivier.eu>, linux-kernel@vger.kernel.org, Geert Uytterhoeven <geert@linux-m68k.org> Subject: [PATCH v2 30/52] m68k: mac: Remove unused yday in unmktime() Date: Wed, 13 Sep 2023 16:08:20 +0200 Message-Id: <b25c42eac8beb0862f1b2041e817cb421ec66b4e.1694613528.git.geert@linux-m68k.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <cover.1694613528.git.geert@linux-m68k.org> References: <cover.1694613528.git.geert@linux-m68k.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 13 Sep 2023 07:10:31 -0700 (PDT) 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 fry.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776931816905830569 X-GMAIL-MSGID: 1776931816905830569 |
Series |
m68k: W=1 fixes
|
|
Commit Message
Geert Uytterhoeven
Sept. 13, 2023, 2:08 p.m. UTC
When building with W=1: arch/m68k/mac/misc.c: In function ‘unmktime’: arch/m68k/mac/misc.c:557:33: warning: variable ‘yday’ set but not used [-Wunused-but-set-variable] 557 | int days, rem, y, wday, yday; | ^~~~ Fix this by removing the unused variable and assignment. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Arnd Bergmann <arnd@arndb.de> --- v2: - Add Acked-by. --- arch/m68k/mac/misc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/m68k/mac/misc.c b/arch/m68k/mac/misc.c index c7cb29f0ff016360..65107abc8848232c 100644 --- a/arch/m68k/mac/misc.c +++ b/arch/m68k/mac/misc.c @@ -554,7 +554,7 @@ static void unmktime(time64_t time, long offset, /* Leap years. */ { 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366 } }; - int days, rem, y, wday, yday; + int days, rem, y, wday; const unsigned short int *ip; days = div_u64_rem(time, SECS_PER_DAY, &rem); @@ -592,7 +592,6 @@ static void unmktime(time64_t time, long offset, y = yg; } *yearp = y - 1900; - yday = days; /* day in the year. Not currently used. */ ip = __mon_yday[__isleap(y)]; for (y = 11; days < (long int) ip[y]; --y) continue;