summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7869a76)
Replace the __attribute_noinline__ form with
__attribute__((__noinline__)).
Even though the compiler didn't complain about __attribute_malloc__,
also replace those in order to maintain consistent style throughout the
source file.
Fix for:
https://bugzilla.linux-nfs.org/show_bug.cgi?id=194
Reported-by: "Gabor Z. Papp" <gzp@papp.hu>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
* containing an appropriate pathname, or NULL if an error
* occurs. Caller must free the returned result with free(3).
*/
* containing an appropriate pathname, or NULL if an error
* occurs. Caller must free the returned result with free(3).
*/
+__attribute__((__malloc__))
static char *
nsm_make_record_pathname(const char *directory, const char *hostname)
{
static char *
nsm_make_record_pathname(const char *directory, const char *hostname)
{
* containing an appropriate pathname, or NULL if an error
* occurs. Caller must free the returned result with free(3).
*/
* containing an appropriate pathname, or NULL if an error
* occurs. Caller must free the returned result with free(3).
*/
+__attribute__((__malloc__))
static char *
nsm_make_pathname(const char *directory)
{
static char *
nsm_make_pathname(const char *directory)
{
* containing an appropriate pathname, or NULL if an error
* occurs. Caller must free the returned result with free(3).
*/
* containing an appropriate pathname, or NULL if an error
* occurs. Caller must free the returned result with free(3).
*/
+__attribute__((__malloc__))
static char *
nsm_make_temp_pathname(const char *pathname)
{
static char *
nsm_make_temp_pathname(const char *pathname)
{
/*
* Returns the length in bytes of the created record.
*/
/*
* Returns the length in bytes of the created record.
*/
+__attribute__((__noinline__))
static size_t
nsm_create_monitor_record(char *buf, const size_t buflen,
const struct sockaddr *sap, const struct mon *m)
static size_t
nsm_create_monitor_record(char *buf, const size_t buflen,
const struct sockaddr *sap, const struct mon *m)
+__attribute__((__noinline__))
static _Bool
nsm_parse_line(char *line, struct sockaddr_in *sin, struct mon *m)
{
static _Bool
nsm_parse_line(char *line, struct sockaddr_in *sin, struct mon *m)
{