From patchwork Tue Jul 3 10:29:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 10503755 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AA89460225 for ; Tue, 3 Jul 2018 10:30:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9AD8D289F3 for ; Tue, 3 Jul 2018 10:30:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8E23028A19; Tue, 3 Jul 2018 10:30:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38679289F7 for ; Tue, 3 Jul 2018 10:30:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 91F856B0006; Tue, 3 Jul 2018 06:30:13 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 8A4126B0008; Tue, 3 Jul 2018 06:30:13 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 76F4F6B000A; Tue, 3 Jul 2018 06:30:13 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wr0-f200.google.com (mail-wr0-f200.google.com [209.85.128.200]) by kanga.kvack.org (Postfix) with ESMTP id 1DB886B0006 for ; Tue, 3 Jul 2018 06:30:13 -0400 (EDT) Received: by mail-wr0-f200.google.com with SMTP id u7-v6so786808wrr.22 for ; Tue, 03 Jul 2018 03:30:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:in-reply-to:references:message-id; bh=Ob543yd8Hg847RxWhjiXuD4n6AxgBaUE2Tm/5Vvk8Zk=; b=HTvod0sUcGwkznQvSr0r6wlu/goylOufYrXpGtsi72rSCNz/MZg3FLBxypYPQqVboE vmvczL4gNBPizh8975iXR5UIeOLluVVxRws1fI0s7i9GY5vUT6vNY5saVD9g2uNphmzs xycPSr+tl+ojx9qA9IoKfX6IPfznjZA6aBFYNwC+hA+tFu2dlvozbZaa7KmL47IymHbA XMTAgLFe7stJFiYTngNXAiRw4oFDVL9StVOgULUB5WtU/NLifQ7kVRlr3R51Ezroumbs V7068sDCjHhfyGTnEe2H05eDN4ecfg6qJt4S0kxoC9YY0FUOdz9ER7xOPtBWE1QKGkJe KeFA== X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com X-Gm-Message-State: APt69E12R8Q5OsjxV6QYQKSJdtvPxYvg+uLIB5CFltdLHwWLJrgSo9U7 wESwxxL+61L2FFXD3zkb02ljsQGGvMwbgPJEpqjVfyTLmEctiicLkUock7/3V2RR0eU+9LntZ/d /zdkEs7YZ7SVQQuFN0F+AIaLowl33vq7jZs6b7w7skEvMAmZRoLYAA6D0whp5Pd0= X-Received: by 2002:a1c:c241:: with SMTP id s62-v6mr11007770wmf.146.1530613812686; Tue, 03 Jul 2018 03:30:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpefA66ZfKR13tODhVQ2f+TwuSE1xq7sV1kW3LNHQUjMOBn6sbGbbvS7PceS59MUhyor57R0 X-Received: by 2002:a1c:c241:: with SMTP id s62-v6mr11007730wmf.146.1530613811801; Tue, 03 Jul 2018 03:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530613811; cv=none; d=google.com; s=arc-20160816; b=jdPiFrvVWdrcyNTgQN0guuhWkSExDFBmUVmc4qMhSEVZBb8swqW/EM9/cm6Ahe9rv5 fjde1DXeA0H6+TJaPFpyv7M2JYzoL6S9dET+OMeEnUmgeJIaCK3cK/ZAfbOr4qVxg+4N znJag7QJrxL1VYtddOsaqci+mxFAYMuUsEFEnH02J/dvAc7rr3P2+/PaIlRXvC2hWGi3 HkvEHE6Wn1NiqUKVUyxNtx/n7UD9vGUvXH7ylCzSb+f/L3Ut7BJIRST5iOKnl2L7ILOF kqSA8ZkJbew6zM3xqhG56qgeTMsjUNnCf2bWbMQ3n8jnYSLXtaVpNS1wfb96WA0kWvUA xceQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:references:in-reply-to:date:subject:cc:to:from :arc-authentication-results; bh=Ob543yd8Hg847RxWhjiXuD4n6AxgBaUE2Tm/5Vvk8Zk=; b=r5fJS0jcADb+42tKWFSU+wQoqEYLcZY5qLBq0WeA2cxWiDXQmU5t7sRNDtp/iyISq3 ZuuFrYyetWROsCzBx25jdvfdhP7W6p5EuXbvQQ3k6Z2UEjGrWB0NlPWesAlT0YtU5tlE +OHagC/R4KBYuQ+cALEIAnxewZQf7NzOg8lm2FqXUlm6a8Tm4mWJX546Jq5cy8G4O2Id bO60mcYbveTgfB0Jn3D/PXN8N4es4vMB+viPaVe+FF+SqyxlOMQDwIoaapsUGX+SqMQC YVUc0fTYklHf3YdECRHlC64TqjM1rWX7D6QaFmZSbGe1PU1y+dER7OSLwLNLwoahFZes fL5w== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com. [148.163.158.5]) by mx.google.com with ESMTPS id g19-v6si669288wrh.118.2018.07.03.03.30.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jul 2018 03:30:11 -0700 (PDT) Received-SPF: neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) client-ip=148.163.158.5; Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w63AONMW133257 for ; Tue, 3 Jul 2018 06:30:10 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0b-001b2d01.pphosted.com with ESMTP id 2k07348wks-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 03 Jul 2018 06:30:10 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 3 Jul 2018 11:30:08 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 3 Jul 2018 11:30:05 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w63AU4n140632470 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 3 Jul 2018 10:30:04 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 00EF24C040; Tue, 3 Jul 2018 13:30:30 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 36DAF4C05C; Tue, 3 Jul 2018 13:30:28 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.206.209]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 3 Jul 2018 13:30:28 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Tue, 03 Jul 2018 13:30:01 +0300 From: Mike Rapoport To: Geert Uytterhoeven , Greg Ungerer , Sam Creasey Cc: Michal Hocko , linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: [PATCH 2/3] m68k/page_no.h: force __va argument to be unsigned long Date: Tue, 3 Jul 2018 13:29:54 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530613795-6956-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1530613795-6956-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18070310-4275-0000-0000-00000294A599 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18070310-4276-0000-0000-0000379C238C Message-Id: <1530613795-6956-3-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-07-03_03:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=917 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807030120 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP Add explicit casting to unsigned long to the __va() parameter Signed-off-by: Mike Rapoport --- arch/m68k/include/asm/page_no.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/include/asm/page_no.h b/arch/m68k/include/asm/page_no.h index e644c4d..6bbe520 100644 --- a/arch/m68k/include/asm/page_no.h +++ b/arch/m68k/include/asm/page_no.h @@ -18,7 +18,7 @@ extern unsigned long memory_end; #define __HAVE_ARCH_ALLOC_ZEROED_USER_HIGHPAGE #define __pa(vaddr) ((unsigned long)(vaddr)) -#define __va(paddr) ((void *)(paddr)) +#define __va(paddr) ((void *)((unsigned long)(paddr))) #define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT) #define pfn_to_virt(pfn) __va((pfn) << PAGE_SHIFT)