Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7239153rwr; Tue, 25 Apr 2023 09:59:30 -0700 (PDT) X-Google-Smtp-Source: AKy350ZCGYgDOkn/spoaHf5h3dq9ocNFz6m/6dwAmkL+w/J6OlFbuyYNtUn7Do90daA3NuHkPebf X-Received: by 2002:a17:90b:120c:b0:23f:ebf2:d3e9 with SMTP id gl12-20020a17090b120c00b0023febf2d3e9mr17456619pjb.6.1682441970604; Tue, 25 Apr 2023 09:59:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682441970; cv=none; d=google.com; s=arc-20160816; b=K1/lWsog7ko54HQps+JiKUlzfLzXYZ37xHhyQNuTLufw1tO9GQG3pjBRAmTCreH3nR y2jYSbgrz/qe8eezC0LQGapODTpplRODRlT21RI7FRkLEM/zIIyWfmoIB8Yg3gUTTI4m IMkJcr1dKPpWDWNi+dK/W4YaPSdoTOy4oDkjKp3vvVRu/EKRJt6ar8GS6zkhspth8NXE 5AvLPRaGuv13ZSGh2YwbMGTTOVljeE0MSrBEZg8qrxjkcRIFzy8/2tC9zfvVh99hc1Jx bjlf+06cGnXEuD167B1YY9WeyrR4IHmEKNWMbvTERVI5uvohSKbk3VhboTh84QXuW+LC ZOWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=QgrFF00z2wCMViqatkmG+CLp0kBJ37AT7atyuO0HEqU=; b=YwfDLpYf8kKHXY/2nUxW4S0qajHmSAbl3vrxh+Ptzi05+Xz4sRHM9RT9TfLY6FcyrU +/D5aGqwOeIqq1xW3mOnrWcgXnYpjxyMojCx1VQmCZviYWrAxAV5/GfzCk03XmsWUpdZ cDCs39tXSQ/46MVuKDhXARDKaAc9fhVapjiUcPlj4l6eqRupVi6hxDhqWRGJzUydMxAl BRtKazYuToQ51ME4JyDSQFZdbj56T5k3cjN+xbphObGF297xptU8VT0gvbpLzZoSohOg dNI2pMcrR5YbaGNdykA5S82Uk7mfXGEuPWioHD+NG+UildE78hHb7mtZYzWpgkAOpUFP 2SOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=M4uOXzTO; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s6-20020a17090ad48600b00246b7a596besi14293655pju.114.2023.04.25.09.59.19; Tue, 25 Apr 2023 09:59:30 -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=@redhat.com header.s=mimecast20190719 header.b=M4uOXzTO; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234840AbjDYQ5W (ORCPT + 99 others); Tue, 25 Apr 2023 12:57:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234836AbjDYQ5U (ORCPT ); Tue, 25 Apr 2023 12:57:20 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5873213C3B for ; Tue, 25 Apr 2023 09:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1682441790; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QgrFF00z2wCMViqatkmG+CLp0kBJ37AT7atyuO0HEqU=; b=M4uOXzTO+2yf2CI3o0TufyLu+ARkDR/XvGdWYiWmXXFTg4IANV6eKgEXYt1hHv1y9RDZ5u ZvfdcCeVwyIiBPOiyu1dFrqv0XiGG6gQENkogFhYPhxKgkPGrJ7eaJndbG66rSEBYWzuTf jBOmGiVfzpIIs1Htgj85c7LUzVMKQLg= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-621-aFb5hHzmOAKsyVlqMk3w3Q-1; Tue, 25 Apr 2023 12:56:29 -0400 X-MC-Unique: aFb5hHzmOAKsyVlqMk3w3Q-1 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-2fa5d643cd8so1837481f8f.2 for ; Tue, 25 Apr 2023 09:56:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682441788; x=1685033788; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QgrFF00z2wCMViqatkmG+CLp0kBJ37AT7atyuO0HEqU=; b=hSV4o13bLU8y+bBKiZ6z2QBGgaVOuknj451jE9cxlPIQlqeet7bBvOlc1PKKwGrol/ fpBrM4kL9cd9/zxMl36ZxAKHmfypQfmP254atwZgviNlVRZYSqnKRdom6PGwGf6p0fsE SJFun0cmuWzmi+Ld8o5WpWQxIoO2MkX0UscBa4gccZnpYqmsa+zBld2FQxLtSGLRc9F8 trzKa2Ve42pqFn2VpUk3yJ7WDjA5+QEL8AU7la1dkFhAss25zKs5a/kRa2LPk5Mb//Ag wfnH7axZEp7/qvPDbJOyGubtha4lgE1QGIBMfFb+LAOJdNDN7+UYD4kj0hh2N3R+P8Oi ThSA== X-Gm-Message-State: AC+VfDyewrLDYUqk4f1A8wcnXL2OzJ3HsJ6YfW4Cy27XwRxDPv1XbBH/ CHIcdUA5LfCPmXOGQPMyTHcLfbfLvjicAdYQPVOqRI8ITb9C3ZW+BHgNix9G33ApDgA6jAWpTiq bZEIRNddy4OihTj2xh89mHubK69AFNB45 X-Received: by 2002:a5d:48ca:0:b0:304:7ff3:9b2 with SMTP id p10-20020a5d48ca000000b003047ff309b2mr3900200wrs.39.1682441787968; Tue, 25 Apr 2023 09:56:27 -0700 (PDT) X-Received: by 2002:a5d:48ca:0:b0:304:7ff3:9b2 with SMTP id p10-20020a5d48ca000000b003047ff309b2mr3900186wrs.39.1682441787586; Tue, 25 Apr 2023 09:56:27 -0700 (PDT) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id k5-20020adff5c5000000b002f103ca90cdsm13473182wrp.101.2023.04.25.09.56.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Apr 2023 09:56:27 -0700 (PDT) From: Javier Martinez Canillas To: Thomas Zimmermann , tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, deller@gmx.de, arnd@arndb.de, daniel.vetter@ffwll.ch Cc: linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, Thomas Zimmermann Subject: Re: [PATCH] arch/x86: Include in fbdev source file In-Reply-To: <20230424084751.14641-1-tzimmermann@suse.de> References: <20230424084751.14641-1-tzimmermann@suse.de> Date: Tue, 25 Apr 2023 18:56:26 +0200 Message-ID: <87v8hjhpdx.fsf@minerva.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable 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 Thomas Zimmermann writes: > Move the implementation of fb_pgprotect() to fbdev.c and include > . Fixes the following warning: > > ../arch/x86/video/fbdev.c:14:5: warning: no previous prototype for 'fb_is_primary_device' [-Wmissing-prototypes] > 14 | int fb_is_primary_device(struct fb_info *info) > | ^~~~~~~~~~~~~~~~~~~~ > > Just including results in a number of built-in errors > about undefined function. Moving fb_pgprotect() to the source file > avoids the required include statements in the header. The function > is only called occasionally from fb_mmap(), so having it as static > inline had no benefit. > > While at it, fix the codying style in fbdev.c. > > Link: https://elixir.bootlin.com/linux/v6.3-rc7/source/drivers/video/fbdev/core/fbmem.c#L1404 > Signed-off-by: Thomas Zimmermann > --- Looks good to me. Reviewed-by: Javier Martinez Canillas [...] > base-commit: d2639bb054c42db5ff15c56902d1113303f5b655 > prerequisite-patch-id: 0aa359f6144c4015c140c8a6750be19099c676fb > prerequisite-patch-id: c67e5d886a47b7d0266d81100837557fda34cb24 > prerequisite-patch-id: cbc453ee02fae02af22fbfdce56ab732c7a88c36 > -- This is a disadvantage of format.useAutoBase = true. I find that have to do `git branch --set-upstream-to=$foo` more often than I would like... At least it seems that patchwork ignores these so that's OK. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat