From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2ED1CC64E8A for ; Thu, 3 Dec 2020 00:10:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CB5BC20C56 for ; Thu, 3 Dec 2020 00:10:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726890AbgLCAKN (ORCPT ); Wed, 2 Dec 2020 19:10:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726618AbgLCAKM (ORCPT ); Wed, 2 Dec 2020 19:10:12 -0500 Received: from mail-yb1-xb41.google.com (mail-yb1-xb41.google.com [IPv6:2607:f8b0:4864:20::b41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8207AC0613D6; Wed, 2 Dec 2020 16:09:32 -0800 (PST) Received: by mail-yb1-xb41.google.com with SMTP id t33so404677ybd.0; Wed, 02 Dec 2020 16:09:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YSRqCAaRcLkYZRDe9sPMRhw1kun96YZxy3quOQXiOAQ=; b=LUORY49lPowRTgPYt1NxWrHyARt8746VL7B3nhNSZThE6VKOQRF76ynrD4Q70C7Nkm nOzaKfv1d3PeddAHFU4j7CWhkvZl0Zc+jwbcLmKvbTWznv7OEryoT9j/4dFE+DK+Thfp UUOxrzF9gm28kxkpRaUz73IhdakmSUyXIq5TpvKMLya4d8bgs+oWd32pTLj+/wOVbhdp VkLbhr+AUXpUTFbfUs3ga0PrBaigLw/07IH9TzgrPZExHJCza6jjfdi9mvcJCrztlNlx zDmOCz2umU0KqTMp/79Q/FEheRTvya39OsCpLiSp8E6gHNSa/kTAPd2ft5l1VBipwgGd uZ7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YSRqCAaRcLkYZRDe9sPMRhw1kun96YZxy3quOQXiOAQ=; b=XnDqxLpzcEn3VhhjKmkkkqTxxjjl65NqekrJRKoi448pQrfYDZn7ESzTbKK0/HuBRA Kf78fMDKxuvlzY3CP8jjGlghtkTbUYUDNwmGdM1HJWFxr/L0QPy+ORnN44NAxoNFEszT Mf98KkXEH8hcBWV5MaNA9iAsUbyns84NkbR+fOIbwZvcOjbLEBGsHWBVwhZaZ0pTjewU /ILphXoPEjEH8oZYH7OnQ9BkWSOCcn8J8hfHbCJvSc7XSp0RHmFt2NIHAl68qbnVoeVt u+MkA4eiZ2gk6tIQjcYLsE3jgf3PhQqq3jzolP21qGvraldKyzxgeDVox43r6unT+TPY kf8w== X-Gm-Message-State: AOAM5309fc6FVU2jcWIgXEXUNBS67muQm/MV2D3YfjcMAb3rLYVhSgE2 /MvDms/jLlNDIjdJt/xSEyRcQRYymV+/zdcHtuzIIS+e//k= X-Google-Smtp-Source: ABdhPJxNkt8kYFRs3YnyhfEeYuT7VIi4ogyNWtrIxFKQvYTSbTDqy2IH5tiazkQwSxRtcCT0I1iWiaCGm6Ny327r+mg= X-Received: by 2002:a25:2e0d:: with SMTP id u13mr880062ybu.247.1606954171857; Wed, 02 Dec 2020 16:09:31 -0800 (PST) MIME-Version: 1.0 References: <20201202211542.1121189-1-axelrasmussen@google.com> <20201202230954.GB108496@xz-x1> In-Reply-To: From: Miguel Ojeda Date: Thu, 3 Dec 2020 01:09:11 +0100 Message-ID: Subject: Re: [PATCH] userfaultfd: selftests: make __{s,u}64 format specifiers portable To: Axel Rasmussen Cc: Peter Xu , Shuah Khan , Andrew Morton , Joe Perches , Mike Rapoport , Andrea Arcangeli , David Alan Gilbert , Greg Thelen , "open list:KERNEL SELFTEST FRAMEWORK" , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 3, 2020 at 12:55 AM Axel Rasmussen wrote: > > This is what clang-format yields. Are you thinking it would be better > to line everything up with the ( in uffd_error( ? Yeah, sometimes clang-format cannot do a good job with the 80 column limit + 8 tabs. You are definitely not forced to follow clang-format output by any means. Subsystem maintainers decide what style they prefer anyway, which could range from a manual approach to following clang-format strictly. Clang-format implements the general kernel style as closely as we could get it so far (it will improve more in the future when we raise the minimum clang-format version required). See Doc/process/clang-format.rst. > Or, perhaps this case is a good reason to make uffd_error() a variadic > macro so we can insert "-EEXIST" || "error" with a "%s". ...and indeed, sometimes it is a hint that simplifying things could help :-) Cheers, Miguel