From patchwork Tue Sep 10 23:25:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Min-Hua Chen X-Patchwork-Id: 13799429 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E912FEE01F2 for ; Tue, 10 Sep 2024 23:27:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=d/pYRykvIh23RQKfBCMGlDAqwUb25jIRziDiDqhbei4=; b=Ub5MHzfOU/fJd2X2kivgB8+kSg VMxVw7MJ368h4oCGdbbl5d+0r/yTNLBCbP1ZAWrENmfh+EHHGxtjr+9xhKq7BhsJD2NFoJsUaQWLT 94g6gz+uX0qBboWpdQjz9NthdgF9jgoi+fPRhqIVWZmjoB+JGMMEiL/UMZkMVq7QjnxG9599w4PBc WUC5X/wlvOjOQDvNAHb74rgGhqO/JEEvmt9jalsRBvn/nuU4AODRwHMDN+asK3LwvBT+yW6cnTZql LuvNp+ik1I/QKt1IMZ+FQxBVpKZBpag96oOS+wCK+L1uj1+g5/oIEdyQKU5lNv6caZXuyw8LxGMYP SapUnM0Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soAGj-00000007QEK-38aX; Tue, 10 Sep 2024 23:27:33 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soAEn-00000007PyY-4B8z for linux-arm-kernel@lists.infradead.org; Tue, 10 Sep 2024 23:25:35 +0000 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-20573eb852aso2152485ad.1 for ; Tue, 10 Sep 2024 16:25:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726010733; x=1726615533; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=d/pYRykvIh23RQKfBCMGlDAqwUb25jIRziDiDqhbei4=; b=mHlXZUm5wZZ0iYX4HN87SU+kiS4gHT6J5HnKGgdRKIti5cpZVqKtP/8OXpNW0dFwfP MnWCnIAzROqzqKL8khSU6TjLp7auwiSwwDkzXM90m0hrrLaz6Oxh37kxpnzA/VO/ARdc QZGI6XAIcqHW9QljYHBcQSN+IJDLwT8VCEH55KNSv3pZ2mVp0zEt+E8XgYNC9W7sBcAM aJnQpm4P4TIz+t0DgrhpAt3Or8sGwU5x4klLYDTM+2yM6zMkKzt4mKi/VDU/blNr8i70 jnfC4F4OK+Ft0/PIHPQFaofwV1sC1sjkv2H27wzfje/SlRULWDUfNPJdlhXnNpe2Z6UN 7//g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726010733; x=1726615533; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=d/pYRykvIh23RQKfBCMGlDAqwUb25jIRziDiDqhbei4=; b=XQ9V/8qQa8HuLLFcCrKCunq0DfXlYD5Jh8VxZmBtf7rdTIVYUir9nIr7iXvt2r1ARw URoZu69Dh/GcIz80L8wZqoPTipxvKR6Q+/9lyieX8pf7JOxlL44EjifDzJj/MS1AQ7zn ZdLMeenHPld11lb5/QXVuWQ3BNmk79zYSnIVuOOwjYRQY0XQ1hoOVMRxqAIJcZhU+Wr6 lMV1oueLwMKx+ZNYjxGue1mMeJZ2FV+n5GLbd6obF48GnWzUB0Lyl/dQE6FftyNwHi/U o3J3iKTU3jhLHEUNmX7GKKuInoHhg9XfT36tIufkTRM2BKgd4k+IE4uAEZYiI7dCIgwv 7Z+w== X-Forwarded-Encrypted: i=1; AJvYcCW0IkLGwmSCe+bGoQfoiaZWAdkIND2FkwyybB+WCUmUvdonVDaBWgPdN6ZKUmgIVPMHHW09yXjkBiOxELzIP2MJ@lists.infradead.org X-Gm-Message-State: AOJu0Ywv/cTBfQYy8YuR6z0P+/uFcJhnTUstfk+PRjUUffrVIxvbG5xh Op+PiEQ4UzmTJX2zfsnXwX9ElUU05FhOmc5APRJKmFnG55uKjD9M X-Google-Smtp-Source: AGHT+IGkXrUax0+/Bsd/fPRqBZE4MnDANmYCqJlz3FnSf8UUOIJJv+DwiwP/gHhDl5RqzL0fWM1fXw== X-Received: by 2002:a17:902:f908:b0:206:9818:5431 with SMTP id d9443c01a7336-2074cbac86fmr27434925ad.20.1726010732416; Tue, 10 Sep 2024 16:25:32 -0700 (PDT) Received: from localhost.localdomain (111-240-106-94.dynamic-ip.hinet.net. [111.240.106.94]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710f1f614sm53199675ad.211.2024.09.10.16.25.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 16:25:32 -0700 (PDT) From: Min-Hua Chen To: Catalin Marinas , Will Deacon Cc: Min-Hua Chen , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: hibernate: Fix warning for cast from restricted gfp_t Date: Wed, 11 Sep 2024 07:25:05 +0800 Message-ID: <20240910232507.313555-1-minhuadotchen@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240910_162534_056953_964405B2 X-CRM114-Status: GOOD ( 12.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch fixes the following warning by adding __force to the cast: arch/arm64/kernel/hibernate.c:410:44: sparse: warning: cast from restricted gfp_t No functional change intended. Signed-off-by: Min-Hua Chen --- arch/arm64/kernel/hibernate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/hibernate.c b/arch/arm64/kernel/hibernate.c index 02870beb271e..7b11d84f533c 100644 --- a/arch/arm64/kernel/hibernate.c +++ b/arch/arm64/kernel/hibernate.c @@ -407,7 +407,7 @@ int swsusp_arch_resume(void) void *, phys_addr_t, phys_addr_t); struct trans_pgd_info trans_info = { .trans_alloc_page = hibernate_page_alloc, - .trans_alloc_arg = (void *)GFP_ATOMIC, + .trans_alloc_arg = (__force void *)GFP_ATOMIC, }; /*