Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2275178imm; Thu, 20 Sep 2018 10:24:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZg4WsM1P3xwTa3yk+Xo3yb+O24mJ8f4EPx34Ys4i5fntdktaY+St7n3Ct5gTDW5JU/qYuN X-Received: by 2002:a62:cfc6:: with SMTP id b189-v6mr36331978pfg.224.1537464285504; Thu, 20 Sep 2018 10:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537464285; cv=none; d=google.com; s=arc-20160816; b=AqQpDTVr4SMhZVGhML0roNwqSymay6gdojY3BQ7k5VteHlusQovZ0LPpYoaBQ3QpAz jl430B2MGy8p9cfbv59BhWCMcUzCiojV4qV4F4xzY9G+c8mZSg0yNiDKOPADfavfEW8A AOr6Gz2odvwvBaYBZPvWHEuQt6rRxZIKjuYcvfKeTfPr15XI51Z6aYuylwWVx+oNd76i 5FOCfaF6fsWpQpTzfwBxfTt9+uRDP0Dw1jzFaEe5zHU3znH190n58U06uM1mNxrALnyF 9zKKVGmkbXP8BIg2rbRm3QQgfXoAtABMpMQwe1YXb7WCq+UOTJYMjMe88MPpR109xNXD io9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=kZws1JBtb+e6LCZ++aOvnGEdZInUrW1YdgzCF3tRjOM=; b=I12RI8pCTbIYCKVSmZALhPpeezjboQhQIVRTBLKBBMUdJIsiFP5I/JBVYWa6GSB5ek 7KgQgSdpMc4JM8NQkpqUfqqk52wic61qgeB8OqimoDhsGuPTjo5bH/io6qi3uaZOgVoY zlMgGZl02CCtyKWdXNhXkkljekNOrphXLSXIJkQColnOUqmJCadPuEjLirD9bOxoE7Nr cOuYGLUggcyt9g4GPBSw1OcnEKSrnlaQ5PKfMumhxKRwxq+gpGpa7kB/vRss8OVFPeub Dzp2W6tkizWEg54fidW+QSUVDgT2yGVJnqE7FV7ba0MF67HAmnTD8hKyOYJaahLjsc5D b42w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aH5KRNN7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id b19-v6si26397155pfb.89.2018.09.20.10.24.29; Thu, 20 Sep 2018 10:24:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aH5KRNN7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2388283AbeITXI2 (ORCPT + 99 others); Thu, 20 Sep 2018 19:08:28 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:51527 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728997AbeITXI1 (ORCPT ); Thu, 20 Sep 2018 19:08:27 -0400 Received: by mail-wm1-f67.google.com with SMTP id y2-v6so339077wma.1; Thu, 20 Sep 2018 10:23:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kZws1JBtb+e6LCZ++aOvnGEdZInUrW1YdgzCF3tRjOM=; b=aH5KRNN7bpqo7GgJbTa3bdbnKiznxj1QRridFK7a98Lgbq1cEM30HxNoU/mEcLnaSl RS81kPPtda1lie/st9XLgsqykKcp/x+BZRbTbrQYj0wdKv2z6bXODxaO9MhbSE4LKeqW nnZ8xdz8qJiUou7cOjpa+If7Q0/fABVtM+x2y9zMuCixkoOGUNPtohHD0NFVvS4P011E mOe2QWUVV7LWwWmz4e4ZjQWf7rQjkN5DPJrsDIctCQAezzWJmGT3p9liicRj1SSgicx9 I8rtzf0wP6SlVSE20I0mCyL2jQmhgbYisK3uAU9PeLwM4nvIZhyNpWPYO6IMcPqFpA1/ sLVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kZws1JBtb+e6LCZ++aOvnGEdZInUrW1YdgzCF3tRjOM=; b=JaaWpfL+U9z3y/Svud5M0JB+M1jVvEYEEA4Q89QY0CFdwrX5i/7+/ykDCKzg4RV2eE 9+JOMySQ02lBtinKp5BiX3DNhgDWbw2Ss500H9F/r7YZOzjbzr8oWHA0ijaxT9BWafok K/MKMBD8z7znmCF2wy8u0y6TUtbqFx3hY98GpzI+WMpQBRdWqwPcS5OEHyswWPxx2fYa 3wKRx+PiloniKLcs7E95oVT3UhZHa/GAVe5NWTzp/HPKqQBSmDFUWVCJ/PvFY1wEydUI Ecdc5QgiosiDbID6cVQH8sH6w1Aq9AN1t+iAX6dCfkDSJua1WWRBOz8uHTHMh3PLKfu6 bkgg== X-Gm-Message-State: APzg51DExAJFgV9qIAwsf3MnrzZ5kZKuK/WLo7xGM4a7JHwSb/gigBj1 w49KkMxPmEzaI7OzgpfO4m4= X-Received: by 2002:a1c:4007:: with SMTP id n7-v6mr3917202wma.108.1537464235105; Thu, 20 Sep 2018 10:23:55 -0700 (PDT) Received: from localhost.localdomain (62.83.35.8.dyn.user.ono.com. [62.83.35.8]) by smtp.gmail.com with ESMTPSA id q200-v6sm3466562wmd.2.2018.09.20.10.23.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 10:23:54 -0700 (PDT) From: Miguel Ojeda To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Miguel Ojeda , Andreas Dilger , Masahiro Yamada , Michal Marek , Steven Rostedt , Mauro Carvalho Chehab , Olof Johansson , Konstantin Ryabitsev , "David S . Miller" , Andrey Ryabinin , Kees Cook , Thomas Gleixner , Ingo Molnar , Paul Lawrence , Sandipan Das , Andrey Konovalov , David Woodhouse , Will Deacon , Philippe Ombredanne , Paul Burton , David Rientjes , Willy Tarreau , Martin Sebor , Christopher Li , Jonathan Corbet , Theodore Ts'o , Geert Uytterhoeven , Rasmus Villemoes , Joe Perches , Arnd Bergmann , Dominique Martinet , Stefan Agner , Luc Van Oostenryck , Nick Desaulniers , Andrew Morton , Linus Torvalds , linux-doc@vger.kernel.org, linux-ext4@vger.kernel.org, linux-sparse@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH v5 14/15] Compiler Attributes: auxdisplay: panel: use __nonstring Date: Thu, 20 Sep 2018 19:23:00 +0200 Message-Id: <20180920172301.21868-15-miguel.ojeda.sandonis@gmail.com> In-Reply-To: <20180920172301.21868-1-miguel.ojeda.sandonis@gmail.com> References: <20180920172301.21868-1-miguel.ojeda.sandonis@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Let gcc know these arrays are not meant to be NUL-terminated by annotating them with the new __nonstring variable attribute; and remove the comment since it conveys the same information. Signed-off-by: Miguel Ojeda --- drivers/auxdisplay/panel.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/auxdisplay/panel.c b/drivers/auxdisplay/panel.c index 3b25a643058c..21b9b2f2470a 100644 --- a/drivers/auxdisplay/panel.c +++ b/drivers/auxdisplay/panel.c @@ -155,10 +155,9 @@ struct logical_input { int release_data; } std; struct { /* valid when type == INPUT_TYPE_KBD */ - /* strings can be non null-terminated */ - char press_str[sizeof(void *) + sizeof(int)]; - char repeat_str[sizeof(void *) + sizeof(int)]; - char release_str[sizeof(void *) + sizeof(int)]; + char press_str[sizeof(void *) + sizeof(int)] __nonstring; + char repeat_str[sizeof(void *) + sizeof(int)] __nonstring; + char release_str[sizeof(void *) + sizeof(int)] __nonstring; } kbd; } u; }; -- 2.17.1