From patchwork Sat Jun 10 12:45:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 105937 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1534935vqr; Sat, 10 Jun 2023 06:12:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ65+J2ZGxbQT/Mk8m5wz3m+wzt5V177/MkrJ/J/BCo50DXLoz4l7KDaLkJAclXO26Ujwiec X-Received: by 2002:a17:907:7f1f:b0:97e:ab29:952c with SMTP id qf31-20020a1709077f1f00b0097eab29952cmr233462ejc.2.1686402738973; Sat, 10 Jun 2023 06:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686402738; cv=none; d=google.com; s=arc-20160816; b=QPxzXxFVE64OqclkOaUM8CoW1C2R8onEm7x7H/bDzkHlLbk6pQa1yIc5107nSaJR18 NAsT6u01z2SdNkZV/fx/cgMXB0rIDWCpnvic4GPpDudttUnkU53r21Bgv9WP3YBBu0R0 fc+eTFXqvJ2TuofL3TAj7sxEJMChaH4SSJISapQmewJERFTddv3ZQBbBL5Fq0x77VdhG 6jdSSxttAybpYaNfgAagDnH0Z+eKlgybqMTDWu+Swss1uyto8AQ6GbzReNTybV/0hfmm +kUCJZxMlxU2U62kZlTrABp0TD2mvojoTTV0xkG72RsY8SAIRUVjtnfge3euKL/jTW1V s+ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=bEzxubQcnLZoG0m9coTklTKk4G+HNneq9lcmAgnyAkI=; b=qzEqihuweTwx6gG1ENskqqDWals/pqhjeSrqVQ35KbVSvp2nC7gs+9ufh+q/egnqxF oRzLeKoPcflEjAqy2212HVxOkr0HXzvjKra+lbl6lzVQJovwg3Mipzfbv+7jQT//pVO8 FgAa9sZId7x+73rzW3Gv//actzWZX8+xvWJRC1731g1dA1/t0ZezON3yHbkH2U2lZklG MXmtrSPZLTs4ZZtOlYVnOh6DQi1KTPogWB+SFK5okI87LPkhWAiAtCtgHus4E3vGNfTW Zn25m1z9a0gE9mbtHQDzol67s3Al7gK9BFGx0/HyTckt6UcWNa1wfw9g8W+4NtJXLoHd AcAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=YZXtKb6h; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d25-20020a170906345900b0096f8ed4f5cbsi2718983ejb.77.2023.06.10.06.11.54; Sat, 10 Jun 2023 06:12:18 -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=pass header.i=@linutronix.de header.s=2020 header.b=YZXtKb6h; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231802AbjFJMpj (ORCPT + 99 others); Sat, 10 Jun 2023 08:45:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230403AbjFJMpd (ORCPT ); Sat, 10 Jun 2023 08:45:33 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 567FE35B8; Sat, 10 Jun 2023 05:45:32 -0700 (PDT) Date: Sat, 10 Jun 2023 12:45:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1686401130; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bEzxubQcnLZoG0m9coTklTKk4G+HNneq9lcmAgnyAkI=; b=YZXtKb6hDLOPspLe39n+5awamNUWNAgrOUEtGHdClzzkePjpqKc8esCYe8aptUqjXggnZ2 jA70ULyI7ag5O94okQvgvXaF6X+85bzynm77X+NxugldWkhSO0LgqOJi4zsNRQwkj36ENh yyPBFYj4lzwFlNGQg+DEKBdngdE41gUXKXKYtL9LyVSX43DVsZ9qUUrzJsi1kNlyOGBB0H OxcJwlMAQVrK2pn2TQMrkkRMOFwDy+28hTd3AdgVnaiwmcNkgQ8iLc15RlBUIOI2UzzpOg zNTpsdaT3hTwT+5VibOFK7tDzZ/j1j8pza9jQ4Tkj6t3EgzIJOdf2OOSvt1a3g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1686401130; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bEzxubQcnLZoG0m9coTklTKk4G+HNneq9lcmAgnyAkI=; b=JmI8KGUhV2NpzYtEvUtDKaMSEE/+2ewN3BGzVkSCjEHBHtKklWCH5aIOj9vgv0asotATW9 hatTfgiqvkg2PyBA== From: "tip-bot2 for Li zeming" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] alarmtimer: Remove unnecessary (void *) cast Cc: Li zeming , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230609182059.4509-1-zeming@nfschina.com> References: <20230609182059.4509-1-zeming@nfschina.com> MIME-Version: 1.0 Message-ID: <168640113003.404.3362295823712498263.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768321438191355356?= X-GMAIL-MSGID: =?utf-8?q?1768321438191355356?= The following commit has been merged into the timers/core branch of tip: Commit-ID: f319c99c701853dd41c01209855790da288e38ab Gitweb: https://git.kernel.org/tip/f319c99c701853dd41c01209855790da288e38ab Author: Li zeming AuthorDate: Sat, 10 Jun 2023 02:20:59 +08:00 Committer: Thomas Gleixner CommitterDate: Sat, 10 Jun 2023 14:36:17 +02:00 alarmtimer: Remove unnecessary (void *) cast Pointers of type void * do not require a type cast when they are assigned to a real pointer. Signed-off-by: Li zeming Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20230609182059.4509-1-zeming@nfschina.com --- kernel/time/alarmtimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c index 09c9cde..8d9f13d 100644 --- a/kernel/time/alarmtimer.c +++ b/kernel/time/alarmtimer.c @@ -751,7 +751,7 @@ static int alarm_timer_create(struct k_itimer *new_timer) static enum alarmtimer_restart alarmtimer_nsleep_wakeup(struct alarm *alarm, ktime_t now) { - struct task_struct *task = (struct task_struct *)alarm->data; + struct task_struct *task = alarm->data; alarm->data = NULL; if (task)