Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2056503pxv; Sun, 11 Jul 2021 01:05:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwn0w5rgRh1w54PIbYCMnHLlxrSwzcAofK42PyLxuWcnA1l2eniTMmTFz4w77ZHODbhbz9k X-Received: by 2002:a02:3845:: with SMTP id v5mr39316977jae.119.1625990739943; Sun, 11 Jul 2021 01:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625990739; cv=none; d=google.com; s=arc-20160816; b=m5o/uut9tnNdPhy/avd55k8vjfD7dUhQWVXi+7JOImUQDyvitryYT6DS7D9PRiG9kr 6ekWQual2Ka1Ycl4HyB1tze/51bVzTsDZLBIxmd8aLGxCvR5y4lP0VvhbXJ91/t+HrPm jTbmuIEKKIJdeietmDXeo1sBWtVjYzVx3bVzd65SE48GBF27eQooUUEAWXZW/5mYppNA Xk11ftTyX3+mimEe8xUHr8BquerzcyahGZ8myc7L5lgPFxZVgbmbLjvnrixMgZQPfEU9 hM+otmWDlI7L+jIehfyNaDvRU6wD522S63VtqTttk2IUxG9aStR17ApnL1D8b2l1d3Zo 2UeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=iIVbAzHyLw3y+zgC5Ouu6XInoF13uau9z3nNzj7BY8M=; b=0uU+xM/HqXCwV5SgC9cfb3aD7C8hHAwHeWOYfr2Z/A1nb2jRn83fbETBLtExvodsd6 uVuZGQvvRThBNUl5ueW8SGKuSx7KtIU0DRWqygMgBwoeluGLUjvlTuaSaLtTC9iWo3ve Hluq/zhfAlCf9yhynoIL8SqlEokZAnJRVSm/SfbWN5LDLYS2xOZDx8JEB6cD+Ibd7o4T 1dINPddi3OIxPBdidb6UvxFJz0UtJvX+69d2PME6dtGxQnyaWEjVaz8aiEyoEGj98c5e EigN1XWAaHKn8EcWo6U9pK77iOQeku7SB5N2+qu83pVdTINatAc0oxb6zkV5gDS/bmcN FIUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Pddb3LvR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si13157857jal.76.2021.07.11.01.05.28; Sun, 11 Jul 2021 01:05:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Pddb3LvR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230198AbhGKIHt (ORCPT + 99 others); Sun, 11 Jul 2021 04:07:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229758AbhGKIHt (ORCPT ); Sun, 11 Jul 2021 04:07:49 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3EA6C0613DD for ; Sun, 11 Jul 2021 01:05:02 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id c28so34118280lfp.11 for ; Sun, 11 Jul 2021 01:05:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=iIVbAzHyLw3y+zgC5Ouu6XInoF13uau9z3nNzj7BY8M=; b=Pddb3LvRqu/aGewKupBHpePNuLgcq3iM/6jKs1uq7TK3PbFPPZXj94jUSnL3XjLPek 20Io+F51K2qXMkPu0XNuhaAt9AcgW+ehD/DPAqUNRi5WwXXKaJjOoZ1+9tIFW/bYfLQc suecyMPSGFRFrvUP1QSMP3fCIqUwBCSUpcjIkPO4o0cu+17vKvZuKwqbls/1JaRoHyxr 99hXV4jHxhVSfyybT4gM7uV8s7Qg1GRVKbD6hH5wWwyhRGLR+QnzM7QHrYAIk63S5Iyh JOEzXa3r4sqHrnSLg1dRF1FJEzW5DSSrKV4tmTw5cbSyt3MPAYGyaL7Wm+j9yUZyz6YU e6Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=iIVbAzHyLw3y+zgC5Ouu6XInoF13uau9z3nNzj7BY8M=; b=T5UV4dvcPClZceUr+Lexu15JxvA8VH+EHEZQoE1DjuKDji+BaJso7VsByDp93JsdLb 1SwULY2t85JeWQY1gwXgW0Ku2yzhLQyMtMxOEEu912wjtvmHV48yXp0ax+EQoBI1ykoq W1tA5UuZ4B9C3bklFfZ8ZcEu1qwtfdmSoqcyV2Zb672+v0IzpDaO2eK+wVE6WPE8ieEE NuGZPbLC/IIN5H3U5GDU2gaxwHC5c7gSdbcFOJKV5O1nVE3i2PR08++/yP5JtjfGMRhx XgEaf/gquoEdnLm7GKHtFBeJIdvQ9HnhwP056FjAGoTMBP4pi9xjKZM+6l9WtIiLM0So glzg== X-Gm-Message-State: AOAM533UKWYeLzKKHX/nJKxKJfKfKIcB6sXklAbGE+3ARao14QSQp+CZ xCp2/uykhgENm699EW9hVQdKdo1Q/qW02ahFMFswaLjxtjZh1aA/V98= X-Received: by 2002:ac2:5dd5:: with SMTP id x21mr2702535lfq.31.1625990700384; Sun, 11 Jul 2021 01:05:00 -0700 (PDT) MIME-Version: 1.0 From: Dwaipayan Ray Date: Sun, 11 Jul 2021 13:34:49 +0530 Message-ID: Subject: False positives for non octal permissions in the kernel To: Joe Perches Cc: Lukas Bulwahn , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, A recent checkpatch run on the kernel detected a total of 26 ERROR:NON_OCTAL_PERMISSIONS violations. 20 of them seem to be false positives which are all from drivers/staging/iio. Example: ERROR: Use 4 digit octal (0777) not decimal permissions #331: FILE: drivers/staging/iio/frequency/ad9834.c:331: +static IIO_DEV_ATTR_PHASESYMBOL(0, 0200, NULL, ad9834_write, AD9834_PSEL); ERROR: Use 4 digit octal (0777) not decimal permissions #334: FILE: drivers/staging/iio/frequency/ad9834.c:334: +static IIO_DEV_ATTR_PINCONTROL_EN(0, 0200, NULL, + ad9834_write, AD9834_PIN_SW); ERROR: Use 4 digit octal (0777) not decimal permissions #336: FILE: drivers/staging/iio/frequency/ad9834.c:336: +static IIO_DEV_ATTR_OUT_ENABLE(0, 0200, NULL, ad9834_write, AD9834_RESET); and more such.. Thanks, Dwaipayan.