Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1167000rdg; Fri, 11 Aug 2023 11:57:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEJEkPbf3CsDG9+YxLjNcjrRsWINqyDBG4/giqO0Zjmxhh1O6+hRLyCq15QZW34OuloUB0R X-Received: by 2002:a17:902:7e83:b0:1bd:b79:3068 with SMTP id z3-20020a1709027e8300b001bd0b793068mr2627762pla.48.1691780237216; Fri, 11 Aug 2023 11:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691780237; cv=none; d=google.com; s=arc-20160816; b=wScCQ0ArOWqeIr5Lki1j4App2oWaw5fRhfWjVoaJifAnAJZSj1uD0MVwXy//gZsULj Pc8x4wq/rZpmt2hH3+WyoGSEo+M1BuWoZ1zw8LcroSyVJef77o43HMafGsCszFMvz64c XmwKppCghEbT3J7uwrNj+/FMrfJf8DfEDSA6mgBh1Nq7GlVj1oZGhuD4oUBNSA6hJE2d ik8j+22Ok68Qd1dY6E4hGmbguM6HM3d1KiWS3SJxaI4hILYCSGRHXpNrShz/W20Ki/Lp TNf1AoY2Ouvfbr/2eNyQ0+lac2lj3xbWX+VZVLryEQlyK9H2kOrlK0z2hg+bDYCf1jnf A5cA== 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 :dkim-signature; bh=IUwS78/plVVa6OoEj+AWgYgZJxdiiaMtOa1TwsZ9DQw=; fh=zILISoE7VGbbu3UWaxFKiQ0mR6vgTFPbNdpozRo0CFI=; b=aP+mbxzJdupBCE83FuKTJAu2u3lMWOZhJB4lbw/lDIrt2VRXba/kTrRrLbx0eZAj4s 9LibKaYSxKNchjIlk8ushVcebY4SwkWg7vgfngYB4z5TQlxwSQZ8i9ykIjefcvs+0V+/ J6xaPd1gbysH7gVWUhab3JRxTo+MTouB3peP1BlPTRMHzlvHOpvG2QYeHaLVxLqNQ0/w PWTJbbAgPp0WXJ4cq6k3raLAe18EayOb7MM0LsT10+JwbOTVqh91F1J6gWXCG7Tm+Rah H84ZSskW3ThwcBP2e8nbzGvY7YDoDWosIxWAuRbCGQpb/YgfYnSD8pdM6VqyydftCygT vf0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q1ZYrwwh; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lo14-20020a170903434e00b001bc56c3eba1si3539574plb.593.2023.08.11.11.57.04; Fri, 11 Aug 2023 11:57:17 -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=@linaro.org header.s=google header.b=Q1ZYrwwh; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236082AbjHKRtO (ORCPT + 99 others); Fri, 11 Aug 2023 13:49:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235668AbjHKRtN (ORCPT ); Fri, 11 Aug 2023 13:49:13 -0400 Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50CC5F5 for ; Fri, 11 Aug 2023 10:49:13 -0700 (PDT) Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-589bcdaa8a4so11996637b3.3 for ; Fri, 11 Aug 2023 10:49:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691776152; x=1692380952; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=IUwS78/plVVa6OoEj+AWgYgZJxdiiaMtOa1TwsZ9DQw=; b=Q1ZYrwwhQpPo+fdOPFXzX9x/95cTxObZcO2ycCJr7eHrysZCasYebCGJ5YR0Ccsgro 4ygjLi0qSK82vnoTgbCPHYr8KTkqXzrY38es57zHKVpnUxrTUMquUfVLKeM/aYzNnx6S U6AnSnVtB9MiVgzJUGYHZ+XkKaWs5bm3Vhoq02uP/m0rE57v0YrPxMVeISa3EFTdu6RV fE2COONF0bWd1GE2VGPYSCBhebjek86RJe1pZHjc7n6qSokVzdjgf5O+zSgyDjouEn6t ST24mTi4AlzJukRWdbCkPmqJ7+7i/lN4pIz/MIXRm0NYZqdaVQ7vc2x1wCLHiGzhOBlO BmTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691776152; x=1692380952; 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=IUwS78/plVVa6OoEj+AWgYgZJxdiiaMtOa1TwsZ9DQw=; b=X6u2XqfDbEdAEki7nUKWselUjw6bGYaWWPKujx/f7xvm9Xso6vU5cEQiEipYEbE3n1 bg58vsaGhDT0HucxUuS5Tb6nXcWx0wkLhOAd4bdoWZhsQXkPmj6ELC2uiYg8NCPEP4/a 1NaOQbGRKzAg7W5GkT70w/xPf5UN5vGBLHWfm5cOWJsrFD482gdd1auEdwgbkJODCY/L 4JSl7qnVv9XkbP7zp5plfOBkmIp0QWy/9mL7KSIN96BkiJLDB4Qy5wTS5zvfAQgebimX uEtIaDqbsxrODsY+jRt6gpxAyy8mVBx/fAO5arPCUyeM+nwuogBCRoRWX/+iNeAy/qQX a5HA== X-Gm-Message-State: AOJu0YwML9cUVdMDGYwB+mumlYVM1XKAAiW4pC18Xwnc5vAToHnmlzJ2 rDGpqVK7lfh1y2S/dFXM8zJsYCHQ+fZhYuvk05Tnhg== X-Received: by 2002:a25:e910:0:b0:c60:982f:680c with SMTP id n16-20020a25e910000000b00c60982f680cmr2199874ybd.63.1691776152522; Fri, 11 Aug 2023 10:49:12 -0700 (PDT) MIME-Version: 1.0 References: <20230811-virt-to-phys-s390-v1-1-b661426ca9cd@linaro.org> In-Reply-To: From: Linus Walleij Date: Fri, 11 Aug 2023 19:49:01 +0200 Message-ID: Subject: Re: [PATCH] s390/mm: Make virt_to_pfn() a static inline To: Alexander Gordeev Cc: Alexander Potapenko , Marco Elver , Dmitry Vyukov , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , Gerald Schaefer , Vineeth Vijayan , kasan-dev@googlegroups.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,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 On Fri, Aug 11, 2023 at 3:44=E2=80=AFPM Alexander Gordeev wrote: > Funnily enough, except drivers/s390/char/vmcp.c none of affected > code pieces below is an offender. But anyway, to me it looks like > a nice improvement. I'm puzzled, vmcp.c is a char * so actually not an offender (I am trying to push a version without casting to the compile farm), the rest are unsigned long passed to the function which now (after my change) has const void * as argument? Example: > > @@ -90,7 +90,7 @@ static long cmm_alloc_pages(long nr, long *counter, unsigned long addr; > > + diag10_range(virt_to_pfn((void *)addr), 1); Yours, Linus Walleij